Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tesla Driver Driver
#1
Finally got around to writing  a quick test driver to interface with Tesla. I used the TeslaFi with aToken interface instead of the native Tesla api as there is lots of issues with polling your car and it not going to sleep. TeslaFi api seems to be very advanced and does a great job at letting the car go to sleep,  so I used it... Looks like TeslaFi polls the car every minute or two. CQC Driver updates every 30 seconds.
Test Driver attached. All data fields are read only. Will let it run a few weeks to kick the tires so to speak.
Dean, I think I have asked this before. What is the best way to show the Green Battery level. Field value is from 0 to 100%.

[Image: 7I8UFvO.jpg]


Attached Files
.cqcdrvpack   TeslaFi_1.0.CQCDrvPack (Size: 13.03 KB / Downloads: 1)
.cqcdrvpack   TeslaFi_1.1.CQCDrvPack (Size: 13.39 KB / Downloads: 0)
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#2
Use the progress bar widget for that sort of thing.
Dean Roddey
Explorans limites defectum
Reply
#3
(02-22-2020, 05:42 AM)Dean Roddey Wrote: Use the progress bar widget for that sort of thing.
Not sure that will work for me.. I need a 97.3 degree mask cut off angle (sideways left to right). Probably would not be too hard to add as an enhancement for the progress bar widget a + or - degree edge angle but not sure anyone else would need that capability.

Unless you can think the progress bar can do  and angled edge some way most likely will just go with a Field Mapped Image and make 10 semi-transparent battery gauge indicators for 10%,20%,.....100%.

Thanks
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#4
The progress bar can do just about anything visually, since you provide the image mask for the fill. You'd set it for left to right, but create a triangular mask most likely, so that it gets higher as it moves right.
Dean Roddey
Explorans limites defectum
Reply
#5
(02-23-2020, 07:39 AM)Dean Roddey Wrote: The progress bar can do just about anything visually, since you provide the image mask for the fill. You'd set it for left to right, but create a triangular mask most likely, so that it gets higher as it moves right.
Sorry, Not sure I understand.  Seems the line between the image mask and the Bar Bgn is always a straight line.  The mask or the background does not move to allow a slanted Fill line.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
The mask can be any shape you want it to be. It can have holes in it, or be a cutout within a large image or whatever. It's just a transparency mask. Wherever it allows the fill color to show, it'll show there. If it's a triangle on its side, then as the fill goes over, it'll get larger vertically as until it's filling it vertically at the end.
Dean Roddey
Explorans limites defectum
Reply
#7
Dean,
I may need to bail out of using the progress bar. I gave it another try today  but cannot get it to work. (my test masks and fill attached). Range of field is 0-100).
Can't figure it out. something about the Fill image the Widget does not like. odd.
Also I think the Bar Bgn color is a must right?  Must the Bar Bgn be a color? Maybe a show stopper. Can it be transparent(to allow for a uncovering of the image that is behind?).


Thanks
kevin


Attached Files
.zip   Progress test mask and background.zip (Size: 22.19 KB / Downloads: 0)
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#8
Ok after pulling my non-existent hair out past few hours looks like the issue is that it works on the Windows IV but not on the WebRiva. Is that what you would expect?
on WebRiva I use nocache=1 to test so should be a cache issue.

Thanks
kevin

Here is the side by side windows IV and WebRiva. test widget is set to 60 (above car image)
[Image: evyursd.jpg]
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#9
Ok this may drive me to drink... More...
I did a stop app shell/stop app service and looks like it is now working on WebRiva. Must be some other kind of cache that was stuck.
Will do more testing later but no need to look into at this point until I can reproduce the issue again.
Thanks
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  RainMachine Sprinkler Irrigation Controller Driver kblagron 41 1,080 03-25-2020, 07:41 AM
Last Post: kfly
  LIFX Driver bobskie708 15 5,529 01-05-2020, 11:00 AM
Last Post: simplextech
  Universal Devices ISY Insteon Driver wuench 369 172,384 12-28-2019, 05:15 PM
Last Post: simplextech
  JVC D-ILA Driver jokermac 32 2,820 12-18-2019, 12:30 PM
Last Post: jokermac
  RunTimer2 driver rbroders 18 7,196 10-17-2019, 04:38 PM
Last Post: rbroders
  Writing Driver - Varying commands based on checksum gReatAutomation 3 657 07-22-2019, 01:08 PM
Last Post: Dean Roddey
  Samsung HLxxA750 DLP Beta Driver jrunde 37 20,846 07-19-2019, 01:24 PM
Last Post: gReatAutomation
  Amazon Echo Hue Simulator Driver wuench 123 55,961 07-08-2019, 09:53 AM
Last Post: Dean Roddey
  New Driver - How hard would this be? kblagron 4 1,281 05-20-2019, 11:28 AM
Last Post: zaccari
  Cytech Comfort Driver znelbok 6 1,196 04-10-2019, 05:39 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)