Originaly designed to generate a json file with 1wire sensor values which can be read in by edomi. In Edomi JSON can be read by the JSON Extractor LBS19001208, which can be found here.
The 1wire data is grabbed by the one wire file system.
Following owfs packages are used:
- owfs
- python-ow
- ow-shell
apt-get install owfs python-ow ow-shell
and then configure the server in /etc/owfs.conf
to your needs !
devices.json and read1w.py to /var/www
1wire-connector.service to /etc/systemd/system/
http://your-ip:2121/
systemctl enable 1wire-connector
systemctl start 1wire-connector.service
- Get data from DS18B20 (temperature10 and power)
- Get data from 2438 (smart battery monitor) (VDD, VAD, vis, humidity)
- Add as systemd service
- Device names can be defined via device.json
- Infofield in 1wire.json with last refresh and number of devices
- Added pressure and temperature to 2438 (smart battery monitor)
- Added bus statistics to info field
If you change the device.json, don't forgett to restart the service systemctl restart 1wire-connector