Skip to content

therealeldaria/autopi-tools

 
 

Repository files navigation

autopi-tools

This repository contains a number of tools and custom code for use with the autopi dongle ( see https://www.autopi.io/ ).

Charge status

This custom code monitors charging of Hyundai Kona Electric ( and compatible ) cars and sends alerts to a telegram account.

Charge status

To use with autopi :

  1. 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/
  2. Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_charge_status.py
    1. select all the text
    2. copy to clipboard
  3. Navigate to https://my.autopi.io/#/custom-code
    1. click on Create
    2. change the name to my_charge_status
    3. delete existing code
    4. paste the code copied from step 2 above
    5. add your telegram bot_token and bot_chatId from step 1 above
    6. Click on Create.
  4. Navigate to https://my.autopi.io/#/jobs
    1. click on Create
    2. change the name to Charge status
    3. tick Enabled
    4. set Cron Schedule to * * * * *
    5. set Function to my_charge_status.poll
    6. set Returner to cloud
  5. Test by charging your car

Forward SMS

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.

  1. 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/
  2. Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_forward_sms.py
    1. select all the text
    2. copy to clipboard
  3. Navigate to https://my.autopi.io/#/custom-code
    1. click on Create
    2. change the name to my_forward_sms
    3. delete existing code
    4. paste the code copied from step 2 above
    5. add your telegram bot_token and bot_chatId from step 1 above
    6. Click on Create.
  4. Navigate to https://my.autopi.io/#/jobs
    1. click on Create
    2. change the name to Check SMS
    3. tick Enabled
    4. set Cron Schedule to 0 * * * *
    5. set Function to my_forward_sms.forward
    6. set Returner to cloud
  5. Test by sending an SMS to autopi

A better route planner

This custom code reports telemetry data from Hyundai Kona Electric ( and compatible ) cars to a better route planner ( https://abetterrouteplanner.com/ ).

abrp

  1. Note your ABRP token ( ie email address )
    1. Navigate to https://abetterrouteplanner.com/
    2. Show Settings
    3. Show More Settings
    4. Live Car Connection Setup
    5. Next until User Email Address is shown - copy that here
  2. Navigate to https://raw.githubusercontent.com/plord12/autopi-tools/master/my_abrp.py
    1. select all the text
    2. copy to clipboard
  3. Navigate to https://my.autopi.io/#/custom-code
    1. click on Create
    2. change the name to my_abrp
    3. delete existing code
    4. paste the code copied from step 3 above
    5. add your abrp_token from step 1 above
    6. Click on Create.
  4. Navigate to https://my.autopi.io/#/jobs
    1. click on Create
    2. change the name to ABRP Telemetry
    3. tick Enabled
    4. set Cron Schedule to 2,12,22,32,42,52 * * * *
    5. set Function to my_abrp.telemetry
    6. set Returner to cloud
  5. Test by driving and try the View Live Data in https://abetterrouteplanner.com/

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.2%
  • Perl 41.8%