SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Link copied. Please paste this link to share this article on your social media post.
Hi
I'm trying to control Projector using PJLink and SpaceLYnk or Wiser for KNX?
Found this script but I'm not fluent in scripting and PJLink. Is there way to modify script to get live status of projector as a group address?
require('socket')
value = event.getvalue()
ip = '192.168.1.5'
port = 4352
if value == 1 then
cmd = '%1POWR 1\r\n'
else
cmd = '%1POWR 0\r\n'
end
sock = socket.tcp()
sock:settimeout(1)
res, err = sock:connect(ip, port)
if res then
res, err = sock:send(cmd)
if res then
alert('Send OK')
else
alert('Send failed: %s', tostring(err))
end
else
alert('Connect failed: %s', tostring(err))
end
Link copied. Please paste this link to share this article on your social media post.
Hi Piotr!
I assume that your shared script is already working to switch the projector On/Off ... or?
So, of course it is not easy to create/test a script without having the dedicated device next to you.
Based on the shared script I made trial 😉
Please let me know if it works, not works, updates needed etc..
Link copied. Please paste this link to share this article on your social media post.
Hi Piotr!
I am curious ... did it worked?
Link copied. Please paste this link to share this article on your social media post.
Yes @Thomas_Rohde it worked, but only as a test...
To have higher confidence, we must wait until the facility's commissioning, which will take place no earlier than a year from now.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.