Docker: How to run hyundai_kia_connect_monitor with cron #56
Andre1Becker
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Probably I need to fix the reading of .cfg files, to first look into current directory and then look into the python script directory. monitor.cfg is also read in the other scripts and also summary.cfg and translations.csv. Then you do not have to modify the python scripts. I will make a release of this change in the near future. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Andre1Becker I made a release for searching the .cfg files first in the current directory, then in the python script directory: R3.18.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
this is just for documenting on how i did get this nice little script running in a docker container.
MyDockerFolder
-> data
-> app
hyundai_kia_connect_monitor-Rx.xx.x.zip
toMyDockerFolder/app
hyundai_kia_connect_api-3.13.0.zip
toMyDockerFolder/app/hyundai_kia_connect_api
crontab.txt
inMyDockerFolder/
crontab.txt
:entry.sh
inMyDockerFolder/app/
entry.sh
:dockerfile
inMyDockerFolder/
dockerfile
monitor.cfg
fromMyDockerFolder/app
toMyDockerFolder/data
The next step is not needed anymore since hyundai_kia_connect_monitor R3.18.0
13. Modifymonitor.py
to set the path tomonitor.cfg
14. Modify
monitor.cfg
for your car, region, username and passwordFinally your folder-structure should like a bit like this:
docker build -t hyundai/hyundai_monitor .
to generate your docker container.Happy Tracking!
Also, you could mount
data
to a folder outside of docker to access all csv's as you like.Any suggestions are welcome. I'm no expert in any of this, just figuring stuff out as i go. Thanks to all people from many guides and forum posts that i found to get this running ;-)
And a big shout out to the dev('s) from Hyundai-Kia-Connect and @ZuinigeRijder for creating this script in the first place!
Beta Was this translation helpful? Give feedback.
All reactions