Page 1 of 1

MiLight script runs on ubuntu 16.04 but not on rPI4

Posted: Tuesday 27 October 2020 10:55
by PABben
I have a script that has the line

Code: Select all

echo -n -e "\x49\x00" | nc -u -q 1 192.168.0.167 8899 	# set group 3 ON"
When i run it in terminal on my ubuntu-server it execute but on Raspberry pi 4 it just halts.
Do i need to install any packages etc or is the "script" just not compatible with raspberry?

(The line is supposed to be a part of the following script that is working fine in ubuntu 16.04:
Spoiler: show

Code: Select all

#!/bin/bash
 sleep 1
 echo -n -e "\x49\x00" | nc -u -q 1 192.168.0.167 8899 	# set group 3 ON
 echo -n -e "\xC0\x10" | nc -u -q 1 192.168.0.167 8899 	# change to dark blue
 echo -n -e "\x4E\x09" | nc -u -q 1 192.168.0.167 8899 	# dimm to low value