new airQualitySensor block ( updated airQualityEcowitt )
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Ok, I thought that it was only a question of meteobridge configuration.
If it is not possible to do it via meteobridge you can do it via this small mod of api.php ( expand it in the main directory of meteotemplate ).
I have only added line 113-115 to rename sensors pp0-pp2 to pp1-pp3 ( not tested, but it should work )
If it is not possible to do it via meteobridge you can do it via this small mod of api.php ( expand it in the main directory of meteotemplate ).
I have only added line 113-115 to rename sensors pp0-pp2 to pp1-pp3 ( not tested, but it should work )
- Attachments
-
- api_pp0_pp2.zip
- (11.79 KiB) Downloaded 82 times
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
davidefa, your api.php mod seems to work well. Thanks!
Any way to change date format for this block? into this MM/DD/YY and time format to AM/Pm. Could even be on two different lines within block.
Any way to change date format for this block? into this MM/DD/YY and time format to AM/Pm. Could even be on two different lines within block.
- meteoesine
- Forecaster
- Posts: 166
- Joined: Sun Aug 20, 2017 4:08 pm
- Location: Esine, Valcamonica (BS) - Italy
- Station model: Davis Pro2+
- Software: Meteobridge nano
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Is it possible to have a similar version also for purpleair?
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
What do you mean?meteoesine wrote: ↑Thu Mar 31, 2022 9:22 am Is it possible to have a similar version also for purpleair?
This block shows the air quality data retrieved from the meteotemplate database.
Do you mean retrieving ( and displaying ) data directly from purple air ( without passing through meteotemplate database )?
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
I'd say a little bit 'intimidating'
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
ver 1.3
- date and time shown using dateTimeFormat defined in main setup
P.S.
If this is not ok I can add an option to specify date and time only for the block
- date and time shown using dateTimeFormat defined in main setup
P.S.
If this is not ok I can add an option to specify date and time only for the block
- Attachments
-
- airQualitySensor_1.3.zip
- (45.44 KiB) Downloaded 63 times
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
I do believe there is a purple air block already available, if that's what you are looking formeteoesine wrote: ↑Thu Mar 31, 2022 9:22 am Is it possible to have a similar version also for purpleair?
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
works well, thanks
- meteoesine
- Forecaster
- Posts: 166
- Joined: Sun Aug 20, 2017 4:08 pm
- Location: Esine, Valcamonica (BS) - Italy
- Station model: Davis Pro2+
- Software: Meteobridge nano
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Ciao Davide, ricevere i dati direttamente dal dispositivo purpleAir sarebbe perfetto, utilizzando il Json code, o meglio la nuova api key personale che da poco hanno introdotto (che a breve andrà a sostituire il codice json).davidefa wrote: ↑Thu Mar 31, 2022 9:32 amWhat do you mean?meteoesine wrote: ↑Thu Mar 31, 2022 9:22 am Is it possible to have a similar version also for purpleair?
This block shows the air quality data retrieved from the meteotemplate database.
Do you mean retrieving ( and displaying ) data directly from purple air ( without passing through meteotemplate database )?
Utilizzo meteobridge tramite lo scatolino TL-MR3020 e non avendo il nano non riesco a prendere i dati dal purpleair.
-
- Observer
- Posts: 39
- Joined: Wed Feb 06, 2019 1:31 pm
- Station model: Vantage pro 2 plus
- Software: Meteobridge
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Good day to you,
I have just seen the file, there are now 3 sensors, only it seems that 1 and 3 have been swapped, PM 1 should show a lower value and PM 10 a higher one, it is the other way round.
Gerrit
I have just seen the file, there are now 3 sensors, only it seems that 1 and 3 have been swapped, PM 1 should show a lower value and PM 10 a higher one, it is the other way round.
Gerrit
- Attachments
-
- Schermafbeelding 2022-04-01 om 13.56.39.png (42.83 KiB) Viewed 3992 times
-
- Schermafbeelding 2022-04-01 om 13.49.26.png (9.22 KiB) Viewed 3993 times
-
- Schermafbeelding 2022-04-01 om 13.48.03.png (41.24 KiB) Viewed 3993 times
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
You can assign PM1.0 PM2.5 PM10 0 with the air quality block settings.
I had to switch PP3 and PP1.
-
- Observer
- Posts: 39
- Joined: Wed Feb 06, 2019 1:31 pm
- Station model: Vantage pro 2 plus
- Software: Meteobridge
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Good day,
That was not a smart move on my part
It works fine now
That was not a smart move on my part
It works fine now
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
just bought 2 airlinks for outdoor and indoor.
as above I use MB, so PP3=PM1, PP2=PM2.5, PP1=PM10.
using the airsensor block 1.3, and api mod.
works fine,
But how to add the indoor air quality?
And in the combined graph, can the titels of particulate pollution be changed to PM1,2.5 and 10.
I guess in our situation it's best to change the titels ourselves?
as above I use MB, so PP3=PM1, PP2=PM2.5, PP1=PM10.
using the airsensor block 1.3, and api mod.
works fine,
But how to add the indoor air quality?
And in the combined graph, can the titels of particulate pollution be changed to PM1,2.5 and 10.
I guess in our situation it's best to change the titels ourselves?
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
you use meteobridge?
MIght have to create your own http call, see this post https://www.wxforum.net/index.php?topic=40447.0
MIght have to create your own http call, see this post https://www.wxforum.net/index.php?topic=40447.0
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
mmm, tried to change the mapping, when i choose air2, and map it to a certain pm, it overwrites the air1.
tried to update the api.php to get more sensors in, doesn't work either...
did not try the http call, i got my mt as good as it is now, not happy to start over again...
must be way, but for now I don't know how.
tried to update the api.php to get more sensors in, doesn't work either...
did not try the http call, i got my mt as good as it is now, not happy to start over again...
must be way, but for now I don't know how.
-
- Forecaster
- Posts: 188
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: new airQualitySensor block ( updated airQualityEcowitt )
to get more sensors in, you will have to create the http call in meteobridge, services, new, http request, periodical, and not use the mt api from the weather networks. I do believe you'll have to create a cron job as well, not sure
example from the post i shared
http://YOUR-SITE/yourpath-to-the-templa ... api.php?U=[epoch.1:]&T=[th0temp-lastval.1:]&TMX=[th0temp-max5:]&TMN=[th0temp-min5:]&H=[th0hum-lastval.1:]&P=[thb0seapress-lastval:1]&W=[wind0avgwind-lastval=kmh:1]&G=[wind0wind-lastval=kmh:1]&B=[wind0dir-lastval:1]&R=[rain0total-daysum:--]&RR=[rain0rate-lastval:1]&S=[sol0rad-lastval:2]&UV=[uv0index-lastval:1]&TIN=[thb0temp-lastval.1:]&HIN=[thb0hum-lastval.1:]&T1=[th1temp-lastval.1:]&H1=[th1hum-lastval.1:]&SM1=[th20hum-lastval.0:]&SM2=[th21hum-lastval.0:]&SM3=[th22hum-lastval.0:]&SM4=[th23hum-lastval.0:]&SM5=[th24hum-lastval.0:]&L=[lgt0energy-lastval.0:]&PP1=[air0pm-lastval:2]&PP2=[air1pm-lastval:2]&PASS=yourpassword
That would have to be edited by you to customize to your sensors. It's within the Services tab of meteobridge. You would have to customize the db of mt. I am no professional of mb and have not tried this, but others have with success. You should go to meteobridge wiki and read up on the templates. Setup a test site mt and create you http call to go to test site. You should be able to get sensors working there, then move to main site. If i get time, i might be able to try as well.
example from the post i shared
http://YOUR-SITE/yourpath-to-the-templa ... api.php?U=[epoch.1:]&T=[th0temp-lastval.1:]&TMX=[th0temp-max5:]&TMN=[th0temp-min5:]&H=[th0hum-lastval.1:]&P=[thb0seapress-lastval:1]&W=[wind0avgwind-lastval=kmh:1]&G=[wind0wind-lastval=kmh:1]&B=[wind0dir-lastval:1]&R=[rain0total-daysum:--]&RR=[rain0rate-lastval:1]&S=[sol0rad-lastval:2]&UV=[uv0index-lastval:1]&TIN=[thb0temp-lastval.1:]&HIN=[thb0hum-lastval.1:]&T1=[th1temp-lastval.1:]&H1=[th1hum-lastval.1:]&SM1=[th20hum-lastval.0:]&SM2=[th21hum-lastval.0:]&SM3=[th22hum-lastval.0:]&SM4=[th23hum-lastval.0:]&SM5=[th24hum-lastval.0:]&L=[lgt0energy-lastval.0:]&PP1=[air0pm-lastval:2]&PP2=[air1pm-lastval:2]&PASS=yourpassword
That would have to be edited by you to customize to your sensors. It's within the Services tab of meteobridge. You would have to customize the db of mt. I am no professional of mb and have not tried this, but others have with success. You should go to meteobridge wiki and read up on the templates. Setup a test site mt and create you http call to go to test site. You should be able to get sensors working there, then move to main site. If i get time, i might be able to try as well.
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
v1.4
- added luftdaten support ( retrieves pp data directly from luftdaten.info )
- added davis airlink support ( retrieves pp data directly from weatherlink.com )
luftdaten configuration:
- add your lufdaten sensor Id
- in PM1.0 field write P0 ( if available )
- in PM2.5 field write P2 ( if available )
- in PM10.0 field write P1 ( if available )
davis airlink configuration:
- add your davis api key and secret key
- add your sensor Id ( lsid you can retrieve it via the davisWLL plugin )
- in PM1.0 field write pm_1 ( if available )
- in PM2.5 field write one of the available davis field, pm_2p5_nowcast for example
- in PM10.0 field write one of the available davis field, pm_10_nowcast for example
NOTE
To retrieve data from the database simply leave lufdaten sensor Id and davis api key empty
P.S.
Purpleair support could be added as well ( but need a purple air api key to test it, as old api does not work any more )
- added luftdaten support ( retrieves pp data directly from luftdaten.info )
- added davis airlink support ( retrieves pp data directly from weatherlink.com )
luftdaten configuration:
- add your lufdaten sensor Id
- in PM1.0 field write P0 ( if available )
- in PM2.5 field write P2 ( if available )
- in PM10.0 field write P1 ( if available )
davis airlink configuration:
- add your davis api key and secret key
- add your sensor Id ( lsid you can retrieve it via the davisWLL plugin )
- in PM1.0 field write pm_1 ( if available )
- in PM2.5 field write one of the available davis field, pm_2p5_nowcast for example
- in PM10.0 field write one of the available davis field, pm_10_nowcast for example
NOTE
To retrieve data from the database simply leave lufdaten sensor Id and davis api key empty
P.S.
Purpleair support could be added as well ( but need a purple air api key to test it, as old api does not work any more )
- Attachments
-
- airQualitySensor_1.4.zip
- (46.26 KiB) Downloaded 54 times
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
v1.5
- added Purpleair support ( retrieves pp data directly from purpleair.com )
purpleair configuration:
- add your purpleair api key ( the read key )
- add your sensor Id ( you can retrieve it via the purpleair map: https://www.purpleair.com/map?mylocation )
- in PM1.0 field write one of the available purpleair field ( pm1.0, pm1.0_a, pm1.0_b, pm1.0_atm, pm1.0_cf_1 ), pm1.0 for example
- in PM2.5 field write one of the available purpleair field ( pm2.5, pm2.5_a, pm2.5_b, pm2.5_atm, pm2.5_cf_1 ), pm2.5 for example
- in PM10.0 field write one of the available purpleair field ( pm10.0, pm10.0_a, pm10.0_b, pm10.0_atm, pm10.0_cf_1 ), pm10.0 for example
- added Purpleair support ( retrieves pp data directly from purpleair.com )
purpleair configuration:
- add your purpleair api key ( the read key )
- add your sensor Id ( you can retrieve it via the purpleair map: https://www.purpleair.com/map?mylocation )
- in PM1.0 field write one of the available purpleair field ( pm1.0, pm1.0_a, pm1.0_b, pm1.0_atm, pm1.0_cf_1 ), pm1.0 for example
- in PM2.5 field write one of the available purpleair field ( pm2.5, pm2.5_a, pm2.5_b, pm2.5_atm, pm2.5_cf_1 ), pm2.5 for example
- in PM10.0 field write one of the available purpleair field ( pm10.0, pm10.0_a, pm10.0_b, pm10.0_atm, pm10.0_cf_1 ), pm10.0 for example
- Attachments
-
- airQualitySensor_1.5.zip
- (46.42 KiB) Downloaded 61 times
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Thank you David,
I think I'm going to change from meteobridge to full DavisWLL thanks to your efforts!
It's more reliable.
Did a donation recently, entirely because of your hard work.
Many thanks
Gracie.
I think I'm going to change from meteobridge to full DavisWLL thanks to your efforts!
It's more reliable.
Did a donation recently, entirely because of your hard work.
Many thanks
Gracie.
- i_fiorentino
- Language Admin
- Posts: 81
- Joined: Sun Aug 27, 2017 11:31 pm
- Location: Pistoia, Tuscany, IT
- Station model: Davis Vantage Vue
- Software: Weather Display
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Hi,
i've just installed this block but i don't understand how to catch data from sensor.
I've PurpleAir sensor already installed.
In settings page there is no url or IP field to catch this data.
Any help please?
Regards,
Alessandro
i've just installed this block but i don't understand how to catch data from sensor.
I've PurpleAir sensor already installed.
In settings page there is no url or IP field to catch this data.
Any help please?
Regards,
Alessandro
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
You have to enter your 'Sensor ID' and 'Api Key' ( [s]you can generate your api key from the control panel on the purepleair site[/s]* ).
It works by retrieving the data directly from the purpleair cloud ( as your sensor already sends data to the purpleair cloud ).
Retrieving the data directly from the sensor can be done only if the server and the sensor are on the 'same network' ( that is not your case ). It is not supported in this release, but it can be added if someone needs.
NOTE
* you have to request an api key to contact@purpleair.com
It works by retrieving the data directly from the purpleair cloud ( as your sensor already sends data to the purpleair cloud ).
Retrieving the data directly from the sensor can be done only if the server and the sensor are on the 'same network' ( that is not your case ). It is not supported in this release, but it can be added if someone needs.
NOTE
* you have to request an api key to contact@purpleair.com
Last edited by davidefa on Sat Jul 30, 2022 1:30 pm, edited 2 times in total.
- i_fiorentino
- Language Admin
- Posts: 81
- Joined: Sun Aug 27, 2017 11:31 pm
- Location: Pistoia, Tuscany, IT
- Station model: Davis Vantage Vue
- Software: Weather Display
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
Thanks for reply Davide,davidefa wrote: ↑Sat Jul 30, 2022 11:14 am You have to enter your 'Sensor ID' and 'Api Key' ( you can generate your api key from the control panel on the purepleair site ).
It works by retrieving the data directly from the purpleair cloud ( as your sensor already sends data to the purpleair cloud ).
Retrieving the data directly from the sensor can be done only if the server and the sensor are on the 'same network' ( that is not your case ). It is not supported in this release, but it can be added if someone needs.
air_purpleair.png
i don't manage to find my control panel on purpleair site and also api key generator.
Could you send me direct link?
I've red that the only way to obtain api key is to send an email to purpleair.com.
Thanks in advance,
Alessandro
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: new airQualitySensor block ( updated airQualityEcowitt )
My bad, you are right ( I don't have a purpleair unit, I got confused having managed davis and ecowitt api key ).
According to this post you have to request an api key to contact@purpleair.com.
According to this post you have to request an api key to contact@purpleair.com.
-
- Newbie
- Posts: 4
- Joined: Sun Jul 01, 2018 7:50 pm
- Station model: Froggit HP1003 SE
- Software: Weather Display
Re: new airQualitySensor block ( updated airQualityEcowitt )
Ciao, ringrazio di cuore chi ha scritto l'airQaulitySensor nuovo con l'api key per i sensori... non riuscivo a uscirne buone feste!
Hi, thank you very much to whoever wrote the new airQaulitySensor with the api key for the sensors... I couldn't do it alone happy holidays!
Hi, thank you very much to whoever wrote the new airQaulitySensor with the api key for the sensors... I couldn't do it alone happy holidays!