[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/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 - Doorgeven analoge waarde aan EventGhost variabele - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Doorgeven analoge waarde aan EventGhost variabele
http://www.nodo-domotica.nl/forum/viewtopic.php?f=25&t=106
Pagina 1 van 1
Auteur:  mvdbro [ 15 nov 2011, 10:21 ]
Titel:  Doorgeven analoge waarde aan EventGhost variabele

Ik probeer een analoge meetwaarde (LDR op poor 1) door te geven aan EvenGhost, maar dit wil nog niet lukken. Ik dacht aan het volgende:

Nodo macro die een timer start en elke minuut de status van de analoge poort doorgeeft:
Line=1, Event=(Boot), Action=(TimerSetMin 1,1)
Line=2, Event=(Timer 1,0), Action=(Status WiredAnalog,1)
Line=3, Event=(Timer 1,0), Action=(TimerSetMin 1,1)

Dit werkt op zich en de waarde wordt als 'info' getoond in het eventghost scherm:
Line=3, Event=(Timer 1,0), Action=(Status WiredAnalog,1)
Direction=Output, Source=RF, Unit=1, Event=(WiredAnalog 1,210)
Direction=Output, Source=IR, Unit=1, Event=(WiredAnalog 1,210)

De waarde is dus 210

Er wordt echter geen event gemaakt in EventGhost, dus het lijkt erop dat ik geen trigger kan maken die het b.v. een programma start die de waarde kan verwerken. De waarde wordt nu blijkbaar verzonden via de RF en IR poort. Dit is niet nodig. Ik moet waarschijnlijk een ander commando gebruiken, maar ik zie even niet welke...
Auteur:  Paul [ 15 nov 2011, 14:58 ]
Titel:  Re: Doorgeven analoge waarde aan EventGhost variabele

Als je de verzending naar IR helemaal overbodig vindt, dan kan je dit uitzetten met 'TransmitSettings'

In plaats van de status opvragen kun je beter met het commando 'VariableWiredAnalog' de waarde van de analoge ingang opslaan in een variabele. Iedere keer als een variabele veranderd, genereert dit een event. De EventGhost plugin houdt de status van alle variabelen bij. Je kunt dit vervolgens gebruiken waarvoor je wilt.


Zie ook:

Neem ook in overweging dat je op basis van een bepaalde waarde ook de Nodo kunt laten schakelen, dan hoeft je PC niet altijd aan te staan.
Auteur:  mvdbro [ 15 nov 2011, 16:35 ]
Titel:  Re: Doorgeven analoge waarde aan EventGhost variabele

Beste Paul,
Ik heb de macro in de Nodo aangepast naar action: VariableWiredAnalog 15,1.
Dit levert dan b.v. het volgende event op in eventghost:
Unit-1.Variable 15,123

Ik kan dit met een wildcard event (*) in eventghost opvangen, maar dan reageert de macro in eventghost op alle events die binnenkomen. Als ik als eventname "Unit-1.Variable 15,*" opgeef, dan lijkt het niet te werken.

Het doel is dus een eventghost macro te maken die op alle variaties van Variable 15 reageert.
Is het mogelijk om gedeeltelijke wildcards in eventnames te gebruiken? Zoja, hoe?
Auteur:  Paul [ 15 nov 2011, 20:55 ]
Titel:  Re: Doorgeven analoge waarde aan EventGhost variabele

Auteur:  mvdbro [ 16 nov 2011, 10:07 ]
Titel:  Re: Doorgeven analoge waarde aan EventGhost variabele

Met de tips van Paul ben ik wat verder gaan testen en ik heb het nu werkend, op 2 mogelijke manieren:

Mogelijkheid 1:
=============
Nodo Macro:
Event=(Boot), Action=(TimerSetMin 1,1)
Event=(Timer 1,0), Action=(Status WiredAnalog,1)
Event=(Timer 1,0), Action=(TimerSetMin 1,1)

In eventghost een timer ingesteld voor trigger elke minuut.
Als die afgaat, lees ik de variabele {Unit1_WiredAnalog_1} uit en dit werkt prima.

Mogelijkheid 2:
=============
Nodo Macro:
Event=(Boot), Action=(TimerSetMin 1,1)
Event=(Timer 1,0), Action=(VariableWiredAnalog 15,1)
Event=(Timer 1,0), Action=(TimerSetMin 1,1)

In eventghost een timer ingesteld voor trigger elke minuut.
Als die afgaat, lees ik de variabele {{Unit1_Variable_15}} uit en dit werkt prima.

FOUTJE IN DOCUMENTATIE:
=======================
Mogelijkheid 2 kreeg ik aanvankelijk niet aan de praat, eventghost kende de variabele niet. Ik had deze naam gekopieerd van de nodo website en die is niet helemaal juist:
Er staat in de lijst : {Unitx_Variabele_n}
Dit moet zijn : {Unitx_Variable_n}
Auteur:  Paul [ 16 nov 2011, 11:53 ]
Titel:  Re: Doorgeven analoge waarde aan EventGhost variabele

Pagina 1 van 1 Alle tijden zijn GMT + 1 uur