[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 - syntax nieuwe opzet - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

syntax nieuwe opzet
http://www.nodo-domotica.nl/forum/viewtopic.php?f=8&t=1541
Pagina 1 van 2  Volgende »
Auteur:  kabouter [ 27 apr 2013, 08:48 ]
Titel:  syntax nieuwe opzet

Hallo Martinus,

zou je me kunnen vertellen wat ik nu fout doe?
ik krijg het maar niet voor elkaar om de DS18B20 en de DHT11 te latwen melden.
of ik begrijp de syntax niet ik maak gebruik van de volgende script.

EventlistErase
EventlistWrite; Boot 1; Sound 7,0
EventlistWrite; Boot 1; TimerSet 1,1
EventlistWrite; Boot 1; TimerSet 2,1
EventlistWrite; Boot 1; TimerSet 3,1
EventlistWrite; Boot 1; TimerSet 4,1
EventlistWrite; Boot 1; TimerSet 10,1
EventlistWrite; Boot 1; TempRead 5,9 !DS18B20 op poort 9
EventlistWrite; Boot 1; DHT11Read 7,7 !DHT11 op poort 7
EventlistWrite; Boot 1; DHT11Read 7,8 !DHT11 op poort 8
EventlistWrite; Boot 1; AlectoV1 7,10 !AlectoV1 op poort 10
EventlistWrite; Boot 1; AlectoV1 45,10 !AlectoV1 regen op poort 10
EventlistWrite; Boot 1; WiredThreshold 1,310
EventlistWrite; Boot 1; WiredSmittTrigger 1,100
EventlistWrite; Timer 1; Timer 1,60 ! elke minuut
EventlistWrite; Timer 1; Status WiredAnalog,1 ! Helderheid
EventlistWrite; Timer 1; VariableSetVariable 7,7 ! DHT11 op poort 8
EventlistWrite; Timer 1; VariableSetVariable 8,8 ! DHT11 op poort 8
EventlistWrite; Timer 1; VariableSetVariable 9,9 ! DS18B20 via
EventlistWrite; Timer 1; VariableSetVariable 10,10 ! AlectoV1 Temperatuur
EventlistWrite; Timer 1; VariableSetVariable 11,11 ! AlectoV1 Vochtigheid
EventlistWrite; Timer 1; VariableSetVariable 12,12 ! AlectoV1 Regen
EventlistWrite; Timer 1; VariableSetVariable 13,13 ! AlectoV1 Windsnelheid
EventlistWrite; Timer 1; VariableSetVariable 14,14 ! AlectoV1 Windvlaag
EventlistWrite; Timer 1; VariableSetVariable 15,15 ! AlectoV1 Windrichting
......

ik maak gebruik van de nieuwe 529 script waar trouwens volgens mij in misc.ino de Device 20 t/m Device 24 een underscore vergeten is in Device_ptr[x]=&Device20 klopt dit?

zou je ook kunnen vertellen wat de exacte syntax om b.v. een DHT11 wat op poort7 aangesloten is, zou moeten zijn?
en hoe je dit dan weer in de webapp kan laten weergeven via een variable ?
de AlectoV1 Device heb ik met bovenstaande script wel werkend gekregen.


David
Auteur:  mvdbro [ 27 apr 2013, 12:46 ]
Titel:  Re: syntax nieuwe opzet

Hallo David,

De poorten bij devices hebben de nummering van de wiredout poorten. Dus beginnen bij 1.
Daarnaast gebruikt de DHT11 twee variabelen.
Dus als je twee units hebt aangesloten op wiredout 1 en 2 dan zijn dit de commando's als je daarvoor variabele 7,8,9 en 10 gaat gebruiken:

DHT11Read 1,7
DHT11Read 2,9

De eerste gebruikt dan dus variabele 7 en 8, de tweede gebruikt 9 en 10.

De DHT11 code gebruikt nu nog de interne event queue van de Nodo. Dit lijkt niet helemaal naar wens te gaan, mogelijk gaan we dat nog wijzigen.
Auteur:  Teunissm [ 07 mei 2013, 20:58 ]
Titel:  Re: syntax nieuwe opzet

Beste Martinus,

Ook ik ben bezig met de laatste beta versie nodo software. Ik krijg het hiermee niet voor elkaar om een DHT11 geprogrammeerd te krijgen. Ik heb in de compiler software de regels "#define DEVICE_06" en "#define DEVICE_CORE_06" toegevoegd in het tabblad nodo.

Ik probeer de volgende eventlist in de nodo te plaatsen:
eventlisterase;
eventlistwrite; boot 15; timerset 1,120;
eventlistwrite; boot 15; DHT11Read 1,1;
eventlistwrite; boot 15; senduserevent 150,1;
eventlistwrite; timer 1; timerset 1,120;
eventlistwrite; timer 1; senduserevent 150,1;
eventlistshow;
reboot;

Als de regel waarin vermeld staat DHT11read geprogrammerd moet worden wordt deze regel als error gezien, bij een eventlistshow krijg ik dan ook alleen de andere 4 regels te zien.

De software is trouwens gecompileerd op een duemilinove als een small versie.

Kun jij mij misschien verder helpen?

Bij voorbaat dank.
Groet Marcel
Auteur:  mvdbro [ 08 mei 2013, 07:27 ]
Titel:  Re: syntax nieuwe opzet

Auteur:  Teunissm [ 08 mei 2013, 18:55 ]
Titel:  Re: syntax nieuwe opzet

Auteur:  mvdbro [ 08 mei 2013, 19:13 ]
Titel:  Re: syntax nieuwe opzet

Voor de device commando's moet je de bijbehorende nodo.ino van de website downloaden en in dezelfde folder plaatsen als de nodotool.
Dan zou het moeten werken
Auteur:  Teunissm [ 08 mei 2013, 19:35 ]
Titel:  Re: syntax nieuwe opzet

Martinus,

Bedankt voor zo ver, maar helaas krijg ik het nog niet voor elkaar. ik zie bij het opstarten van de nodotool nu wel dat hij gebruikt maakt van de device file. maar nog steeds krijg ik een error als de regel met de DHT11 geschreven moet worden. Kan ik misschien controleren of de software wel juist gecompileerd is in de small?

Ik zie trouwens ook geen events langs komen in de nodotool (iedere 2 minuten verzenden van het userevent)?

marcel
Auteur:  mvdbro [ 08 mei 2013, 20:58 ]
Titel:  Re: syntax nieuwe opzet

Auteur:  Teunissm [ 08 mei 2013, 21:09 ]
Titel:  Re: syntax nieuwe opzet

Martinus,

Ik krijg ook een unknown command als de regel geprogrammeerd moet worden. Ik heb tevens de volgende regel geprobeerd te programmeren: eventlistwrite; timer 1; sendkaku A1,on
Ook hierbij krijg ik een unknown command?

grt
marcel
Auteur:  mvdbro [ 09 mei 2013, 10:26 ]
Titel:  Re: syntax nieuwe opzet

Pagina 1 van 2 Alle tijden zijn GMT + 1 uur