Skip to content

mgadda/airquality-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Quality Server

This node-based reads newline separated JSON data off a serial port, stores it in a sqlite database and then makes that data available over HTTP via GraphQL.

It is designed to work with mgadda/homebridge-airquality.

  Usage: airquality-server [options]

  Options:

    -V, --version              output the version number
    -v, --verbose              Be more verbose
    -p, --port <n>             port (default: 4000)
    --database-path <s>        Path to sqlite database (default: ./aq.db)
    --test-mode                Generate fake database from fake device /dev/ROBOT
    -s, --sampling-period <n>  Number of milliseconds between saving samples to disk (default: 900000)
    -d, --device <s>           Serial device to read from
    --config <s>               Path to json config file
    -h, --help                 output usage information

About

💨 Serves air quality data read from serial port over GraphQL

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published