Skip to content

Glenn-Terjesen/waveplus-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Airthings Wave Plus Sensor Reader

  • Forked from https://github.com/Airthings/waveplus-reader*

  • updated to use python3 and write to a json file so it can be used to display data to homebridge via plugin.

  • Prereqs python 3.7+ pip3 (apt-get install python3-pip) bluepy python module (pip3 install bluepy)

  • Make sure the bluepy-helper app is executable

cd /usr/local/lib/python3.7/dist-packages/bluepy
chmod +x bluepy-helper
  • Running Run it like this (as root or sudo)
python3 /path/to/read_waveplus.py AirthingsSerialNumber
  • output Writes to /tmp/airthingswave.status.json

Should look something like this:

{
    "CO2_lvl": "495.0",
    "VOC_lvl": "394.0",
    "humidity": "55.0",
    "pressure": "989.7",
    "radon_lt_avg": "6",
    "radon_st_avg": "10",
    "temperature": "22.06"
}

Crontab

Run every 15 minutes, replace Serialnumber with your Airthings serialnumber.

crontab -e
*/15 * * * * python3 /home/pi/waveplus-reader/read_waveplus.py Serialnumber

SD Card optimization

To keep the SdCard happy for a long time add the following line to /etc/fstab

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=256M 0 0
  • restart the raspberry pi

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.9%
  • JavaScript 46.1%