Hi,
I search some help for create a lua script, because i start on lua scripting.
I want to start my pioneer receiver and play musik on it with the freebox player or Synology NAS player when my store (blind percentage switch) is open on the morning.
Actually Domoticz open my store after the sunrise and i want to play musik at this moment like a wake up sound.
I found the telnet command for start my receiver but i don't know make the next step.
Thanks
Script LUA to start Pioneer Receiver with Telnet
Moderator: leecollings
-
- Posts: 4
- Joined: Thursday 08 June 2017 23:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: France
- Contact:
Script LUA to start Pioneer Receiver with Telnet
Rapberry PI 3, Domoticz v3.8153, Aeon Labs Z-Stick Gen5, RFXCOM RFXtrx433E, Fibaro Motion Sensor, Fibaro Roller Shutter 2, GCE Electronics TéléInfos USB, Dio 54785 & 54798
-
- Posts: 272
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Script LUA to start Pioneer Receiver with Telnet
the function in lua you are looking for is :
os.command() or os.execute()
http://lua-users.org/wiki/OsLibraryTutorial
it enables you to perform an os command outside lua (available commands depending on the platform you run on RPI, WINDOWS, LINUX)
Be aware that Lua is waiting for the command to end, so if it takes 5 seconds this could cause the rest to freeze for 5 sec.
os.command() or os.execute()
http://lua-users.org/wiki/OsLibraryTutorial
it enables you to perform an os command outside lua (available commands depending on the platform you run on RPI, WINDOWS, LINUX)
Be aware that Lua is waiting for the command to end, so if it takes 5 seconds this could cause the rest to freeze for 5 sec.
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Who is online
Users browsing this forum: No registered users and 1 guest