first commit
This commit is contained in:
17
lua/Archives/script_time_ping.old
Executable file
17
lua/Archives/script_time_ping.old
Executable file
@@ -0,0 +1,17 @@
|
||||
commandArray = {}
|
||||
|
||||
print("Debut pingVolumio2")
|
||||
ping_success=os.execute('ping -c1 volumio')
|
||||
if ping_success then
|
||||
if ( otherdevices['Volumio2'] == 'Off') then
|
||||
print("pingVolumio2 success")
|
||||
commandArray['Volumio2']='On'
|
||||
end
|
||||
else
|
||||
if (otherdevices['Volumio2'] == 'On') then
|
||||
print("pingVolumio2 fail")
|
||||
commandArray['Volumio2']='Off'
|
||||
end
|
||||
end
|
||||
print("fin pingVolumio2")
|
||||
return commandArray
|
||||
Reference in New Issue
Block a user