Coder Social home page Coder Social logo

karlnl / mijnkia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thebazeman/mijnkia

0.0 0.0 0.0 37 KB

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

Python 100.00%

mijnkia's Introduction

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)

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.

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]

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 Kia https://www.kia.com/nl/mijnkia/dashboard/. Don't know if it works for other countries

mijnkia's People

Contributors

thebazeman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.