Docker Container with gateway between Polestar API and MQTT
Credits to Niklas Vieth (@hniklasvieth) for the great work on the Polestar SoC iOS Medium Widget (https://github.com/niklasvieth/polestar-ios-medium-widget).
This Software is based on this work and partly made with ChatGPT 4.0.
The initial prompt for ChatGPT was taken from @demichve on the German Polestar Forum (https://polestar.fans/t/soc-medium-homescreen-widget-ios/17121/41?u=consulitas). Just because this was currently running on my phone. :-)
If ChatGPT has been involved in development steps here, this will be shown in the comments to corresponding commits in this repository.
Heads up: This is work in progress, but now usable.
- Pull requests welcome!
- Issues welcome!
Get it up and running:
- install Docker (https://docs.docker.com/engine/install/)
- download
docker-compose_example.yml
- rename it to
docker-compose.yml
(remove_example
) - edit values under
environment:
in thedocker-compose.yml
to match your needs - no volumes or network needed
- start container with
docker compose up
ordocker compose up -d
for background processing
Discussions (in german ) here: https://polestar.fans/t/polestar-api-zu-mqtt-im-container/18589
- set
OPENWB_HOST: "ip/dns name of openWB"
- set
OPENWB_PUBLISH: True
- optionally set
OPENWB_PORT
andOPENWB_LP_NUM
- if not set it defaults to port 1883 and 1 (which results in topicopenWB/set/lp/1/%Soc
)