Skip to content

Generates a json-file via the owfs with 1-wire sensor values

License

Notifications You must be signed in to change notification settings

bpw23/1wire-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1wire-connector

Generates a json-file via the owfs with 1-wire sensor values.

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

Install

OWFS:

apt-get install owfs python-ow ow-shell
and then configure the server in /etc/owfs.conf to your needs !

Copy files:

devices.json and read1w.py to /var/www

1wire-connector.service to /etc/systemd/system/

Check if owhttp works and shows your all

http://your-ip:2121/

Start service

systemctl enable 1wire-connector
systemctl start 1wire-connector.service

What works:

  • 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

Notes:

If you change the device.json, don't forgett to restart the service systemctl restart 1wire-connector

About

Generates a json-file via the owfs with 1-wire sensor values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages