[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 - alarm bij bepaalde temperatuur • nodo-domotica.nl

nodo-domotica.nl

alarm bij bepaalde temperatuur

Hier kun je discussieren over hoe je je Nodo inzet voor taken in en rondom je woning of waar dan ook. Leuke tips, deel ze dan hier.

alarm bij bepaalde temperatuur

Berichtdoor Remko » 04 mei 2013, 09:36

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.
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo 1.2 met koppelprint
Software: V3.7
Remko
 
Berichten: 99
Geregistreerd: 26 okt 2012, 19:47

Re: alarm bij bepaalde temperatuur

Berichtdoor Remko » 06 mei 2013, 11:48

Niemand die me in een richting kan wijzen?
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo 1.2 met koppelprint
Software: V3.7
Remko
 
Berichten: 99
Geregistreerd: 26 okt 2012, 19:47

Re: alarm bij bepaalde temperatuur

Berichtdoor manjh » 07 mei 2013, 09:20

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.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: alarm bij bepaalde temperatuur

Berichtdoor Remko » 07 mei 2013, 11:16

Ok thanx. Ga ik mee spelen. Alleen nog even uitvogelen hoe ik email laat versturen.
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo 1.2 met koppelprint
Software: V3.7
Remko
 
Berichten: 99
Geregistreerd: 26 okt 2012, 19:47

Re: alarm bij bepaalde temperatuur

Berichtdoor DrEnergy » 07 mei 2013, 12:43

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.
DrEnergy
 
Berichten: 145
Geregistreerd: 04 jan 2012, 09:09
Woonplaats: Dordrecht

Re: alarm bij bepaalde temperatuur

Berichtdoor Remko » 11 mei 2013, 14:24

Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo 1.2 met koppelprint
Software: V3.7
Remko
 
Berichten: 99
Geregistreerd: 26 okt 2012, 19:47

Re: alarm bij bepaalde temperatuur

Berichtdoor gijs » 11 mei 2013, 22:46

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
Groet, Gijs
gijs
 
Berichten: 27
Geregistreerd: 09 mei 2013, 20:42

Re: alarm bij bepaalde temperatuur

Berichtdoor Remko » 12 mei 2013, 16:50

Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo 1.2 met koppelprint
Software: V3.7
Remko
 
Berichten: 99
Geregistreerd: 26 okt 2012, 19:47

Re: alarm bij bepaalde temperatuur

Berichtdoor gijs » 14 mei 2013, 00:22

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.
Groet, Gijs
gijs
 
Berichten: 27
Geregistreerd: 09 mei 2013, 20:42

Re: alarm bij bepaalde temperatuur

Berichtdoor Markie » 14 mei 2013, 12:01

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

Volgende

Keer terug naar Nodo toepassingen

Wie is er online?

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

cron