Skip to content

🚭 Allow us to be notified when there is smoke in the office.

License

Notifications You must be signed in to change notification settings

liip/smoke-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚭 Smoke-Detector

GitHub license

Allow us to be notified when there is smoke in the office.
Blog post : https://www.liip.ch/blog/smoke-detector-for-device-lab
Netatmo API : https://dev.netatmo.com/

Clone repository

$ git clone https://github.com/liip/smoke-detector.git

Development

Virtualenv

# Install virtualenv
$ pip install virtualenv

# Use python3 in virtualenv
$ virtualenv -p python3 env

# Active virtual env
$ source env/bin/activate

Install dependencies

$ pip install -r requirements.txt

Initialize environment variables

# Define URL of app
$ export APP_URL='https://yourAppURL'

# Define Slack WebHook URL
$ export SLACK_URL='https://yourWebHookURL'

# Define client ID key
$ export CLIENT_ID='yourClientIDKey'

# Define client secret key
$ export CLIENT_SECRET='yourClientSecretKey'

Start server

# Active auto-reloading
$ export FLASK_ENV=development

# Define app
$ export FLASK_APP=app.py

# Start server
$ flask run

About

🚭 Allow us to be notified when there is smoke in the office.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published