awair_token=eyJ0xxxxxxxxxxxx
pw_username=aaaa@example.com
pw_password=alj1l2j4ljfaf
- Ubuntu:
docker run -d --restart=always --env-file=.env kaka314/awair-sync-tool:linux
- Mac M1:
docker run -d --restart=always --env-file=.env kaka314/awair-sync-tool:mac-m1
-
Create file
.env
from.env.sample
and update all fields -
Run following commands
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
pip3 install .
python3 handlers/awair_sync.py
Deploy to AWS using serverless deploy
docker build -f Dockerfile . -t awair-sync-tool
docker run --env-file .env -it --rm awair-sync-tool
To start the feed using docker compose: docker-compose up
, this will load the .env automatically.
This project is inspired by following projects,