Giter Club home page Giter Club logo

rtl_433_2sqlite's Introduction

RTL433 to SQLITE Database Script

A python script that runs RTL433 and collects the data into an SQLITE database. Specifically, this script takes data from a cheap wireless thermometer, ready for use in a homemade heating system.

Install

Note, these are not exhaustive. They are merely a guide to installing on my systems. I may flesh these out in future

  • Raspberry Pi 3
  • Raspbian GNU/Linux 8 (jessie)
  • RTL_433 - commit 7d558b770a11c5af5d9c231755a6bcf1fb2059e9
  • fstab - must mount USB drive during boot using exlicity fstab entry. The auto-mount routine of Raspbian is run after cron, so the script will not be able to write to the drive.
  • fstab example UUID=f3e278c2-1043-4d4c-9440-e761d0a3aa77 /media/piDrive ext4 defaults 0 0
  • Crontab line @reboot root /opt/start_logger.py
  • rtl_433 Install location /opt/
  • rtl_433_2db.py Install location /opt/
  • start_logger.py install location /opt/
  • SQlite location /media/piDrive/db/temperature_sensor/temperaturedb.sqlite
  • SQlite database owner, pi sudo chown pi:pi

rtl_433_2sqlite's People

Contributors

jcarduino avatar

Watchers

Ciarán avatar James Cloos avatar

rtl_433_2sqlite's Issues

Start up without connected devices

Case:
Starting the script with no RTL device connected does not error out. The script immediately starts polling for data, but the first few lines of stderr state there is a problem (b'No supported devices found.\n').

PID Awareness

Case:
rtl_433_2sqlite apparently freezes crashes, but you can't see/know if the process is still running.

Requirement:
Process ID (PID) awareness for rtl_433_2sqlite.

Partially implemented, a file is created in the /tmp directory, which is deleted on successful closure of the script.

Currently when crashing out the script, the file remains. Obviously the process is dead, so the script should check the PID in the file and see if it is currently running. If not, replace the PID in the file and continue, otherwise fault.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.