Skip to content

hiroCat/raspberrySensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberrySensor

a python program to use a existing module to log temperature into a db

content

It has different modules:

additional config

For the db I choose postgresql so the config is as :

  • postgres=# create database meteo; The setup.py script can also be used to create the main table// or tables.

run it

To run you need to specify the table name.(make sure you have the dependencies installed pip install...) If you want to run it as a service you need to copy the service to /lib/systemd/system/and also run :

  • sudo chmod 644 /lib/systemd/system/meteo.service
  • sudo systemctl daemon-reload
  • sudo systemctl enable meteo.service

notes

The last version uses two sensors to do the readings so another table is created. Also there is a pyton notebook with some analysis with pandas of the results (since there was a phase of calibrating the second sensor)

About

a python program to use a existing module to log temperature into a db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published