[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/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 - Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!! - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!
http://www.nodo-domotica.nl/forum/viewtopic.php?f=24&t=1857
Pagina 1 van 1
Auteur:  Naitsirhc [ 23 dec 2013, 11:09 ]
Titel:  Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!

Hallo,

Ik heb een code in de mega gezet, voor het uitlezen van een LDR. Met een daarbij behorende WiredSmittrigger en WiredThreshold.

Doordat ik dit script wilde uitbreiden ben ik weer aan het experimenteren geslagen. Helaas lukte dit allemaal niet, dus probeerde ik weer van voren te beginnen. Reset via de webapp. Poosje wachten, en daarna benaderen via de webapp.
Allemaal goed.
Nu heb ik weer een script gemaakt:
EventlistErase;
EventlistWrite; Boot 1; TimerSet 1,10; !Timer starten
EventlistWrite; WiredThreshold 1,400; ! instellen midden van schakelwaarde
EventlistWrite; WiredSmittTrigger 1,50; ! instellen van bounds
EventlistWrite; Timer 1; TimerSet 1,10 !Timer van 10 sec eventueel aanpassen
EventlistWrite; Timer 1; Status WiredAnalog,1 !Timer afgelopen, dan status wiredana. doorgeven
EventlistWrite; WildCard Wired,All,0; EventSend RF
EventlistWrite; WildCard All,Variable,0: EventSend RF
EventlistWrite; WildCard RF,All,0;
EventlistWrite; WiredIn 1,On; UserEventSend 10,1;! verstuur userevent voor webapp.
EventlistWrite; WiredIn 1,Off; UserEventSend 10,0;
EventlistWrite; UserEvent 10,0; KakuSend B1,Off;
EventlistWrite; UserEvent 10,1; KakuSend B1,On


Versturen naar de nodo en daarna met putty bekeken wat de status is van de eventlist dmv
Status EvenListCount
Nu zie ik, dat er maar 1 regel in de eventlist zit. (EvenListCount 1,255;)

EventlistErase
EventlistWrite; Boot 1; TimerSet 1,10
, aldus de webapp.

Ik het gereset + SD card geformateerd. Wat zou hier aan de hand kunnen zijn?
Auteur:  markuser [ 23 dec 2013, 18:45 ]
Titel:  Re: Na reset wordt script half ingeladen??

Meestal zit er dan een fout in het script, meestal controleer ik dit door de regel waar hij stopt via de serial toe te voegen.
Auteur:  Naitsirhc [ 23 dec 2013, 21:00 ]
Titel:  Re: Na reset wordt script half ingeladen??

Bedankt voor de reactie:

Dat betekent dus, dat ik:
EventlistWrite; WiredThreshold 1,400;
via putty in moet voeren....

Even later:
Dit is dus gebeurd, echter pikt de Nodo dit niet.
Status EventlistCount=> 1,255.
De fout zit dus in deze regel, echter zou ik niet weten wat ik verkeerd doe.
Ik heb al geprobeerd om er boot 1 voor te zetten. Echter krijg ik dan als output:
WiredTreshold 1,400???

Ik snap het niet meer.
Auteur:  mDieli [ 23 dec 2013, 23:16 ]
Titel:  Re: Na reset wordt script half ingeladen??

Auteur:  Naitsirhc [ 24 dec 2013, 10:48 ]
Titel:  Re: Na reset wordt script half ingeladen??

Hallo,

Dat had je goed gezien, Dat was ook een fout. :oops: (was er op het laatst zo vaak mee bezig geweest, dat ik dat niet meer zag)
Ik heb nu opnieuw (met de juiste code)
EventlistWrite; WiredThreshold 1,400; ingevoerd.

Ik krijg nu geen foutmelding, maar regel wordt ook niet opgeslagen..... :( :x
Auteur:  Naitsirhc [ 27 dec 2013, 16:07 ]
Titel:  Re: Na reset wordt script half ingeladen??

Heb het script aangepast (verbouwd) En heb nu geen problemen meer.

Werk nu met files op de SD card.
Auteur:  markuser [ 27 dec 2013, 19:07 ]
Titel:  Re: Na reset wordt script half ingeladen??

De volhouder wint. Wellicht goed om de juiste script hier ook te plaatsen. Altijd goed voor de mede nodo gebruikers op het forum.
Auteur:  Naitsirhc [ 27 dec 2013, 22:19 ]
Titel:  Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!

HAllo Mark,

Daar was ik nog niet aan toegekomen, maar je hebt gelijk:
Script mega:
Eventlisterase;
EventlistWrite; Time 12:00, *; Reboot
EventlistWrite; Boot 1; WiredThreshold 1,400
EventListWrite; Boot 1; WiredSmittTrigger 1,50
EventlistWrite; Boot 1; TimerSet 1,300
EventlistWrite; Timer 1; TimerSet 1,300
EventlistWrite; Timer 1; Status WiredAnalog,1
EventlistWrite; WildCard Wired,All,0; EventSend RF
EventlistWrite; WildCard All,Variable,0: EventSend RF
EventlistWrite; WildCard RF,All,0;
EventlistWrite; WiredIn 1, On; FileExecute 101, On
EventlistWrite; Time 23:00, Mon; FileExecute 102, On
EventlistWrite; Time 23:00, Tue; FileExecute 102, On
EventlistWrite; Time 23:00, Wed; FileExecute 102, On
EventlistWrite; Time 23:00, Thu; FileExecute 102, On
EventlistWrite; Time 23:59, Fri; FileExecute 102, On
EventlistWrite; Time 02:00, Sat; FileExecute 102, On
EventlistWrite; Time 02:00, Sun; FileExecute 102, On
EventlistWrite; Time 23:00, Sun; FileExecute 102, On

File 102 (ter voorbeeld)
KakuSend B1, Off;
KakuSend B2, Off;
KakuSend B3, Off;

Files kunnen gewoon in scripts ingeklopt worden en geupload (hoeft dus niet via commands)
Heb trouwens een file aangemaakt met alle Kaku's uit
(file 105)
KakuSend A1, Off;
KakuSend A2, Off;
KakuSend A3, Off;
KakuSend A4, Off;
...
...
...
KakuSend B8, Off;
KakuSend B9, Off;

Deze roep ik aan in het tabblad activities met het commando FileExecute 105
Pagina 1 van 1 Alle tijden zijn GMT + 1 uur