Author Topic: Personal PM2.5 mobile website  (Read 373 times)

0 Members and 1 Guest are viewing this topic.

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Personal PM2.5 mobile website
« on: February 11, 2020, 08:54:13 PM »
I've just created a small website to monitor PM2.5, realtime, nearby my home and my two Xiaomi Air Purifier 2s.

The outside PM2.5 value is from a Purpleair station nearby my home. All the PM2.5 and AQI values are fed to this website from my local mosquitto broker. I created a bash script to get my Xiaomi airpurifier pm2.5 value from my Home Assistant API (I still can't find a way to get the data directly from the Xiaomi unit) and published them to my mqtt broker. Another bash script to get pm2.5 value direct from Purpleair website. These two bash scripts are running every minute with crontab.

You may have a look at the website: https://bthofen.com/aqi

Here is the link to the demo video I capture from my Android mobile phone.
https://photos.app.goo.gl/EpcwYWwmtikYWRfD8

I use my old iPhone 4s as a mini console.
 [ You are not allowed to view attachments ]

I'm willing to share the code if you are interested, bearing in mind I'm a noob on the coding.
« Last Edit: February 11, 2020, 08:59:03 PM by bthoven »

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: Personal PM2.5 mobile website
« Reply #1 on: February 19, 2020, 09:04:47 PM »
Adding some info from my weather sensors and my allsky camera; and make it fit any 16:9 mobile phone.
 [ You are not allowed to view attachments ]

 

anything