[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Toon onderwerp - Wake up Light script • nodo-domotica.nl

nodo-domotica.nl

Wake up Light script

Met de Nodo commando's en dee Eventlist kun je vrijwel elke domotica wens realiseren. De Nodo beschikt hiervoor over een eigen script-taal waarmee u uw domotica wensen kunt realiseren. Plaats hier uw vragen en tips die hier op betrekking hebben.

Wake up Light script

Berichtdoor domogijs » 21 okt 2012, 13:53

Wil graag de Nodo inzetten voor een wake up light.

Doel: vanaf een bepaald instelbaar tijdstip de lichtsterkte van een lamp in stapjes toe te laten nemen.

Heeft hier iemand al een script voor? Of kan iemand mij hiermee op weg helpen?

Groet Gijs
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Re: Wake up Light script

Berichtdoor rtenklooster » 22 okt 2012, 09:39

Is het niet een idee om een lamp met een kaku stekkerdoos dimmer te gebruiken?
Je kunt dan een eventlistje maken waarbij de het dimniveau iedere x minuten verhoogd. Vanaf een bepaalde tijd?

Je maakt een clock event aan. Die als hij actief word een userevent genereerd. Het userevent zet zeg maar 8 timers aan, en bij afloop van iedere timer verhoogd hij het dimniveau..
rtenklooster
 
Berichten: 377
Geregistreerd: 04 aug 2012, 12:10
Woonplaats: Aduard

Re: Wake up Light script

Berichtdoor domogijs » 22 okt 2012, 17:08

Het is idd de bedoeling om een Kaku dimbare ontvanger te gebruiken.

De aangedragen oplossing is goed mogelijk. Tijdstip van Userevent is makkelijk aan te passen. Wel helaas via de Eventlist en niet makkelijk via de Webapp.

Grootste nadeel vind ik het verlies van 8 timers.

Heb wel dit commando gevonden VariableInc. Maar hoe dit dan precies voor dit doeleinde in te zetten is me nog niet helemaal duidleijk (misschien kan het ook niet).
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Re: Wake up Light script

Berichtdoor ff2000 » 22 okt 2012, 20:09

Dit is ook een mogelijkheid.

Clockevent -> timersetmin 1,1 (start een timer)
Timer 1 -> variableinc 1,1 ( verhoog variable 1 als timer afloopt)
Timer 1 -> timersetmin 1,1 ( Start timer opnieuww als deze afloopt)
Variable 1,1 -> sendnewkaku 1,1 ( hang een dimstand aan de variable)
Variable 1,2 -> sendnewkaku 1,2
...... ( doe dit net zo vaak als je zelf wilt)
Variable 1,17 -> timersetmin 1,0 ( reset timer 1)
Variable 1,17 -> variableset 1,0 ( zet variable 1 weer op 0)

Volgens mij moet het zo werken.

Groeten Frank
ff2000
 
Berichten: 61
Geregistreerd: 06 sep 2011, 10:42

Re: Wake up Light script

Berichtdoor domogijs » 23 okt 2012, 19:32

Variable op deze wijze op laten lopen werkt in ieder geval. NewKaku eraan koppelen ga ik later testen omdat de kaku unit achter de schakelaar zit. Maar verwacht daar geen problemen.

Dank!

Enige wat ik nog mooier zou willen is de start. Nu gaat dat via een eventlistwrite. Dit vind ik niet heel handig om elke dag in te stellen.
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Re: Wake up Light script

Berichtdoor Markie » 23 okt 2012, 19:53

Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo Ethernetshield
Software Nodo Mega SWACNC-MEGA-R739
4 x Slave Small SWACNC-SMALL-R739
Lichtslave,Weerstationslave,Meterkastslave,ketelslave.
Gebruikers-avatar
Markie
 
Berichten: 419
Geregistreerd: 11 jan 2012, 11:41

Re: Wake up Light script

Berichtdoor domogijs » 24 okt 2012, 18:02

Heb gekeken in de issue lijst.

Bedoel je dez?

Issue 444: Alarmfunctie tbv wakeuplight

Groet Gijs
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Re: Wake up Light script

Berichtdoor Markie » 24 okt 2012, 19:16

Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo Ethernetshield
Software Nodo Mega SWACNC-MEGA-R739
4 x Slave Small SWACNC-SMALL-R739
Lichtslave,Weerstationslave,Meterkastslave,ketelslave.
Gebruikers-avatar
Markie
 
Berichten: 419
Geregistreerd: 11 jan 2012, 11:41

Re: Wake up Light script

Berichtdoor bryan241 » 28 okt 2012, 20:46

Helaas blijft de timer lopen in een oneindige loop...
Moet iets van een breakonvarequ tussen, maar daarmee krijg ik het ook niet werkend...

Clockevent -> timersetmin 1,1 (start een timer)
Timer 1 -> variableinc 1,1 ( verhoog variable 1 als timer afloopt)
timer 1 - > breakonvarequ 1,17 (stop de timer)
Timer 1 -> timersetmin 1,1 ( Start timer opnieuww als deze afloopt)
Variable 1,1 -> sendnewkaku 1,1 ( hang een dimstand aan de variable)
Variable 1,2 -> sendnewkaku 1,2
...... ( doe dit net zo vaak als je zelf wilt)
Variable 1,17 -> timersetmin 1,0 ( reset timer 1)
Variable 1,17 -> variableset 1,0 ( zet variable 1 weer op 0)
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: Wake up Light script

Berichtdoor domogijs » 28 okt 2012, 21:46

Volgens mij werkte het tweede script prima. Wilde het net weer testen maar de timer stopt om een onverklaarbare reden. Eerste bij waarde 10 toen ik hem opnieuw opgestarte liep de variabele verder tot 13.
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Volgende

Keer terug naar Nodo scripts

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers. en 18 gasten

cron