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

nodo-domotica.nl

Hoe controleer ik of de tijd/datum wel goed staat

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.

Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor gheijnen » 09 mei 2012, 19:11

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
------------------------------------------------------------------------------
gheijnen
 
Berichten: 19
Geregistreerd: 18 sep 2011, 09:46

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor markuser » 09 mei 2012, 20:06

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
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor gheijnen » 09 mei 2012, 20:12

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?
gheijnen
 
Berichten: 19
Geregistreerd: 18 sep 2011, 09:46

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor markuser » 09 mei 2012, 20:40

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
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor albert81 » 09 mei 2012, 21:50

Gewoon omdat het kan......
albert81
 
Berichten: 81
Geregistreerd: 25 nov 2011, 13:55

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor bryan241 » 10 mei 2012, 10:29

De tijd en datum kan je controleren door in de webapp naar Info te gaan en daarna de nodo status op te vragen.
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor markuser » 16 mei 2012, 20:04

Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor albert81 » 21 mei 2012, 07:29

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.
Gewoon omdat het kan......
albert81
 
Berichten: 81
Geregistreerd: 25 nov 2011, 13:55

Re: Hoe controleer ik of de tijd/datum wel goed staat

Berichtdoor markuser » 24 jun 2012, 07:50

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
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19


Keer terug naar Nodo scripts

Wie is er online?

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