I run into a problem with this.
Running Synology Domoticz and a Seperate PI for Hyperion.
Did everything posted on this topic.
1) Made a Lua Device script.
2) Added a Slider to trigger the script.
3) Bootstrapped The Synology so it has IPKG and NC
4) tested everything i could think of to get it to work.
Code: Select all
runcommand = "echo '{ \"command\": \"color\", \"color\": [" .. DomR .. "," .. DomG .. "," .. DomB .. "], \"priority\": 100 }' | nc " .. (IP) .. " " .. (Port) .. " ";
puts this in the log:
2018-01-17 17:49:05.049 LUA: echo '{ "command": "color", "color": [280,34,0], "priority": 100 }' | nc 192.168.0.25 19444
if i Start Putty on the Synology.
and type :
$ echo '{ "command": "color", "color": [280,34,0], "priority": 100 }' | nc 192.168.0.25 19444
Hyperion Reacts as should.
when the Lua Scripts does:
it doesn't work
also tried a Script test.sh in lua
Code: Select all
os.execute('sh /volume1/@appstore/domoticzscripts/test.sh');
it doesn't work
in putty:
Code: Select all
sh /volume1/@appstore/domoticzscripts/test.sh'
that does work.
Tried to log in as Admin in Putty and also same user as Domoticz was installed.
that doesn't change a thing.
anyone who can help me make this work?!