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
- Host: GitHub
- URL: https://github.com/mgadda/airquality-server
- Owner: mgadda
- License: mit
- Created: 2018-03-31T22:13:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T23:57:41.000Z (over 4 years ago)
- Last Synced: 2025-01-11T09:49:33.711Z (4 months ago)
- Topics: airquality, graphql, sensor, sensors
- Language: TypeScript
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```