https://github.com/abaker/neptune2influx
Import Neptune R900 smart water meter broadcasts into InfluxDB
https://github.com/abaker/neptune2influx
influxdb rtl-sdr smartmeter
Last synced: about 1 year ago
JSON representation
Import Neptune R900 smart water meter broadcasts into InfluxDB
- Host: GitHub
- URL: https://github.com/abaker/neptune2influx
- Owner: abaker
- License: apache-2.0
- Created: 2018-10-11T13:51:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-12T22:10:38.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T16:11:48.297Z (about 2 years ago)
- Topics: influxdb, rtl-sdr, smartmeter
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`neptune2influx` uses a software defined radio ([Amazon.com](https://www.amazon.com/s/?field-keywords=rtl-sdr)) and [rtlamr](https://github.com/bemasher/rtlamr) to insert Neptune R900 water meter readings into InfluxDB
Your SDR must be connected to your PC
### Prerequisites
* macOS with [Homebrew](https://brew.sh):
```
$ brew install python2 rtl-sdr go influxdb
$ brew services start influxdb
```
* Debian/Ubuntu:
```
$ sudo apt install python-pip rtl-sdr golang influxdb
```
### Setup
```
$ git clone https://github.com/abaker/neptune2influx
$ cd neptune2influx
$ pip install -r requirements.txt
$ GOPATH=$(pwd) go get github.com/bemasher/rtlamr
```
### Run
Start an `rtl_tcp` server
```
$ rtl_tcp &
```
Then start recording data
```
$ bin/rtlamr -msgtype=r900 -format=json -filterid= | python neptune2influx.py
```
By default `neptune2influx` will connect to a local InfluxDB install, use the default credentials, and store data in a table named `neptune`
```
usage: neptune2influx.py [-h] [--debug] [--host HOST] [--port PORT]
[--username USERNAME] [--password PASSWORD] [--db DB]
optional arguments:
-h, --help show this help message and exit
--debug enable debug logging
--host HOST influx host
--port PORT influx port
--username USERNAME influx username
--password PASSWORD influx password
--db DB influx database name
```