Show Qingping Air Monitor Lite (CGDN1) data in your GNOME top bar or inside the terminal.
It has various settings, here how it could look like:
-
Default settings: (
'co2','humidity','temperature','aqi_worst')
aqi_worstdisplay worst result between PM2.5 and PM10 AQIs -
When all
display_sensorsenabled: ('co2','humidity','temperature','aqi_worst','aqi_pm25','aqi_pm10')
-
You can enable or disable "emoji status" and "text status" representations

-
You can set the verbosity level to show only when something goes wrong:
If for a long period (default: 30 min) there is no new data from sensors and verbosity_level != 0next msg will pop up:
the rest of the time, as long as everything is normal, nothing will be displayed:

-
Connect your Qingping Air Monitor Lite to the Qingping+ App.
-
Register in Qingping+ App.
-
Login to developer.qingping.co/login
-
Clone this repo and go inside it.
-
Install the latest
nodejsLTS version (tested on20.12.1) and runnpm install -
Create
settings.jsonfrom example filecp user-settings-example.js user-settings.js
-
Populate credentials in
user-settings.jswith corresponding values from developer.qingping.co/personal/permissionApply -
Run
node . -
If you'd like to run it as part of the GNOME top bar:
-
Set
/full/path/to/node /full/path/to/cloned/repo/eg:/usr/bin/node /home/${USER}/.config/qingping/ -
Set a
300+ seconds (5+ minutes) update interval - Qingping by default updates data not more frequently than once in 15min. -
Save settings.
Note that you rerun script each time when you save settings.
The repository is managed by MaxymVlasov.
Shout-outs:
- To the amazing Homey App community, especially tjaadvd and Wout_van_den_Dool, which done most of the work figuring out how to get data from obscure Qingping docs in this thread
It would be great to make it a full-fledged GNOME extension, but after spending a few hours understanding how it could be achieved I choose this "good enough" solution to me. If you'd like to convert to the GNOME extension - I am open to contributions


