Skip to content

kazumatsudo/monitor_room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MONITOR_ROOM

Measure environmental values and record them on the monitoring server

DEMO

demo

Requirement

  • Python 3
  • Raspberry Pi 3
  • Sensors
    • BME280 (humidity, pressure, temperature)
    • MH-Z19 (co2)
    • TSL2561 (light)

Usage

  • Run from cron
    // run every second
    $ * * * * * for i in `seq 0 1 59`;do (sleep ${i}; python3 monitor_room/main.py) & done;
    

Install

  1. Make mackerel account

  2. Git clone

    $ git clone xxx
    
  3. Set environment variable

    $ export MONITOR_ROOM_MACKEREL_X_API_KEY="YOUR_MACKEREL_X_API_KEY"
    $ export MONITOR_ROOM_MACKEREL_HOST_ID="YOUR_MACKEREL_HOST_ID"
    

Before commit

  1. Exec lint
    $ flake8 main.py ./maintenance/ ./sensor/ ./util/
    $ pylint main.py ./maintenance/ ./sensor/ ./util/
    

Author

kazumatsudo

License

MIT

About

Measure environmental values and record them on the monitoring server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages