cloudy cloudy

Author Topic: Purpleair tags  (Read 844 times)

0 Members and 1 Guest are viewing this topic.

Offline giordolo

  • Posts: 115
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
Purpleair tags
« on: March 18, 2018, 10:08:51 AM »
Hi, could you evaluate the decimals removing from purpleair tags? Pm10 etc
I will appreciate
thanks
giordolo

Offline Weather Display

  • Posts: 85,327
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Purpleair tags
« Reply #1 on: March 19, 2018, 01:51:05 AM »
can you give me your details/example/, etc
its very vague

Offline giordolo

  • Posts: 115
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
Re: Purpleair tags
« Reply #2 on: March 19, 2018, 06:36:41 PM »
Yes of course, I'm sorry
for example using the tag %purpleair10_0% I receive 14,2. It could be enough 84, without the comma value

Offline Weather Display

  • Posts: 85,327
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Purpleair tags
« Reply #3 on: March 19, 2018, 08:10:17 PM »
do others want a decimal place or not?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,617
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.162
Re: Purpleair tags
« Reply #4 on: March 19, 2018, 08:22:16 PM »
Purpleair sends decimals? They must be doing some averaging(?) since the sensors they use only output integer values  :? 

Personally I wouldn't worry about decimals due the limited accuracy of the source data. OTOH it's easy to round any tag value when displaying it on a website.

Offline Weather Display

  • Posts: 85,327
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Purpleair tags
« Reply #5 on: March 19, 2018, 09:24:34 PM »
OK
the latest .zip update does not now have decimal
(i have left the aqi with decimal and the average)

Offline davest123

  • Posts: 57
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
Re: Purpleair tags
« Reply #6 on: March 21, 2018, 04:20:44 AM »
I had an issue after updating WD with the latest update zip update 10.37S Build 69 Version on 21 March 2018 - 04:52:20. My Purple Air readings in WD flat lined at its last reading and wouldn't update. I had to restore a previous version of WD to get it to update again.

I use tag %purpleair2_5% and didn't mind the decimal. My PA monitor does output decimal readings to two places. See attached.

Offline R_o_B

  • Posts: 215
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: Purpleair tags
« Reply #7 on: March 21, 2018, 11:04:15 AM »
Purpleair sends decimals? They must be doing some averaging(?) since the sensors they use only output integer values  :? 
Unfortunately, Niko, you are wrong on that 'assumption' - the PurpleAir sensor does produce and send decimal values, as shown in the included screenshot:
R_o_B
---
eMail: weather@tzweather.org

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,617
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.181
Re: Purpleair tags
« Reply #8 on: March 21, 2018, 01:59:45 PM »
Unfortunately, Niko, you are wrong on that 'assumption' - the PurpleAir sensor does produce and send decimal values, as shown in the included screenshot:

I don't think that post was incorrect, but I'm open to correction.

Purpleair sends decimals? They must be doing some averaging(?) since the sensors they use only output integer values  :?

I expressed surprise that the purpleair would output decimal values, I didn't state that it did not do so.

I suggested that if it did output decimal values then it must be averaging since the sensors used in the purpleair do not output decimal values. The purpleair uses the PMS5003 sensor, the datasheet is here. I am using a PMS5003. If there is any provision for decimal values in the data protocol then I have missed it :dontknow:

Offline Weather Display

  • Posts: 85,327
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Purpleair tags
« Reply #9 on: March 21, 2018, 07:46:07 PM »
@davest123
the  change I made to the custom tags should not have made any difference to getting the actual data

so I should put the decimal place back?

Offline davest123

  • Posts: 57
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
Re: Purpleair tags
« Reply #10 on: March 21, 2018, 11:19:50 PM »
I vote for yes, please.

-Dave

Offline R_o_B

  • Posts: 215
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: Purpleair tags
« Reply #11 on: March 24, 2018, 01:40:46 PM »
so I should put the decimal place back?
Yes, please, put back (or leave) the decimals in the files produced by WD.

If someone is not happy with decimals, they can easily filtered out with PHP of JavaScript...
R_o_B
---
eMail: weather@tzweather.org

Offline Weather Display

  • Posts: 85,327
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: Purpleair tags
« Reply #12 on: March 24, 2018, 07:27:36 PM »
they are back

 

cumulus