MiLight script runs on ubuntu 16.04 but not on rPI4

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

MiLight script runs on ubuntu 16.04 but not on rPI4

Post 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


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest