Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python MijnKia E-Niro model 2019 get statistics from MijnKia App and send them to InfluxDB and/or ABRP (including weather)

NotificationsYou must be signed in to change notification settings

TheBazeman/MijnKia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Python MijnKia E-Niro model 2019 get statistics from MijnKia App
Send stats to InfluxDB (for graphing with Grafana) and/or ABRP (including weather info) and/or a MQTT broker

Install the script and ini file in path "/MijnKia/" or change the "filepath" parameter in the script and the path in below example service file. Otherwise it cannot find the ini file with your settings for MijnKia/InfluxDB/ABRP/Openweathermap and the service wont start.

Programmed and tested with Python2, running it on a VM with Ubuntu (also tested on Rasperry PI 3).
To use the MQTT option, you will need to install Paho MQTT by using the following command: pip install paho-mqtt(
https://pypi.org/project/paho-mqtt/)

The settings to be specified in the inifile:
[MijnKia]
loginEmail=[email address to login to MijnKia] [required]
LoginPassword=[password for MijnKia] [required]

[Influx]
InfluxDBServer=[FQDN or ip address] [optional]
InfluxDB=[DB name to put the data in] [optional]

[ABetterRoutePlanner]
abrp_token=[Login to ABRP website, setup live data, choose Torque Pro and find the field with the email ID, looks like: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [optional]
car_model=kia:niro:19:64:other
ProvideLocationToABRP=NO [To provide the location of the car to ABRP specify YES. Better to override it in the app and use your phone's location which updates far more frequently] [optional]
OpenWeatherMapAPIKey=[Register an account on OpenWeatherMap and get API Key] [optional]

[MQTT]
host=[broker hostname or IP]
port=[prot used to connect to broker. the default is 1883]
username=[username to connect to broker] [optional]
password=[password to connect to broker] [optional]
mainTopic=[Name for the main topic to hold returned data] [optional]

I have created a service for it with the following:
####################### MijnKia.py starten ###########################
sudo tee -a /lib/systemd/system/MijnKia.service <<EOF
[Unit]
Description = MijnKia service
After = network-online.target
Wants = network-online.target

[Service]
User = root
Group = root
Type = simple
ExecStart = /usr/bin/python /MijnKia/MijnKia.py
Restart = on-failure
RestartSec = 30

[Install]
WantedBy = multi-user.target
EOF

systemctl enable MijnKia.service
systemctl daemon-reload
service MijnKia status

Have fun with it :-) -Bas

PS: this script is written for the Netherlands part of Kiahttps://www.kia.com/nl/mijnkia/dashboard/. Don't know if it works for other countries

About

Python MijnKia E-Niro model 2019 get statistics from MijnKia App and send them to InfluxDB and/or ABRP (including weather)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp