[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 - Event creëren d.v.m. TCP/UDP packet - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Event creëren d.v.m. TCP/UDP packet
http://www.nodo-domotica.nl/forum/viewtopic.php?f=35&t=1681
Pagina 1 van 1
Auteur:  pepijn [ 24 sep 2013, 09:11 ]
Titel:  Event creëren d.v.m. TCP/UDP packet

Hoi,

Idee/wens.....

Ik heb een RaspBerry Pi + camera module + Motion draaien. Dit om beweging te detecteren in m'n tuin. Werkt prima.
Nu wil ik de buitenverlichting bedienen als er beweging wordt gedetecteerd door Motion. De buitenverlichting wordt nu bediend door Nodo + KlikAanKlikUit. Nu kan ik natuurlijk 1 van de GPIO's (GeneralPurpose IO's) op de RPi gebuiken en daarmee een ingang van de Nodo schakelen. Maar dit moet ook mooier kunnen, gezien beide apparaten een Ethernet aansluiting hebben....

Is er een mogelijkheid dat de Nodo (hele simpele) TCP of UDP packets kan ontvangen, en daarmee een event genereren ? Een packet met als data 1 of 2 Nodo parameters, that's all.

Als zoiets niet standaard tot de mogelijkheden behoort moet ik zelf iets gaan knutselen met een UserDevice en zoiets Of heeft iemand andere suggesties ?

Pepijn
Auteur:  mvdbro [ 24 sep 2013, 11:25 ]
Titel:  Re: Event creëren d.v.m. TCP/UDP packet

Toevallig hebben we daar gisteren "intern" discussie over gehad.

Formeel zal het niet worden ondersteund, althans niet op de centrale Mega. Het probleem is het beperkte aantal sockets op de W5100 chip van het ethernet shield. Als we hier plugins op los gaan laten loop je redelijke kans op verstoring van de communicatie naar de WepApp en dan moet je niet willen.

gr
Martinus
Auteur:  pepijn [ 24 sep 2013, 12:26 ]
Titel:  Re: Event creëren d.v.m. TCP/UDP packet

Bedankt voor je reactie.

Goed plan om het op een externe Nodo af te handelen. Ik ga de komende dagen ff lekker knutselen met je voorbeeldje. Ga het aan de Raspberry kant via Python doen, dus kan alle kanten op.

ff wat anders nog. Er was een idee om Nodo's met elkaar te laten communiceren via Ethernet via de WebApp als doorgeefluik. Zit daar niet een optie ? Ethernet pakketjes naar de WebApp sturen. Die het op zijn beurt doorgeeft aan de betreffende Nodo.

Of, wat ook een optie kan zijn: Via Python en Telnet sessie opzetten naar de Nodo, event genereren in de Telnet sessie en de sessie meteen weer sluiten.

Gr Pepijn
Auteur:  Paul [ 12 okt 2013, 16:20 ]
Titel:  Re: Event creëren d.v.m. TCP/UDP packet

Dan is er nog een simpele manier. Als je een Mega met ethernet kaart hebt, dan kun je eenvoudig een event versturen naar de Nodo met een simpel HTTP-request. Zie onderstaand voorbeeld:

192.168.0.100:6636/?event=sound

Natuurlijk wel even juiste IP adres kiezen. Je kan deze regel testen door gewoon in je browser in te typen. Let wel op dat als je een password hebt ingesteld (en dat is het geval bij gebruik van de WebApp) het event niet wordt geaccepteerd. Voor beveiligd transport moet er iets meer gebeuren. Ik zal hier eens een wiki pagina aan wijden.
Auteur:  Paul [ 12 okt 2013, 16:21 ]
Titel:  Re: Event creëren d.v.m. TCP/UDP packet

Pagina 1 van 1 Alle tijden zijn GMT + 1 uur