[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 - Plugin voor Crestat wireles Therme-Hydro • nodo-domotica.nl

nodo-domotica.nl

Plugin voor Crestat wireles Therme-Hydro

Hier alles over de Software in de Nodo

Re: Plugin voor Crestat wireles Therme-Hydro

Berichtdoor bryan241 » 21 nov 2014, 17:30

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 :-)
bryan241
 
Berichten: 172
Geregistreerd: 07 jan 2012, 14:14

Re: Plugin voor Crestat wireles Therme-Hydro

Berichtdoor Voyager » 22 nov 2014, 08:37

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.
Voyager
 
Berichten: 180
Geregistreerd: 23 okt 2014, 14:26

Re: Plugin voor Crestat wireles Therme-Hydro

Berichtdoor tim » 26 nov 2014, 20:47

tim
 
Berichten: 114
Geregistreerd: 11 nov 2013, 14:21

Vorige

Keer terug naar Nodo Software

Wie is er online?

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