This repository contains a number of tools and custom code for use with the autopi dongle ( see https://www.autopi.io/ ).
This custom code monitors charging of Hyundai Kona Electric ( and compatible ) cars and sends alerts to a telegram account.
To use with autopi :
- If you don't already have a telegram token and chat id, follow instructions at https://www.mariansauter.de/2018/01/send-telegram-notifications-to-your-mobile-from-python-opensesame/
- Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_charge_status.py
- select all the text
- copy to clipboard
- Navigate to https://my.autopi.io/#/custom-code
- click on Create
- change the name to my_charge_status
- delete existing code
- paste the code copied from step 2 above
- add your telegram bot_token and bot_chatId from step 1 above
- Click on Create.
- Navigate to https://my.autopi.io/#/jobs
- click on Create
- change the name to Charge status
- tick Enabled
- set Cron Schedule to * * * * *
- set Function to my_charge_status.poll
- set Returner to cloud
- Test by charging your car
This custom code forwards SMS messages from the autopi dongle to a telegram account. SMS's are deleted. This is helpful when the operator sends you top-up messages and keeps the list of SMS's low.
- If you don't already have a telegram token and chat id, follow instructions at https://www.mariansauter.de/2018/01/send-telegram-notifications-to-your-mobile-from-python-opensesame/
- Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_forward_sms.py
- select all the text
- copy to clipboard
- Navigate to https://my.autopi.io/#/custom-code
- click on Create
- change the name to my_forward_sms
- delete existing code
- paste the code copied from step 2 above
- add your telegram bot_token and bot_chatId from step 1 above
- Click on Create.
- Navigate to https://my.autopi.io/#/jobs
- click on Create
- change the name to Check SMS
- tick Enabled
- set Cron Schedule to 0 * * * *
- set Function to my_forward_sms.forward
- set Returner to cloud
- Test by sending an SMS to autopi
This custom code reports telemetry data from Hyundai Kona Electric ( and compatible ) cars to a better route planner ( https://abetterrouteplanner.com/ ).
- Note your ABRP token ( ie email address )
- Navigate to https://abetterrouteplanner.com/
- Show Settings
- Show More Settings
- Live Car Connection Setup
- Next until User Email Address is shown - copy that here
- Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_abrp.py
- select all the text
- copy to clipboard
- Navigate to https://my.autopi.io/#/custom-code
- click on Create
- change the name to my_abrp
- delete existing code
- paste the code copied from step 3 above
- add your abrp_token from step 1 above
- Click on Create.
- Navigate to https://my.autopi.io/#/jobs
- click on Create
- change the name to ABRP Telemetry
- tick Enabled
- set Cron Schedule to 2,12,22,32,42,52 * * * *
- set Function to my_abrp.telemetry
- set Returner to cloud
- Test by driving and try the View Live Data in https://abetterrouteplanner.com/