Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.02 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.02 KB

air-quality-app

It's a simple app.

It works on MacOS v10.13, v11.2.

MacOS app for monitor Taiwan air quality.

Example

Requirement

Run app

$ python air_app.py

Recommended use PM2 for work on background.

$ pm2 start --name air --no-autorestart air_app.py

# Stop app
$ pm2 stop air

If you use virtual environment

You have to active Python framework (it's virtual environment issue).

# pyenv
$ CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" \
    PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2 --enable-framework" \
    pyenv install -v 3.7.3

$ python -V
3.7.3
$ pip install -r requirements.txt
$ python air_app.py

License

MIT license.