Skip to content

PMS5003 air quality sensor data grabbing in C, to JSON, on Linux, with averaging over time

License

Notifications You must be signed in to change notification settings

michalrus/pms5003

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pms5003

PMS5003 air quality sensor data grabbing in C, to JSON, on Linux, with optional averaging over time.

Data sheet (kind of…): http://www.aqmd.gov/docs/default-source/aq-spec/resources-page/plantower-pms5003-manual_v2-3.pdf.

No bullshit approach, does well what needs to be done, and nothing more.

  • If you need HTTP, feed its output to curl.

  • If you need warmup, use /bin/sleep.

  • If you need power management, set your GPIO pins in a shell script, for Christ’s sake.

  • If you need to publish to an MQTT broker, pipe the output to mosquitto_pub.

Beware of Python-based solutions which constantly eat 100% CPU (unless you sleep artificially), and around 100× as much RAM, cf.

Screenshot

About

PMS5003 air quality sensor data grabbing in C, to JSON, on Linux, with averaging over time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •