[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/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 - Hulp bij script en notificatie • nodo-domotica.nl

nodo-domotica.nl

Hulp bij script en notificatie

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.

Re: Hulp bij script en notificatie

Berichtdoor BasPost » 07 nov 2012, 07:34



Afbeelding
BasPost
 
Berichten: 118
Geregistreerd: 03 jul 2012, 06:46
Woonplaats: Tolkamer

Re: Hulp bij script en notificatie

Berichtdoor BasPost » 07 nov 2012, 09:09



Afbeelding
BasPost
 
Berichten: 118
Geregistreerd: 03 jul 2012, 06:46
Woonplaats: Tolkamer

Re: Hulp bij script en notificatie

Berichtdoor manjh » 17 maart 2013, 17:51

Wat je het beste kunt doen is gewoon proberen. Het is natuurlijk veel makkelijker om werkende scripts over te nemen van iemand anders, maar dan krijg jij het nooit in de vingers.
Zelf doen is de beste leergang.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: Hulp bij script en notificatie

Berichtdoor Markie » 17 maart 2013, 19:25

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

Re: Hulp bij script en notificatie

Berichtdoor Markie » 17 maart 2013, 19:52

in een script kunnen macros zitten ja maar ook clock events of timer events enz enz
de activiteit tab in de webapp daar kan je dus een knop aanmaken met lampen aan
en als commando geef je het userevent van mijn vorige voorbeeld op dus userevent 1,1 .

voor lampen uit maak je ook weer een knop aan met de tekst lampen uit en met het commando userevent 2,1 .

als je nu klaar bent en je gaat naar het tabblad activiteiten in de webapp
vind je twee knoppen namelijk lampen aan en lampen uit bij het klikken op deze knoppen wordt de macro in het vorige voorbeeld uit gevoerd.

succes.

groet Mark
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

Re: Hulp bij script en notificatie

Berichtdoor manjh » 17 maart 2013, 23:11

Script is een breed begrip.
Maak maar even onderscheid tussen een eventlist, die staat altijd in het geheugen. Bestaat uit een event en een bijbehorende aktie. En daarnaast een script, die je opslaat in een file op de sd card van de ethernet kaart, als je die hebt.
Een macro is een groep opdrachten die als groep worden uitgevoerd, zoals ook in het voorbeeld hierboven.

Leergangen heb ik ervaring mee, heb er een hele serie gedaan tot nu nivo IPMA-B. Maar de belangrijkste les is altijd geweest dat je pas echt leert als je de lesstof toepast in de praktijk.
Dus: ga aan de slag, maak je handen vuil, en leer al doende.
Hans
manjh
 
Berichten: 1173
Geregistreerd: 29 aug 2011, 14:39

Re: Hulp bij script en notificatie

Berichtdoor Markie » 17 maart 2013, 23:28

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

Re: Hulp bij script en notificatie

Berichtdoor arjen » 21 apr 2013, 21:31

Graag jullie advies voor mijn alarm.
Variabele 3 wordt op 1.00 gezet door de klok of via de webapp (Userevent 102).
De sensor L1 mag alleen 48BCD81 aanzetten als Variabele 3 op 1 staat.
Waarom werkt dat niet bij de volgende eventlist? In mijn geval gaat 48BCD81 altijd aan als L1 aan gaat.

EventList 20; ClockAll 21,30; VariableSet 3,1.00
EventList 21; ClockAll 7,0; VariableSet 3,0.00
EventList 22; UserEvent 102,1; VariableSet 3,1.00
EventList 23; UserEvent 102,2; VariableSet 3,0.00
EventList 24; KAKU L1,On; BreakOnVarNEqu 3,1.00
EventList 25; KAKU L1,On; NewKAKU 0x48BCD81,On


Alvast dank
Arjen
Mega, Ethernetshield, Nodo op protoshield, 491
arjen
 
Berichten: 18
Geregistreerd: 12 nov 2012, 22:54

Re: Hulp bij script en notificatie

Berichtdoor Paul » 22 apr 2013, 16:14

Groeten Paul
Paul
 
Berichten: 1152
Geregistreerd: 31 aug 2011, 20:33

Re: Hulp bij script en notificatie

Berichtdoor arjen » 22 apr 2013, 20:12

Paul, bedankt.

Zonder dat ik het merkte reageerde de lamp op L1 ipv de Nodo.
En het 'commando' was een event.
Beginnersfouten...

Bedankt.
Arjen
Mega, Ethernetshield, Nodo op protoshield, 491
arjen
 
Berichten: 18
Geregistreerd: 12 nov 2012, 22:54

VorigeVolgende

Keer terug naar Nodo scripts

Wie is er online?

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

cron