Skip to content

Reads data from serial ports using python and updates database

License

Notifications You must be signed in to change notification settings

jasonbronson/raspberrypi-serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reads data from serial ports using python and updates database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages