Skip to content
🚭 Allow us to be notified when there is smoke in the office.
Python HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
.gitignore
LICENSE
Procfile
README.md
app.py
requirements.txt

README.md

🚭 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
You can’t perform that action at this time.