little application that queries echonetlite-compat air conditioners and sends the data to influxdb. https://compounddata.com/projects/aircon-influx/
  • Python 91.9%
  • Dockerfile 8.1%
Find a file
2024-05-16 07:42:57 +10:00
.github/workflows improve github build action 2024-05-16 07:40:34 +10:00
.gitignore gitignore 2023-04-09 09:45:26 +10:00
app.py minor changes and added several more points 2024-05-16 06:46:00 +10:00
Containerfile github action 2023-04-08 17:59:03 +10:00
poetry.lock initial commit. 2023-04-08 17:28:56 +10:00
pyproject.toml initial commit. 2023-04-08 17:28:56 +10:00
README.md minor changes and added several more points 2024-05-16 06:46:00 +10:00

aircon-influx

A little application that queries echonetlite-compat air conditioners and sends the data to influxdb.

Install

$ poetry install

or container:

$ podman build .

Usage

$ INFLUX_URL=http://influx_url.example.com:8086 \
    INFLUX_BUCKET=bucket \
    INFLUX_TOKEN=secret \
    INFLUX_ORG=influxdata \
    AIRCON_HOSTS="aircon1.local aircon2.local" \
    poetry run python ./app.py
Room temperature for host aircon1.local: 21
Operational temperature for host aircon1.local: 22
Operational status for host aircon1.local: on
Cumulative power for host aircon1.local: 4700
Room temperature for host aircon2.local: 20
Operational temperature for host aircon2.local: 22
Operational status for host aircon2.local: on
Cumulative power for host aircon2.local: 4900

or with container:

$ cat <<EOF > .env
INFLUX_URL=http://influx_url.example.com:8086
INFLUX_BUCKET=bucket
INFLUX_TOKEN=secret
INFLUX_ORG=influxdata
AIRCON_HOSTS=aircon1.local aircon2.local
EOF
$ podman run --rm -it --net=host --env-file .env ghcr.io/rene00/aircon-influx/aircon-influx:latest