Air Quality Egg Data

Hi,  couldn't find much on the AQE on the forum. I'm hopeing someone using the AQE publishing data to econcms could help me.   I bought the AQE as it appeared to be more compatabile with econcms than others of its ilk. I have tried out Trystan's "PollEggBus_openenergymonitor" and the "AQE_casa" sketches. I can get both to send data to econcms but get very odd numbers,  negative values etc. I think it has something to do with the data values. Some of the data coming across is not correct.  The temperature and humidity come across accurately, including when multiplied by 100, but the no2/co data is often wrong.  It is not uncommon for there values to be in the 1000's or higher (at least where I was testing it :-)) and I think the data type of int is resulting in values "carrying over" from the ~37000 to ~-37000, but that is not the whole story as some of the smaller values (when I don't multiply by 10000 as in Trystan's sketch) also come across incorrectly, I haven't been able to identify a pattern in this.   I am assuming some conflict in data types float vs int etc but have "fiddled" with the sketches to no avail.  Does anyone have a sketch working with accurate values.

Sean

boelle's picture

Re: Air Quality Egg Data

have you configured emonhub right?

not sure i can help you but i can try, could you attach a copy of the sketch you like to use and a copy of emonhub.conf ?

sean_j_n@hotmail.com's picture

Re: Air Quality Egg Data

Boelle

I didn't modify emonhub.conf at all, i recall seeing in one of the setup guides recommendation to alter the "datatypes" but it wasn't consistent through all the guides i read and didn't seem to make a difference to my data (before AQE) so i left them as default.

I have attached the original sketches i used because mine ended up in a bit of a mess!  My emonhub.conf is the original default from the buffered write setup for nanodeRF to Raspberry Pi base Station publishing locally.

The PollEggBus_openenergymonitor by Trystan i had the most success with.  I was able to view 3 "data sets" , the sensor values read from the AQE (temp and humidity from the DHT sensor and CO/NO2 from the bus)displayed on the Serial Monitor, the values saved into the "typedef struct" for transmission to emonhub/ emoncms (the sensor values multiplied by 100 or 10000) and the values as displayed by emoncms.

The temp and humidity would come out accurate from the sensor but would save a value NOT multiplied by 100 into the "typedef struct", however would display the original sensor value multiplied by 100 by the time it reached emonhub/ emoncms.  The co/no2 would give ?accurate results when read from sensor with different values in the following 2 data sets, including positive original values becoming negative values after being multiplied by 10000.

Any advice would be appreciated, next time i'm off work i will have a look at modifying the datatypes in emonhub and see if that makes a difference.

Sean

boelle's picture

Re: Air Quality Egg Data

the thing is that it might get displayed right at serial monitor, but if its not decoded rights in emonhub it will not look right at all

 

so a copy of emonhub.conf is also needed...

 

i have been in this situation before, the serial output was spot on but when i looked in emoncms it was total wrong

 

Edit: You might start with getting the serial output to display the temp 100% correct...then you dont need to process the data in emoncms... then you also know that the data in the air is correct.

 

 

sean_j_n@hotmail.com's picture

Re: Air Quality Egg Data

Thanks,

Sorry for the delay in replying, work..heatwave..etc

I managed to get it receiving correctly after you pointed me in the direction of emonhub.conf, simply used long as the data type of the "typedef struct" and set the datacodes in emonhub.conf to "l".

 

Cheers

Sean

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.