TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Released: Tesla Roadster OVMS Widgets for Android

Discussion in 'Roadster' started by Chillout, Aug 22, 2014.

  1. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    #1 Chillout, Aug 22, 2014
    Last edited: Aug 28, 2014
    Tesla Roadster Widgets for Android by Chillout
    Copyright by Chillout. Please let me know if you want to use or adapt my work to use it in your own projects.


    Description:
    This is a set of widgets and scripts for Android. They are built in Zooper Widget Pro, and get their data from Tasker, through the OVMS HTTP API.

    Changelog

    v1.2 28-8-2014
    - Added ranges to Battery widget
    - Ranges are linked to units in
    - Added a 2x2 widget for use with Remote Widget on Sony Smartwatch SW2
    v1.1 22-8-2014
    - First public release
    - Added Dials for temperatures and "fuel" in Tesla dashboard style
    - Added seperate widgets for SOC, temperatures, range.
    - Added "stylish" widget

    v1.0b 21-8-2014
    - Initial release

    Known errors
    - Does not yet show degrees F
    - VDS style graphs are an indication, not an exact representation of the on-board graph colors

    Requirements
    - Android Phone
    - Tasker
    - Zooper Widget
    - Some basic knowlegde about files/tasker/zooper widget is nice to have.

    Installation
    ---General---
    1: Extract all of the files on your phone, somewhere on the SD.
    ---Tasker---
    2: Import the Profile XML into tasker: Go to the main screen, long click on the tab for Profile, and import.
    3: Go to the TASK tab, open the OVMS task and change the first 3 variables to suit your car.
    EnterYourCarIdHere: Car ID used in OVMS
    EnterOVMSServerUserHere: Your OVMS Server Username
    EnterOVMSServerPassHere: Your OVMS Server Password
    Note: the password is not sent to anything else than the OVMS sever, through a HTTPS connection. You can check the tasker task for yourself to be extra sure in case you're paranoid.
    Note2: DO NOT CHANGE ANYTHING ELSE OR IT WILL STOP WORKING.
    4: Optional: test run the profile/task to see if everything was configured right.
    ---Zooper Widget---
    5: Go to the ZW files in your file explorer.
    6: Once you click them, and open with Zooper Widget, a dialog for importing the template will show up. Give it a name.

    ---Android launcher---
    7: Hit the desktop, select a 4x2 Zooper widget, and place the new template wherever you like.
    8: Enjoy!
    9: Optional: send me some feature requests or response in this topic.
    10: Optional: buy me a beer



    Screenshots:
    FxccdmM.jpg



    Download:
    https://db.tt/QrKJBVw7

    Enjoy!

    Feel free to buy me a beer:
    btn_donate_SM.gif
     
  2. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    And they also work on the Sony Smartwatch SW2 :)
    ISromTC.jpg
     
  3. Mark77a

    Mark77a Member

    Joined:
    Jul 7, 2012
    Messages:
    292
    Location:
    Poole, Dorset, UK
    Way cool !
    (hey and I like the Ideal and estimated range in battery - any updates ? and will it do miles too ? )
     
  4. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    Hi Mark,
    I'm updating the widgets, new version (v1.2) will come tomorrow.
     
  5. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    new version online!
     
  6. Juanmax

    Juanmax Member

    Joined:
    Sep 30, 2014
    Messages:
    40
    Location:
    Germany
    Cool!! Thnks for this Chillout! Trying that on my Nexus 10, just for fun ;) I move to Apple phone, Androids kept growing!
     
  7. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    hi all,

    I got an LG G Watch R yesterday and started playing around... anyone interested in a clockface for Android Wear, featuring some Roadster data?
    Here's a Roadster-dashboard styled clock, including a car-battery indicator. Tasker feeds the watch with information from OVMS.
    Screenshot_2015-01-14-13-09-46.jpg



    And since I like real-life watches, I made a quick and dirty modification to this Panerai watchface, adding a small dial on the right, showing my battery is currently at 50%
    IMG_20150114_132042_20150114132235548.jpg

    Is there any need/interest for watchfaces like this?
     
  8. ecarfan

    ecarfan Well-Known Member

    Joined:
    Sep 21, 2013
    Messages:
    10,319
    Location:
    San Mateo, CA
    Yes, for the iWatch.
     
  9. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    I hate to disappoint you, but I can't develop for iWatch
     
  10. Juanmax

    Juanmax Member

    Joined:
    Sep 30, 2014
    Messages:
    40
    Location:
    Germany
    ImageUploadedByTapatalk1425227263.421102.jpg hi, I do not get it running. tasker task 4 gives file not found exception. I am not sure I am typing the proper username and password. which do you mean? see attachment, there is nothing like OVMS server username...
     
  11. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    Yes, there is. You need to enter your OVMS profile name, the one you use to log in to openvehicles.com
     
  12. m0rph

    m0rph Member

    Joined:
    Nov 20, 2014
    Messages:
    488
    Location:
    Belgium
    After seeing this, I want to buy a Sony Smartwatch 3. But I have some Q's before running to the store..


    • My phones are, and will be Windows Phone in the future. So the watch can not rely on the OS of my phone. This also means, I have no app available for OVMS, so using TXT for now..
    • Mobile data connection would be via Wi-Fi thetering or Bluetooth. I hope the watch can wake up the internet sharing on the phone.

    So, if someone tells me I can use the widget with this setup, I know what to buy today :)
     
  13. Chillout

    Chillout Member

    Joined:
    Jun 30, 2014
    Messages:
    307
    Location:
    the Netherlands
    The widget will not be functioning on Windows Phone...
    But I can help you with this to be able to get the right data by using the OVMS API calls, which aren't that hard.
     
  14. Juanmax

    Juanmax Member

    Joined:
    Sep 30, 2014
    Messages:
    40
    Location:
    Germany
    @Chillout thank you, working perfectly!
     

Share This Page