davidglvn / switcher_webapi

Switcher Boiler Unofficial Docker-based WebAPI

Home Page:https://hub.docker.com/r/tomerfi/switcher_webapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switcher Water Heater Unofficial REST API
shields-io-docker-version shields-io-docker-pulls license-badge conventional-commits

gh-python-status gh-docker-status
read-the-docs codecov

REST API web server using aioswitcher for integrating with the Switcher Water Heater.
Please check out the documentation.

Docker

docker run -d -p 8000:8000 \
-e CONF_DEVICE_IP_ADDR=192.168.100.157 \
-e CONF_PHONE_ID=1234 \
-e CONF_DEVICE_ID=ab1c2d \
-e CONF_DEVICE_PASSWORD=12345678 \
--name switcher_webapi tomerfi/switcher_webapi:latest

You can also add another optional environment variable:

-e CONF_THROTTLE=5.0

for setting the throttle time between consecutive requests, this is optional and the default value is 5.0.

Docker Compose

Here's an example of running the container using docker-compose setting the environment variables in a designated file.

# docker-compose.yml
version: "3.7"

services:
    switcher_api:
    image: tomerfi/switcher_webapi:latest
    container_name: "switcher_webapi"
    env_file:
        - .env_vars
    ports:
        - 8000:8000
    restart: unless-stopped
# .env_vars
CONF_DEVICE_IP_ADDR=192.168.100.157
CONF_PHONE_ID=1234
CONF_DEVICE_ID=ab1c2d
CONF_DEVICE_PASSWORD=12345678
CONF_THROTTLE=5.0

Contributing

The contributing guidelines are here

Code of Conduct

The code of conduct is here

About

Switcher Boiler Unofficial Docker-based WebAPI

https://hub.docker.com/r/tomerfi/switcher_webapi

License:MIT License


Languages

Language:Python 90.9%Language:Makefile 5.7%Language:Dockerfile 3.3%Language:Shell 0.0%