Git Product home page Git Product logo

weatherstation-python's Introduction

Project for polling the sensor data.

Data is written to CSVs and into an SQLite DB. 48h data is being exported to JSON which is used in the web frontend.

Prepare Tinkerforge bricks

https://www.tinkerforge.com/de/doc/Embedded/Raspberry_Pi.html

sudo apt-get install libusb-1.0-0 libudev0 pm-utils
wget http://download.tinkerforge.com/tools/brickd/linux/brickd_linux_latest_armhf.deb
sudo dpkg -i brickd_linux_latest_armhf.deb

Updates (later)

wget http://download.tinkerforge.com/tools/brickd/linux/brickd_linux_latest_armhf.deb
sudo dpkg -i brickd_linux_latest_armhf.deb

Install Weatherstation

Install Pyton and dependencies

sudo apt install python3 sqlite python3-setuptools
sudo easy_install3 pip
pip install tinkerforge

Download weatherstation

cd /home/pi
git clone https://github.com/locked-fg/Weatherstation-Python.git Weatherstation

Optional: Restore data at ~/Weatherstation/data/sensors.db

Add entries to crontab

* * * * * ~/Weatherstation/temperature.py
* * * * * ~/Weatherstation/humidity.py
* * * * * ~/Weatherstation/ambientlight.py
* * * * * ~/Weatherstation/barometer.py
* * * * * ~/Weatherstation/startSqlite.sh
* * * * * curl -T ~/Weatherstation/data/series.json ftp://[hostname] --user ftplogin:password
* * * * * curl -T ~/Weatherstation/data/table.json  ftp://[hostname] --user ftplogin:password

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.