Skip to content

Python script for read and publish via MQTT the keytag of iButton DS1990A, DS1985-F5+, DS1971+F5 with OneWire bus of the Raspberry Pi

License

Notifications You must be signed in to change notification settings

JmmyGun/Raspberry-Pi-iButton-key-tag-to-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Raspberry-Pi-iButton-key-tag-to-mqtt

Python script for read and publish via MQTT the keytag of iButton DS1990A, DS1985-F5+, DS1971+F5 with OneWire BUS of the Raspberry Pi

IMG_20210819_020156_1

IMG_20210819_020208

When using long wires (200mt max), and 3.3V power, a pullup resistor in the 1K to 2.7K range may be required. Check the diagram

circuit

First of all, update Raspbian. At boot, the OneWire BUS is disabled by default. To enable it, use “Raspberry Pi Configuration”. This is found under : Menu > Preferences > Raspberry Pi Configuration, and reboot.

1

2

3

4

This script require eclipse/mosquitto, and eclipse/paho.mqtt.python.

To install the required components, follow the instructions in the links below:

This script can run only with sudo

sudo python ibuttontomqtt.py

About

Python script for read and publish via MQTT the keytag of iButton DS1990A, DS1985-F5+, DS1971+F5 with OneWire bus of the Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages