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

GaryREM

Member
Jul 16, 2013
617
240
Fairfax, VA
To get around this you will need to manually get the access token and insert it into your Mac's keychain.
A tip has been added by author to run

keyring del tesla-bitbar access-token

to get old token deleted and set up clean login.

A little awkward, but the easiest way to update token.
 

BigD0g

Active Member
Jan 12, 2017
2,019
4,385
Somewhere
I added this to my main method so I can have proxy settings setup at work, and non proxy setups when not on work.

Location Name == System Preferences -> Network -> Location
Proxy URL = proxy url and port
Proxy username = proxy username
Proxy password = proxy password.

Code:
p1 = subprocess.Popen(['networksetup', '-getcurrentlocation'], stdout=subprocess.PIPE).communicate()[0]
    networklocation = p1.decode('utf-8')

    if "Location Name" in networklocation:
    #     #We need to use proxy settings
    #      # create connection to tesla account
        c = Connection(access_token = tesla_access_token, proxy_url = '<PROXY URL>', proxy_user = '<PROXYUSER>', proxy_password = 'PROXYPASSWORD'
    else:
         #No proxy needed
         # create connection to tesla account
        c = Connection(access_token = tesla_access_token)

Hope this helps someone else.
 

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