La recherche a retourné 64 résultats
Aller sur la recherche avancée
- 05 févr. 2019, 20:56
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Google est mon ami ........ je l'espère :lol: commandArray={} local heure = os.date("%H:%M") -- retourne l'heure du coucher de soleil ex: "22:15" coucherSoleil = string.sub(os.date("!%X",60*timeofday['SunsetInMinutes']), 1, 5) -------------------------------------------...
- 05 févr. 2019, 19:01
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Salut Effectivement, pour une meilleure compréhension j'allonge un peu le script. Mais une fois la chose comprise effectivement raccourci c'est aussi clair. En fin de compte je vais vous en mettre un troisième qui fonctionne avec - if daytime and otherdevices['Alarme']=='Off' then - mais je ne sais ...
- 05 févr. 2019, 18:23
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Salut Merci Denis, ça fonctionne nickel commandArray={} -- il fait jour dayTime = timeofday['Daytime'] -- il fait nuit nightTime = timeofday['Nighttime'] if devicechanged['Alarme'] then if nightTime then --SI Alarme OFF et heure entre SUNSET et SUNRISE if otherdevices['Alarme']=='Off' then --ALLUMER...
- 05 févr. 2019, 00:02
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Celui là c'est pour demain ! commandArray={} -- get current time timenow = os.time("*t") if devicechanged['Alarme'] then --SI Alarme OFF et heure entre SUNSET et SUNRISE if otherdevices['Alarme']=='Off' and timeofday['SunriseInMinutes'] < timenow > timeofday['SunsetInMinutes'] then --ALLUM...
- 04 févr. 2019, 23:15
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Pwwooooaaa, bien vu !
Une soirée à plancher sur le problème.
Merci !
Une soirée à plancher sur le problème.
Merci !
- 04 févr. 2019, 22:54
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Essai de ce script, pas d'erreur dans LOG mais ne fonctionne pas commandArray={} --SI etat l'Alarme change if devicechanged ['Alarme'] then --SI l'Alarme passe à ON ALORS --if devicechanged['Alarme']=='ON' then if otherdevices['Alarme']=='ON' then --ETEINDRE LES LUMIERES if otherdevices['Façade arri...
- 04 févr. 2019, 20:28
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Bonsoir,
Merci Denis
Le fonctionnement est le même, tout s'éteint, seul l'éclairage piscine passe à l'état OFF, les trois premiers restent à ON.
Peut être rajouter à ces trois là "Si ON" passage à "OFF"
Merci Denis
Le fonctionnement est le même, tout s'éteint, seul l'éclairage piscine passe à l'état OFF, les trois premiers restent à ON.
Peut être rajouter à ces trois là "Si ON" passage à "OFF"
- 04 févr. 2019, 18:38
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
Bonjour Denis, Merci pour ce lien très instructifs. Ce script fonctionne presque : commandArray={} --SI etat l'Alarme change if devicechanged ['Alarme'] then --SI l'Alarme passe à ON ALORS if devicechanged['Alarme']=='ON' then --ETEINDRE LES LUMIERES commandArray[#commandArray + 1]={['Façade arrière...
- 03 févr. 2019, 21:45
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
commandArray={} --SI l'Alarme passe à ON ALORS if devicechanged['Alarme']=='ON' then --ETEINDRE LES LUMIERES commandArray[#commandArray+1]={['Façade arrière']='Off'} commandArray[#commandArray+1]={['Appoint salon']='Off'} commandArray[#commandArray+1]={['Façade avant']='Off'} end --SI ECLAIRAGE PIS...
- 03 févr. 2019, 21:19
- Forum : Scripts DzVents, lua,blocky, shell, python, perl ...
- Sujet : Correction de script LUA
- Réponses : 43
- Vues : 21054
Re: Correction de script LUA
arffff ! Je suis vraiment novice :) --SI l'Alarme passe à ON ALORS if devicechanged['Alarme']=='ON' then --ETEINDRE LES LUMIERES commandArray[#commandArray+1]={['Façade arrière']='Off'} commandArray[#commandArray+1]={['Appoint salon']='Off'} commandArray[#commandArray+1]={['Façade avant']='Off'} --S...