Push PurpleAir sensor updates to a telegram channel
Key | Description |
---|---|
SENSOR_ID | PurpleAir sensor ID |
API_KEY_READ | PurpleAir API READ key |
TELEGRAM_BOT_API_KEY | Telegram BOT API Key |
TELEGRAM_CHANNEL_NAME | Channel name (in @channel_name format) |
Execute using an AWS profile/role with SSM read/write permissions, or modify the following line and add your api access key/secret/token:
# replace
ssm_client = boto3.client('ssm')
# with
ssm_client = boto3.client('ssm',
aws_access_key_id=access_key,
aws_secret_access_key=secret_key
(or aws_session_token=token))