[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/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 - VariableInc • nodo-domotica.nl

nodo-domotica.nl

VariableInc

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.

VariableInc

Berichtdoor bertb » 10 mei 2014, 16:48

Hallo allemaal,

Ik heb een probleempje met VariableInc waar ik niet uit kom.
Ik gebruik R744 op een mega. Ik heb een KAKU deursensor die stuurt NewKaku 0x74E289,16 bij deur open en NewKaku 0x74E289,off bij deur dicht.
Ik heb ook een KAKU PIR en die stuurt 0xABC9B89,On bij detectie en 0xABC9B89,Off na een instelbare periode.
In de Nodo is dit prima terug te zien. Ik wil graag zien hoe vaak op een dag de deur open gaat en heb het volgende aan mijn script toegevoegd:
Eventlistwrite; NewKaku 0x74E289,16; VariableInc 14,1.00
Eventlistwrite; NewKaku 0xABC9B89,On; VariableInc 15,1.00

Echter Variabelen 14 en 15 blijven 0. Wat doe ik fout?
Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: VariableInc

Berichtdoor wvh » 11 mei 2014, 13:02

Hoi , Ik gebruik hiervoor
EventlistWrite; Kaku I8,On; VariableSet 13,1
en EventlistWrite; Kaku I8,Off; VariableSet 13,0
Zo kan ik via de webapp / Values volgen wanneer de sensor actief is geweest ;)

Grt ...Victor
wvh
 
Berichten: 39
Geregistreerd: 15 nov 2011, 10:36

Re: VariableInc

Berichtdoor bertb » 11 mei 2014, 16:33

:oops:
Ik heb het al gevonden. Ik kon in eerste instantie niet via in de eventlist van de Nodo kijken, maar na een beetje ploeteren lukte het wel (mijn fout) Het bleek dat er een fout in het script zat en dan worden de regels die erna komen niet geprogrammeerd.
Inmiddels de fout er uit gehaald en nu werkt het als een tierelier.

Maar nu heb ik wel een andere vraag.
Zowel het deurcontant als de PIR zenden meerdere malen achterelkaar dat ze het event hebben gezien. Met VariableInc leidt dit al snel tot een onbedoelde en onjuiste optelling. Hoe kan ik dat voorkomen?

Groet,
Bert
Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: VariableInc

Berichtdoor wvh » 11 mei 2014, 16:59

Oei .... :roll: Misschien met ergens een Delay te plaatsen
http://www.nodo-domotica.nl/index.php/Delay

Victor
wvh
 
Berichten: 39
Geregistreerd: 15 nov 2011, 10:36

Re: VariableInc

Berichtdoor manjh » 12 mei 2014, 20:07

Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: VariableInc

Berichtdoor manjh » 12 mei 2014, 20:09

Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: VariableInc

Berichtdoor bertb » 14 mei 2014, 10:34

Omdat ik niet dol ben op delays, heb ik het zo opgelost. Vooralsnog werkt het uitstekend.
Eventlistwrite; Garagedeur open; BreakOnVarEqu 14,1
Eventlistwrite; Garagedeur open; VariableSet 14,1
Eventlistwrite; Garagedeur open; VariableSend 14,HTTP

Eventlistwrite; Garagedeur dicht; BreakOnVarEqu 14,0
Eventlistwrite; Garagedeur dicht; VariableSet 14,0
Eventlistwrite; Garagedeur dicht; VariableSend 14,HTTP

Groet,
Bert
Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam

Re: VariableInc

Berichtdoor manjh » 14 mei 2014, 10:48

Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: VariableInc

Berichtdoor bertb » 14 mei 2014, 12:11

Nodo Mega 2560 R619 met breadboard, Nodo Uno met breadboard
Tiny Kaku met breadboard, DS18B20, AlectoV1, DHT11
bertb
 
Berichten: 268
Geregistreerd: 14 sep 2013, 14:00
Woonplaats: Amsterdam


Keer terug naar Nodo scripts

Wie is er online?

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

cron