[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/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)
nodo-domotica.nl • Toon onderwerp - Hoe controleer ik of de tijd/datum wel goed staat - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Hoe controleer ik of de tijd/datum wel goed staat
http://www.nodo-domotica.nl/forum/viewtopic.php?f=24&t=551
Pagina 1 van 1
Auteur:  gheijnen [ 09 mei 2012, 19:11 ]
Titel:  Hoe controleer ik of de tijd/datum wel goed staat

Nodo beta r386 / Mega2560

Als ik 1 van deze commando's gebruik:
Status ClockSetYear
Status ClockSetTime
Status ClockSetDate
Status ClockSetDOW

Dan krijg ik nul terug als resultaat
Input=Terminal(192.168.1.2), Event=Status ClockSetYear,0
Input=Terminal(192.168.1.2), Event=Status ClockSetTime,0
Input=Terminal(192.168.1.2), Event=Status ClockSetDate,0
Input=Terminal(192.168.1.2), Event=Status ClockSetDOW,0

Hoe check ik dan of de tijd goed is?
Of gebruikt hij het internet als tijdbron?




------------------------------------------------------------------------------
Ik wil namelijk onderstaande script gebruiken om mijn lampen automatisch aan/uit te laten gaan als ik niet thuis ben.
Maar het werkt gewoon niet.
Dus gaat er iets mis met de tijd of iets met het script?

Event 1 = lampen aan om 19:00
Event 2 = lampen uit om 01:00
Event 3 = misbruik ik om mijn slaapkamer tv uit te laten gaan omdat de afstandsbediening van de tv stuk is en kan met de universele de timerfunctie niet gebruiken, als nl de tv eerder uitgaat dan ik slaap, druk ik hem nl weer aan, vandaar de verschillende uit timers ;-)

EventlistErase
EventlistWrite; Boot; Sound 7,0
EventlistWrite; WildCard RF,All; SendEvent HTTP
EventlistWrite; WildCard IR,All; SendEvent HTTP
EventlistWrite; WildCard Variables,All; SendEvent HTTP
EventlistWrite; WildCard Wired,All; SendEvent HTTP
EventlistWrite; UserEvent 1,0; SendKAKU A1,On
EventlistWrite; UserEvent 1,0; SendKAKU A2,On
EventlistWrite; UserEvent 1,0; SendKAKU A3,On
EventlistWrite; UserEvent 1,0; SendKAKU A4,On
EventlistWrite; ClockAll 19,0; UserEvent 1,0
EventlistWrite; UserEvent 2,0; SendKAKU A1,Off
EventlistWrite; UserEvent 2,0; SendKAKU A2,Off
EventlistWrite; UserEvent 2,0; SendKAKU A3,Off
EventlistWrite; UserEvent 2,0; SendKAKU A4,Off
EventlistWrite; ClockAll 1,0; UserEvent 2,0
EventlistWrite; UserEvent 3,0; SendKAKU A1,Off
EventlistWrite; ClockAll 1,30; UserEvent 3,0
EventlistWrite; ClockAll 2,0; UserEvent 3,0
EventlistWrite; ClockAll 2,30; UserEvent 3,0
------------------------------------------------------------------------------
Auteur:  markuser [ 09 mei 2012, 20:06 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Hoi,

Zelf ben ik net ook begonnen met het testen van tijdschakelingen.

De tijd kun je synchroniseren onder:

SETUP-COMMANDS-SELECT COMMANDS-SYNC NODO CLOCK

Onder INFO - Nodos status staat de ingestelde tijd.

Mark
Auteur:  gheijnen [ 09 mei 2012, 20:12 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Thnx, hoe vaak kun je ergens overheen zoeken, tijd is dus nu ok.

Echter snap ik niet waarom het script niet werkt, werkt het bij jou dan wel?
Auteur:  markuser [ 09 mei 2012, 20:40 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Hoi,

Ik ken het, ik heb ook veel lopen zoeken in het begin. Maar kom elke dag iets verder.

Werkt de userevent wel via commando ?

Bij mij werkt de tijdschakeling prima.
EventlistWrite;ClockAll 21,30; userevent 4 (groep lampen aan)
EventlistWrite;ClockAll 21,31; userevent 5 (groep lampen uit)

Heb zelf net ondestaan in mijn nodo gezet, even afwachten of ze werken:

!***** Vakantie/weekend weg ***** Inschakelen wanneer nodig

Eventlistwrite; ClockDaylight 3; TimerRandom 1, 10; Timer 1; SendnewKAKU 5,on;
Eventlistwrite; ClockAll 22,00; TimerRandom 2,10; Timer 2; SendnewKAKU 5, off;


!*** Timer / tijd instellingen ***

!test
EventlistWrite; ClockDaylight 3; SendNewKAKU 16, On;

EventlistWrite; ClockDaylight 4; Timer 1,5 ;
EventlistWrite; Timer 1; SendnewKAKU 16, Off;



Even afwachten of dit gaat werken met clockdaylight instellingen.
En een test met random tijd Het zou helemaal mooi zijn dat ik via de webapp kan zeggen dat ik op vakantie ben. En als ik thuis ben naar een weekend of vakantie de random tijd uitgaat
Auteur:  albert81 [ 09 mei 2012, 21:50 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Auteur:  bryan241 [ 10 mei 2012, 10:29 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

De tijd en datum kan je controleren door in de webapp naar Info te gaan en daarna de nodo status op te vragen.
Auteur:  markuser [ 16 mei 2012, 20:04 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Auteur:  albert81 [ 21 mei 2012, 07:29 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Hoi Mark,

Zoals ik het begrepen heb stopt de code met uitvoeren als het VariableSet gelijk is aan de BreakOnVarEqu. In jouw code staat dat hij moet stoppen bij 2,1 en in je VariableSet geef je 2,0 mee.
Probeer eens in je VariableSet 2,1 mee te geven.
Auteur:  markuser [ 24 jun 2012, 07:50 ]
Titel:  Re: Hoe controleer ik of de tijd/datum wel goed staat

Hoi Albert,

Ik had niet gezien dat je gerageerd hebt op mijn vraag, een beetje laat dus. Zet nu de email melding meteen aan.
In de webapp heb ik een knop VariableSet 2,0 voor als ik afwezig ben. Dus als ik afwezig ben gaat er een lamp branden.

Wat wel werkt is deze:
EventlistWrite; ClockDaylight 4,0; UserEvent 8
EventlistWrite; UserEvent 8; BreakOnVarEqu 2,1 ! afbreken 2,1
EventlistWrite; UserEvent 8; SendNewKAKU 16,On
Eventlistwrite; ClockAll 23,00; SendNewKaku 16,off

Wat niet werkt is deze, ik wil eigenlijk de tijd random aan laten gaan als ik weg ben:
EventlistWrite; ClockDaylight 3,0; Timerrandom 5,30
EventlistWrite; Timerrandom 5,0;UserEvent 8
EventlistWrite; UserEvent 8; BreakOnVarEqu 2,1.00 ! afbreken 2,1
EventlistWrite; UserEvent 8; SendNewKAKU 16,On
Eventlistwrite; ClockAll 23,00; SendNewKaku 16,off


Ik kan niet vinden wat er fout zit :?:

Mark
Pagina 1 van 1 Alle tijden zijn GMT + 1 uur