Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register
  • We just completed a significant update, but we still have some fixes and adjustments to make, so please bear with us for the time being. Cheers!

Tesla BitBar - Monitor Charging and Control HVAC from your OSX menubar

therippa

Member
Sep 4, 2017
17
29
San Francisco
Hey gang,

Since I'd like to be able to turn my HVAC on from my computer when leaving work and not from my phone because I'm that lazy, I threw together a script that lets you do that from the OSX menubar:

XbwiemY.png


You can get it here - GitHub - therippa/tesla-bitbar: Get charging info and control HVAC from your menubar

It's easy enough to add other commands/data to it, but I figured you wouldn't need to honk the horn from your desk.
 

Derek Kessler

Active Member
Apr 15, 2016
1,193
1,800
Cincinnati
I'd suggest that the controls not be hidden under a submenu if there's only one car on the account.

Model X
Battery Level
Charging State
——————
Inside Temp
Outside Temp
Start HVAC
——————
Last Updated
Preferences >
 

verdee

Member
Jan 5, 2015
122
56
Denver, CO
Im really struggling with the sudo pip install keyring. What is keyring? Is it something else to download. I keep getting error about pip command not being found
 

Acho

Member
Mar 28, 2017
381
389
Las Vegas, NV
I made it work but next to tesla icon I have two yellow triangles with exclamation mark in it. When I click on them it says Couldn t posix_spawn: error 8

How can I get rid of this?

Thanks
 

Musterion

18h 03m 37s −24° 23′ 12″
Jan 10, 2013
579
168
M8
@therippa this is awesome. Perfect for my spouse who doesn’t have a smartphone but on the computer all the time and wants to set climate control before leaving work.

I like the simplicity and wouldn’t want to bloat it, but would suggest two more options for you to entertain:
-a line for Lock state (for times when autolock fails due to something unlatched, child blanket in door, etc.)—for info only and doesn’t need to control lock state. This actually could just be a lock icon which I see you’ve added for battery.
-a line to click for Location (can spawn a Maps window centered on car). Not only to remember where you parked your car, but then we can easily find each other with one click.

Thank you again!
 
  • Like
Reactions: therippa

therippa

Member
Sep 4, 2017
17
29
San Francisco
@therippa this is awesome. Perfect for my spouse who doesn’t have a smartphone but on the computer all the time and wants to set climate control before leaving work.

I like the simplicity and wouldn’t want to bloat it, but would suggest two more options for you to entertain:
-a line for Lock state (for times when autolock fails due to something unlatched, child blanket in door, etc.)—for info only and doesn’t need to control lock state. This actually could just be a lock icon which I see you’ve added for battery.
-a line to click for Location (can spawn a Maps window centered on car). Not only to remember where you parked your car, but then we can easily find each other with one click.

Thank you again!

Done!
 
  • Helpful
  • Like
Reactions: TaoJones and BigD0g

Exiom

Member
Nov 29, 2017
206
105
Hong Kong
Hi, I too am having problems with Couldn t posix_spawn: error 8.

Error given when "Run in Terminal"
Jacksons-rMBP:~ jackson$ /Users/jackson/BitBar\ Plugins/tesla.30m.py
/Users/jackson/BitBar Plugins/tesla.30m.py: line 7: syntax error near unexpected token `newline'
/Users/jackson/BitBar Plugins/tesla.30m.py: line 7: `<!DOCTYPE html>'

macOS Sierra 10.12.6 (16G1036)
 

Exiom

Member
Nov 29, 2017
206
105
Hong Kong
I have figured out the issue on my own, since no help came to the other guy who asked as well... this is what went wrong...

If you downloaded the tesla.30m.py from the link on the instructions or on the list of files... your computer will download it as HTML and messes with it resulting in a large file that looks the same to us... but I am guessing it added something invisible to the file which er

So if you happen to run into this problem, download using the "Clone or Download" button and "Download as ZIP". This will solve the problem.
 
  • Like
Reactions: Acho

Exiom

Member
Nov 29, 2017
206
105
Hong Kong
I am still unable to use this app... can the author please render some help?

tesla.com username (will not be saved):
tesla.com password (will not be saved):
Checking...--Error contacting Tesla's servers
Traceback (most recent call last):
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 390, in <module>
main()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 248, in main
prompt_login()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 227, in prompt_login
access_token = c.get_token()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 106, in get_token
if 'access_token' in auth and auth['access_token']:
TypeError: argument of type 'NoneType' is not iterable
 

Exiom

Member
Nov 29, 2017
206
105
Hong Kong
I am really not sure why I am unable to fetch a token the normal way... but I got the app to work after manually adding a token into the keychain.
 

rohan3au

Member
Oct 27, 2017
367
639
Newcastle, Australia
I am still unable to use this app... can the author please render some help?

tesla.com username (will not be saved):
tesla.com password (will not be saved):
Checking...--Error contacting Tesla's servers
Traceback (most recent call last):
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 390, in <module>
main()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 248, in main
prompt_login()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 227, in prompt_login
access_token = c.get_token()
File "/Users/jackson/BitBarPlugins/tesla.30m.py", line 106, in get_token
if 'access_token' in auth and auth['access_token']:
TypeError: argument of type 'NoneType' is not iterable

Having this same issue, how do I get around this?
 

ahkahn

Active Member
Jun 22, 2017
1,081
1,468
Chicagoland
Not for the faint of heart on the installation, but boy, now that I've got it working, this is great. I ran into every problem listed in this thread... but made it through. Thank you for the coding!!!
 

About Us

Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.

Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


SUPPORT TMC
Top