[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/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 - Draadloze temperatuur zender • nodo-domotica.nl

nodo-domotica.nl

Draadloze temperatuur zender

Hier alles over de hardware kant van de Nodo

Re: Draadloze temperatuur zender

Berichtdoor proza » 23 jul 2012, 21:44

Wel gedaan maar er gaat iets toch niet goed, uiteindelijk smoort de nodo en kan ik er niets meer mee. :?
- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: Draadloze temperatuur zender

Berichtdoor mvdbro » 23 jul 2012, 22:02

Oke, vereist toch nader onderzoek. Kun je bevestigen dat de voorlaatste versie wel stabiel is. Zoja, dan weet ik in elk geval waar het probleem optreedt.
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Draadloze temperatuur zender

Berichtdoor proza » 23 jul 2012, 23:28

- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: Draadloze temperatuur zender

Berichtdoor mvdbro » 25 jul 2012, 16:18

Ik heb even via een andere nodo een testsignaal laten verzenden met dezelfde bitlengte. Kan ik in elk geval iets testen. Bij mij draait dit nu al ruim een uur zonder problemen. Ik zie de data ook in de Nodo Webapp terug, hoewel de waarde bij mij natuurlijk niet varieert.

Om helder te houden welke versie in gebruik is, bij deze versienummer en datum opgenomen. Dit is dus versie 0.0.1. Wellicht zou je deze eens kunnen proberen:

/*********************************************************************************************\
* Analyseert signalen van Alecto weerstations.
* Routine is in 'alpha' stage, gebruik op eigen risico, neveneffecten op de Nodo Software niet bekend.
* Alleen getest met Alecto WS3500.
* Versie 0.0.1
* 25-07-2012
\*********************************************************************************************/

#define tempVar 10

boolean UserPlugin_Receive(unsigned long Event)
{
unsigned long bitstream=0;
byte nibble0=0;
byte nibble1=0;
byte nibble2=0;
byte nibble3=0;
byte nibble4=0;
byte nibble5=0;
byte nibble6=0;
byte nibble7=0;
byte checksum=0;
long temperature=0;
unsigned long rain=0;
byte windspeed=0;
unsigned long winddirection=0;
unsigned long customEvent;

if (RawSignal.Number != 74) return true;

for(byte x=2; x<=64; x=x+2)
{
if(RawSignal.Pulses[x] > 0xA00) bitstream = ((bitstream >> 1) |(0x1L << 31));
else bitstream = (bitstream >> 1);
}

for(byte x=66; x<=72; x=x+2)
{
if(RawSignal.Pulses[x] > 0xA00) checksum = ((checksum >> 1) |(0x1L << 3));
else checksum = (checksum >> 1);
}

nibble7 = (bitstream >> 28) & 0xf;
nibble6 = (bitstream >> 24) & 0xf;
nibble5 = (bitstream >> 20) & 0xf;
nibble4 = (bitstream >> 16) & 0xf;
nibble3 = (bitstream >> 12) & 0xf;
nibble2 = (bitstream >> 8) & 0xf;
nibble1 = (bitstream >> 4) & 0xf;
nibble0 = bitstream & 0xf;
temperature = (bitstream >> 12) & 0xfff;

Serial.print("Alecto Raw data:");
Serial.println(bitstream);
Serial.print("Alecto Checksum:");
Serial.println(checksum);

if ((nibble2 & 0x6) != 6) {
Serial.print("Alecto Temperature:");
Serial.println(temperature);
UserVar[tempVar-1] = temperature;
//ProcessEvent2(AnalogInt2event(UserVar[tempVar-1], tempVar, CMD_VARIABLE_EVENT), VALUE_DIRECTION_INTERNAL, VALUE_SOURCE_VARIABLE, 0, 0);
customEvent=AnalogInt2event(UserVar[tempVar-1], tempVar, CMD_VARIABLE_EVENT);
SendHTTPEvent(customEvent);
PrintEvent(customEvent,VALUE_SOURCE_HTTP,VALUE_DIRECTION_OUTPUT);
return false;
}
else
{
if (nibble3 == 3)
{
Serial.print("Alecto Raindata:");
rain = (bitstream >> 16) & 0xffff;
Serial.println(rain);
}
if (nibble3 == 1)
{
Serial.print("Alecto Windspeed:");
windspeed = (bitstream >> 24) & 0xff;
Serial.println(windspeed);
}
if ((nibble3 & 0x7) == 7)
{
Serial.print("Alecto Wind direction:");
winddirection = (bitstream >> 15) & 0x1ff;
Serial.println(winddirection);
}
}

// funktie kan op twee manieren worden verlaten:
// true = Nodo gaat verder met verwerking van het event
// false = Event wordt niet verder behandeld.
return true;
}
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Draadloze temperatuur zender

Berichtdoor proza » 25 jul 2012, 20:43

Zojuist de versie 0.0.1 geladen en draait (nog steeds) nu 5 minuten. En var 10 opgenomen in de Webapp waar ik nu een waarde aflees van 2,35 °C. Komma mag nog een plaatsje naar rechts :D

Eens kijken of de code blijft draaien zonder noemenswaardige problemen. Nu een waarde middels grafiek in de webapp, fraai...........

UPDATED: Nu 00:10 uur draait het nog steeds :D

Alecto Raw data:588165805
Alecto Checksum:8
Alecto Temperature:235

Alecto Raw data:22427150
Alecto Checksum:10
Alecto Raindata:342

Alecto Raw data:33560237
Alecto Checksum:15
Alecto Windspeed:2

Alecto Raw data:588161709
Alecto Checksum:9
Alecto Temperature:234

Daarna heb ik de batterijen even uit de basisunit en regen sensor gehaald waardoor de regenwaarde op nul is komen te staan. Wat resulteert in de volgende getallen;

Alecto Raw data:1504941
Alecto Checksum:12
Alecto Wind direction:45 (is noord (zichtbaar als vijf over twaalf))

Alecto Raw data:14030
Alecto Checksum:10
Alecto Raindata:0

Alecto Raw data:822985389
Alecto Checksum:9
Alecto Temperature:220
- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: Draadloze temperatuur zender

Berichtdoor mvdbro » 26 jul 2012, 09:09

Versie 0.0.2. Temperatuur zou nu goed moeten zijn in de webapp. Ook humidity toegevoegd volgens documentatie. Je zal zelf even moeten testen of dat werkt. Humidity wordt opgeslagen in var 11, maar dit kan je aanpassen via de define.

mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Draadloze temperatuur zender

Berichtdoor proza » 26 jul 2012, 10:45

Vanavond zal ik hem laden, zie je ook nog kans de data voor de regenmeter te verwerken.
- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: Draadloze temperatuur zender

Berichtdoor proza » 26 jul 2012, 17:08

- Jura Impressa F50 and a Starbucks MUG makes my day complete
Gebruikers-avatar
proza
 
Berichten: 420
Geregistreerd: 03 nov 2011, 22:44

Re: Draadloze temperatuur zender

Berichtdoor Flippo765 » 26 jul 2012, 21:58

Bij mij geeft ie dat soort code's wanneer ik met me harmony erop uitzend.
Last van IR storing?

Het lijkt er hier wel op dat de Nodo op de tv stoort.
Flippo765
 
Berichten: 96
Geregistreerd: 24 nov 2011, 22:31

Re: Draadloze temperatuur zender

Berichtdoor Bessie » 26 jul 2012, 22:13

Ik ben even weg geweest en zie dat dit topic aardig is gegroeid de laatste dagen, Heel mooi :D
Proza, zou je misschien kort kunnen beschrijven wat je hebt gedaan om dit werkend te krijgen. waar moet bijvoorbeeld de code neergezet worden en heb je nog wat gedaan in je eventlist. Alvast bedankt!
Bessie
 
Berichten: 36
Geregistreerd: 15 okt 2011, 12:09

VorigeVolgende

Keer terug naar Nodo Hardware

Wie is er online?

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

cron