An open API service indexing awesome lists of open source software.

https://github.com/mgadda/airquality-server

💨 Serves air quality data read from serial port over GraphQL
https://github.com/mgadda/airquality-server

airquality graphql sensor sensors

Last synced: 3 months ago
JSON representation

💨 Serves air quality data read from serial port over GraphQL

Awesome Lists containing this project

README

        

# 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](https://github.com/mgadda/homebridge-airquality).

```
Usage: airquality-server [options]

Options:

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