Skip to content
Reads data from serial ports using python and updates database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
MyEnv.py
MyMqtt.py
README.md
startup.py
watchserial.py

README.md

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

You can’t perform that action at this time.