Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 617 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 617 Bytes

raspberrypi-serial

Reads data from serial ports using python and updates database

Make sure your arduino device is on serial speed 115200 and check the device mine is /dev/ttyACM0 hint: You can unplug the arduino then plug it in and run dmesg to see details on which serial port it's on.

Example json used from an arduino device

{"sender": 2,"strength": -83} {"nodeId": 2,"itemLocation": 1,"trigger": 1}

Example of .env file needed to load your variables

MQTT_HOST=127.0.0.1 MQTT_PORT=8883

SERIAL_PORT="/dev/ttyACM0" BAUD_RATE=115200

io.adafruit

API_KEY=18ea6399ec3b4yourkeyhere GARAGEDOOR_FEEDID=123456