[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 - Plugin voor Crestat wireles Therme-Hydro - Afdrukweergave
nodo-domotica.nl
http://www.nodo-domotica.nl/forum/

Plugin voor Crestat wireles Therme-Hydro
http://www.nodo-domotica.nl/forum/viewtopic.php?f=8&t=2179
« Vorige  Pagina 2 van 2
Auteur:  bryan241 [ 21 nov 2014, 17:30 ]
Titel:  Re: Plugin voor Crestat wireles Therme-Hydro

Ziet er goed uit. Ik heb nog wel 2 opmerkingen.
Zodra ik het commando cresta id,variable uitvoer dan gaat het goed, maar als ik het nog een keer doe dan krijg ik plugin error. Ik kan niet vinden waardoor dat komt.
Het is natuurlijk niet zo'n groot probleem. Na een reboot van de nodo gaat het weer goed.

Verder is de luchtvochtigheid een getal dat nog omgezet moet worden naar hex, zodat het hetzelfde is als de sensor aangeeft.

Dit kan natuurlijk op verschillende manieren. Ik weet niet wat de beste is, maar ik gebruik het volgende (vervang UserVar[basevar +1 -1] = (float)data[6]; // humidity) met:
float ij = ((float)data[6]);
for(int w=0;w<10;w++){
if(16*w>=ij){
ij = ((w-1)*10)+(ij-((w-1)*16));
w=10;
}
}
UserVar[basevar +1 -1] = (float)ij; // humidity

Bedankt Voyager, ik ben er blij mee :-)
Auteur:  Voyager [ 22 nov 2014, 08:37 ]
Titel:  Re: Plugin voor Crestat wireles Therme-Hydro

Ik heb eigenlijk geen idee hoe het zit met die commando's maar ik duik er even in.

Wat de output van de sensor betreft, ik kon eigenlijk nergens vinden of er ergens afspraken zijn gemaakt over wat een plugin moet doorgeven kwa data formaat. Het lijkt me wel zo handig dat ongeacht het merk en type sensor een temperatuur, luchtvochtigheid enz. in hetzelfde formaat word doorgegeven. Aan de sensor kant is het maar net wat de maker bedacht heeft voor het protocol.
Je ziet hex, decimaal, binair coded decimal (bcd) enz. om nog maar te zwijgen over hoe negatieve temperaturen worden doorgegeven.
Wellicht is het beste om 2 byte hex waarde te gebruiken voor temperatuur met de hoogste bit voor negatief en een 1 byte hex waarde voor luchtvochtigheid.
De "client" kant kan dit dan omzetten naar iedere wenselijke vorm. (berekeningen voor aansturing CV, aansturing via kaku van een anti vorst kacheltje, weergave in web app enz.)

Nou weet ik niet hoe mensen nodo precies gebruiken maar ik ben van mening dat een losstaande nodo/arduino mega/home wizard niet voldoende zijn om als hart van een domotica systeem te fungeren. Je ziet bv. een boel restricties bij de HomeWizard kwa aantal sensoren enz. Ik zie de taak van domonitca controller eerder voor een Linux box (Raspberry Pi, Synology NAS, OpenWRT Router enz.). Uiteraard werkt de Nodo en Homewizard maar in mijn ogen loop je vroeg of laat tegen beperkingen aan.
Auteur:  tim [ 26 nov 2014, 20:47 ]
Titel:  Re: Plugin voor Crestat wireles Therme-Hydro

Pagina 2 van 2 Alle tijden zijn GMT + 1 uur