[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)
Toon onderwerp - Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!! • nodo-domotica.nl

nodo-domotica.nl

Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!

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.

Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!

Berichtdoor Naitsirhc » 23 dec 2013, 11:09

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?
Laatst bijgewerkt door Naitsirhc op 27 dec 2013, 22:20, in totaal 1 keer bewerkt.
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: Na reset wordt script half ingeladen??

Berichtdoor markuser » 23 dec 2013, 18:45

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.
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Re: Na reset wordt script half ingeladen??

Berichtdoor Naitsirhc » 23 dec 2013, 21:00

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.
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: Na reset wordt script half ingeladen??

Berichtdoor mDieli » 23 dec 2013, 23:16

mDieli
 
Berichten: 59
Geregistreerd: 09 nov 2013, 07:12

Re: Na reset wordt script half ingeladen??

Berichtdoor Naitsirhc » 24 dec 2013, 10:48

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
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: Na reset wordt script half ingeladen??

Berichtdoor Naitsirhc » 27 dec 2013, 16:07

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

Werk nu met files op de SD card.
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28

Re: Na reset wordt script half ingeladen??

Berichtdoor markuser » 27 dec 2013, 19:07

De volhouder wint. Wellicht goed om de juiste script hier ook te plaatsen. Altijd goed voor de mede nodo gebruikers op het forum.
Mvg, Mark

4 Unit's met ethernet. Nodo-Mega V3.7, Product=SWACNC-MEGA-R744
Devices: Diverse Kaku's, DS18b20, DHT11, LCD, WS3500, CNY70, BPW40, LDR, Watersensor, Slimme meter kaifa MA304, RFLink, Raspberry PI, Domoticz
Gebruikers-avatar
markuser
 
Berichten: 497
Geregistreerd: 29 feb 2012, 13:19

Na reset wordt script half ingeladen?? 26-12-2013 OPGELOST!!

Berichtdoor Naitsirhc » 27 dec 2013, 22:19

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
Naitsirhc
 
Berichten: 232
Geregistreerd: 30 sep 2011, 14:28


Keer terug naar Nodo scripts

Wie is er online?

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

cron