[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)
nodo-domotica.nl • Toon onderwerp - alarm bij bepaalde temperatuur - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

alarm bij bepaalde temperatuur
http://www.nodo-domotica.nl/forum/viewtopic.php?f=35&t=1543
Pagina 1 van 4  Volgende »
Auteur:  Remko [ 04 mei 2013, 09:36 ]
Titel:  alarm bij bepaalde temperatuur

Ik heb een mega/nodo draaien met hieraan een ds18b20. Ik zou graag een email willen ontvangen als het te warm wordt in de kamer waarin de sensor zich bevindt. Kan dit en hoe stel ik dit in? Bijv. als de sensor 24 graden bereikt.
Auteur:  Remko [ 06 mei 2013, 11:48 ]
Titel:  Re: alarm bij bepaalde temperatuur

Niemand die me in een richting kan wijzen?
Auteur:  manjh [ 07 mei 2013, 09:20 ]
Titel:  Re: alarm bij bepaalde temperatuur

De waarde komt in een var terecht, daarna kun je daarop gaan regeren.
Voorbeeld voor de eventlist uitgaande van var1:
Variable 1; breakonvarless 1,14;
Variable 1; sendkaku a1,on;

Zodra var1 wijzigt treedt het event op, maar de sendkaku a1,on gebeurt alleen als de waarde hoger dan 14 is.

Even uit de losse pols, misschien klopt de syntax niet helemaal. Even mee spelen.
Auteur:  Remko [ 07 mei 2013, 11:16 ]
Titel:  Re: alarm bij bepaalde temperatuur

Ok thanx. Ga ik mee spelen. Alleen nog even uitvogelen hoe ik email laat versturen.
Auteur:  DrEnergy [ 07 mei 2013, 12:43 ]
Titel:  Re: alarm bij bepaalde temperatuur

Voor de mail kan je het beste gewoon een userevent laten versturen, maar dit userevent hoeft dus alleen te worden gestuurd als de waarde van de var hoger is dan die 14.

dus in plaats van de sendkaku a1,on uit bovenstaand voorbeeld kan je dan gewoon userevent xx,xx doen. In de webapp bij notification kan je een nieuwe notification aanmaken waarbij userevent xx,xx een mail stuurt met een mooi onderwerp erin.
Auteur:  Remko [ 11 mei 2013, 14:24 ]
Titel:  Re: alarm bij bepaalde temperatuur

Auteur:  gijs [ 11 mei 2013, 22:46 ]
Titel:  Re: alarm bij bepaalde temperatuur

Je event loopt op variabele 7 zo te zien.
Daarna test je variable 1.

Probeer eens: EventlistWrite; Variable 7,0.00; BreakOnVarLess 7,22.00
Auteur:  Remko [ 12 mei 2013, 16:50 ]
Titel:  Re: alarm bij bepaalde temperatuur

Auteur:  gijs [ 14 mei 2013, 00:22 ]
Titel:  Re: alarm bij bepaalde temperatuur

Helaas niet. Bij het vergelijken van de event tegen de eventlist wordt helaas de waarde van de variabele ook meegenomen. Enige optie is denk ik een Wildcard event op Variables gebruiken. Maar dan krijg je ze weer allemaal tegelijk. Gaat dus alleen werken als je verder geen andere variabelen gebruikt.
Er is eigenlijk behoefte aan een Wildcard op alle waarden van een enkele variabele.

Er is misschien een alternatief. Hoe lees je die sensor uit. Wanneer je een timer event gebruikt dan kan je de test op kleiner dan en het userevent in de afhandeling van de timerevent meenemen. meteen na de VariableDevice dan de Break en dan de userevent lijkt me.

Tenslotte, door het introduceren van "devices" in 3.4.9 en hoger gaat het commando VariableDevice verdwijnen. Uitlezen gaat iets anders werken. Als je van plan bent binnenkort te upgraden moet een deel van het werk opnieuw.
Auteur:  Markie [ 14 mei 2013, 12:01 ]
Titel:  Re: alarm bij bepaalde temperatuur

Pagina 1 van 4 Alle tijden zijn GMT + 1 uur