Announcement

Collapse
No announcement yet.

PurpleAir script - read AQI into HS device

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PurpleAir script - read AQI into HS device

    Attached is a script I wrote to pull PurpleAir sensor data into a HS device. From https://www.purpleair.com/map
    [ATTACH]n1424062[/ATTACH]
    I read multiple stations and then put the average into HS.

    Click image for larger version

Name:	Screen Shot 2020-10-04 at 1.48.53 PM.jpg
Views:	67
Size:	12.7 KB
ID:	1424060

    You will need a single HomeSeer virtual device. If you configure it like the picture below it should give the best display.
    I have attached the icons.
    [ATTACH]n1424063[/ATTACH]
    Click image for larger version

Name:	Screen Shot 2020-10-04 at 1.51.51 PM.jpg
Views:	39
Size:	92.8 KB
ID:	1424061

    I pulled the icons from dzee's GitHub post and from his forums post here:
    https://forums.homeseer.com/forum/ho...index-solution
    I received a lot of information from that post.

    The script file is documented and will need minor modifications for it to work on your system, like adding your deivceID number, and PurpleAir station numbers.
    Remove the .txt extension and place in your scripts directory, use an event to call the script when you want.

    I hope you like it.

    thanks,

    Scott
Working...
X