https://github.com/brannondorsey/rtl-433-influxdb-importer
Import data from an Acurite 5-in-1 weather station into influxdb
https://github.com/brannondorsey/rtl-433-influxdb-importer
acurite-5n1 influxdb weather-station
Last synced: 8 months ago
JSON representation
Import data from an Acurite 5-in-1 weather station into influxdb
- Host: GitHub
- URL: https://github.com/brannondorsey/rtl-433-influxdb-importer
- Owner: brannondorsey
- Created: 2020-01-05T04:18:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T21:22:14.000Z (over 5 years ago)
- Last Synced: 2025-01-12T05:44:14.512Z (9 months ago)
- Topics: acurite-5n1, influxdb, weather-station
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RTL_433 InfluxDB Importer
Import data from an Acurite 5-in-1 weather station into InfluxDB.
```bash
# Create the .env and populate it with values
cp .env.example .env
nano .env
``````bash
# Launch both the influxdb instance and the rtl-433-importer services
docker-compose up -d
```## Post Init
Once the data has been imported, edit `docker-compose.yaml` and comment out the `--create-and-overwrite-db` and `--backfill` CLI arguments so that the data isn't overwritten each time the `rtl-433-importer` container restarts.
```bash
## Comment out these bottom two lines once the database has been created and filled
## with data from INPUT_FILE. Otherwise the database will be recreated each time
## the container restarts!
#- --create-and-overwrite-db
#- --backfill
```From now on, each time the container comes up it will start tailing `$INPUT_FILE` without re-creating the database and backfilling the entire contents of the file.
## Multi-host
Alternatively, you can run influxdb and the rtl-433-importer agent on different machines. Just make sure the `INFLUXDB_HOST` env var in `.env` points to the correct influxdb host. In this case, uncomment the `network_mode: host` line in the `rtl-433-importer` service in `docker-compose.yaml`.
```bash
[host1] $ docker-compose up -d influxdb
[host2] $ docker-compose up -d rtl-433-importer
```The `rtl-433-importer` service monitors a JSON file output from `rtl_433` and imports it into an InfluxDB database named `rtl_433_weather_station`.