Page 51 of 89

Re: Weather34 TEMPLATE

Posted: Thu May 28, 2020 11:47 pm
by ConligWX
Hey brian, here is one for you in the future.

PurpleAir sensors. the Temp/Humidity/Pressure sensor is a BME280.

i have just replace the BME280 with the new Adafruit BME680 which adds VOC gas sensor too. dont know if you want to add this to one of the modules or not, but if you do you can test against my json file. look for "Voc:" value.

https://www.purpleair.com/json?show=5876

Experimental map is here:

https://www.purpleair.com/map?opt=1/mVO ... 634/-6.364

Code: Select all

{
	"mapVersion": "0.10",
	"baseVersion": "7",
	"mapVersionString": "",
	"results": [
		{
			"ID": 5876,
			"Label": "Conlig",
			"DEVICE_LOCATIONTYPE": "outside",
			"THINGSPEAK_PRIMARY_ID": "401562",
			"THINGSPEAK_PRIMARY_ID_READ_KEY": "O0RXREU8ZI26NADF",
			"THINGSPEAK_SECONDARY_ID": "401564",
			"THINGSPEAK_SECONDARY_ID_READ_KEY": "LNTSYD0WYTIV1CG3",
			"Lat": 54.634158,
			"Lon": -5.672035,
			"PM2_5Value": "20.69",
			"LastSeen": 1590702401,
			"Type": "PMS5003+PMS5003+BME280",
			"Hidden": "false",
			"DEVICE_BRIGHTNESS": "15",
			"DEVICE_HARDWAREDISCOVERED": "2.0+OPENLOG+15833 MB+DS3231+BME680+PMSX003-B+PMSX003-A",
			"Version": "6.01",
			"LastUpdateCheck": 1590701197,
			"Created": 1515703378,
			"Uptime": "94923",
			"RSSI": "-66",
			"Adc": "0.02",
			"p_0_3_um": "2696.95",
			"p_0_5_um": "741.39",
			"p_1_0_um": "116.36",
			"p_2_5_um": "8.95",
			"p_5_0_um": "3.39",
			"p_10_0_um": "0.64",
			"pm1_0_cf_1": "14.58",
			"pm2_5_cf_1": "20.69",
			"pm10_0_cf_1": "23.73",
			"pm1_0_atm": "14.58",
			"pm2_5_atm": "20.69",
			"pm10_0_atm": "23.73",
			"isOwner": 0,
			"humidity": "54",
			"temp_f": "64",
			"pressure": "1025.01",
			"AGE": 1,
			"Stats": "{\"v\":20.69,\"v1\":23.58,\"v2\":21.99,\"v3\":18.93,\"v4\":11.65,\"v5\":7.59,\"v6\":8.07,\"pm\":20.69,\"lastModified\":1590702401076,\"timeSinceModified\":120077}"
		},
		{
			"ID": 5877,
			"ParentID": 5876,
			"Label": "Conlig B",
			"THINGSPEAK_PRIMARY_ID": "401565",
			"THINGSPEAK_PRIMARY_ID_READ_KEY": "EG0C2U6YJWDXHZCM",
			"THINGSPEAK_SECONDARY_ID": "401566",
			"THINGSPEAK_SECONDARY_ID_READ_KEY": "8EJZ462T7ZMQGRP7",
			"Lat": 54.634158,
			"Lon": -5.672035,
			"PM2_5Value": "21.21",
			"LastSeen": 1590702401,
			"Hidden": "false",
			"Created": 1515703378,
			"Adc": "0.03",
			"p_0_3_um": "2948.48",
			"p_0_5_um": "795.19",
			"p_1_0_um": "108.21",
			"p_2_5_um": "6.17",
			"p_5_0_um": "2.03",
			"p_10_0_um": "0.59",
			"pm1_0_cf_1": "15.93",
			"pm2_5_cf_1": "21.21",
			"pm10_0_cf_1": "22.86",
			"pm1_0_atm": "15.93",
			"pm2_5_atm": "21.21",
			"pm10_0_atm": "22.86",
			"Voc": 61.0,
			"isOwner": 0,
			"humidity": "54",
			"temp_f": "64",
			"pressure": "1025.01",
			"Voc": 61.0,
			"AGE": 1,
			"Stats": "{\"v\":21.21,\"v1\":23.65,\"v2\":21.97,\"v3\":18.99,\"v4\":11.78,\"v5\":7.71,\"v6\":8.15,\"pm\":21.21,\"lastModified\":1590702401076,\"timeSinceModified\":120076}"
		}
	]

Re: Weather34 TEMPLATE

Posted: Fri May 29, 2020 10:45 am
by weatherist34
good morning Simon its a work in progress perhaps during this lockdown weekend it will get finished ..needs to add a color scale to VOC(Gas) and add a conversion to temperature to use either F or C
pa.png
pa.png (178.01 KiB) Viewed 4674 times

Re: Weather34 TEMPLATE

Posted: Fri May 29, 2020 12:29 pm
by ConligWX
Hi Brian, thats great.

just some info, then new sensor can replace the old one, or you can attach the 680 to the 280 and have two sensors working. in the JSON file you should see BME280 or BME680 as the sensor usually. I am guessing that if both are attached you will see both listed in the file.

there are only about 8 BME680's fitted world wide so far, I will check the others and get back to you.

Re: Weather34 TEMPLATE

Posted: Fri May 29, 2020 12:34 pm
by ConligWX

Re: Weather34 TEMPLATE

Posted: Fri May 29, 2020 5:52 pm
by weatherist34
ok Simon if you would drop me an email overnight I will send you two files in the morning to just simply upload .it works off the basis the purple hardware is set to yes in the setup screen.if no then no small icon purple appears.

not going to go to far with this as you quoted only 8 users worldwide . if the interest goes up then ill refine it but it works and tested with your user ID .
2ndpa.png
2ndpa.png (177.66 KiB) Viewed 4650 times

Re: Weather34 TEMPLATE

Posted: Fri May 29, 2020 6:01 pm
by ConligWX
Ok thanks Brian. The VOC sensor is experiemental, but from what Adrian has said in the past he will most likely fit the BME680 as standard in the future as this is another "air quality" measurement that PurpleAir can use.

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 7:54 am
by weatherist34
Good morning Simon

I have added the Purple Air option screen to the simple update , I was also able to use Grahams(Ringwood UK) data also has his purple air has no VOC capability so the fallback is a simple N/A display as shown below .this makes the optional screen available to use for all purple air hardware owners as shown below. if you need chart data for purple air it has been there for many months as an option as shown below.

simple update 30-05-2020 via https://weather34.com/homeweatherstatio ... alone.html


paII-MAY.png
paII-MAY.png (408.52 KiB) Viewed 4628 times

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 9:34 am
by ConligWX
VOC working as shown here:
Capture (Small) (1).JPG
Capture (Small) (1).JPG (58.89 KiB) Viewed 4618 times

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 9:42 am
by weatherist34
i think the some research or reading needs doing on the scale factor for VOC obviously very different from pm scaling .

i.e what VOC reading is in the safe limit to what is deemed as concern,dangerous,life threatening etc..

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 10:26 am
by ConligWX
weatherist34 wrote: Sat May 30, 2020 9:42 am i think the some research or reading needs doing on the scale factor for VOC obviously very different from pm scaling .

i.e what VOC reading is in the safe limit to what is deemed as concern,dangerous,life threatening etc..
yes indeed. this is a "new" type of data for us weather enthusiasts and I have asked Adrian to add some more meaningful data/descriptions even in his VOC widget on purpleair. this is however very early days.

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 4:06 pm
by prestwickwx
weatherist34 wrote: Sat May 30, 2020 7:54 am Good morning Simon

I have added the Purple Air option screen to the simple update , I was also able to use Grahams(Ringwood UK) data also has his purple air has no VOC capability so the fallback is a simple N/A display as shown below .this makes the optional screen available to use for all purple air hardware owners as shown below. if you need chart data for purple air it has been there for many months as an option as shown below.

simple update 30-05-2020 via https://weather34.com/homeweatherstatio ... alone.html



paII-MAY.png
Hi Brian,

I noticed your new Purple Air screen - nice addition. The module has a links to the Purple Air Website - they presently point to your info site. Not sure whether that was intentional or an over site.

Also, for future updates, I do think your earlier version (below) which includes the AQI numerical range definitions is great for visitors who are not familiar with the values.
Capture.PNG
Capture.PNG (87.79 KiB) Viewed 4588 times
Take care,

Chuck

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 4:49 pm
by weatherist34
as always many thanks :-) an oversight or error on my behalf :cry:

fixed also cleaned up red color which was way to dark on dark background, increased font visibility .


paII-fix1.png
paII-fix1.png (166.62 KiB) Viewed 4586 times

Re: Weather34 TEMPLATE

Posted: Sat May 30, 2020 4:54 pm
by prestwickwx
Got it. The grids look great!

I forgot that the small module gives the definition, so the Air Quality info I mentioned above may not be needed.

Chuck

Re: Weather34 TEMPLATE

Posted: Sun May 31, 2020 12:59 am
by ConligWX
Brian here is some documentation from the BME680 (Temp,Hum,Press + VOC) which is experimental fitting to the PurpleAir Sensor.

https://www.bosch-sensortec.com/media/b ... -ds001.pdf

included in the documentation is Table4: Index of Air Quality IAQ Classification and color-coding
Capture.JPG
Capture.JPG (103.79 KiB) Viewed 4560 times
This is for the VOC sensor.

Re: Weather34 TEMPLATE

Posted: Sun May 31, 2020 7:20 am
by weatherist34
many thanks Simon
have added the color code based on that now , also cleaned up code , cleaned up PM10 formula and other little minor details.

available via the simple update Standalone-update-31-05-2020.zip

think thats job done .many thanks for the idea of VOC im sure some who have it will benefit.
pa-IIclean.png
pa-IIclean.png (74.83 KiB) Viewed 4553 times