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!

TeslaMate [megathread]

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Monkey Tennis LOL!

Yes, it prompts for password but doesn't accept. Trying a random ssh stills prompts for a password also.

If you try and connect to [email protected] without the .local (obviously replacing that nonsense with your pi's IP), see how you get on with that?

I'm still using the cloud for mine (Digital Ocean), so will struggle a bit to test
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
@DaveW

Are you working on a bulk import for Superchargers in the USA?

@MMcKay

Here you go, USA Superchargers to import :)

dropbox.com/sh/1huca8nqvtlj6rh/AACZFQ4FafI3tNC0-CVU1BAMa?dl=0(opens in a new tab)

PLEASE sanity check that these look to be genuine Tesla supercharger locations before importing, they should be, but hard for me to know (data all comes from openchargemap.io so should be good)

You might have to break these down into batches, as there are a lot to import!
 

MMcKay

Member
Sep 22, 2019
21
15
South Florida

MMcKay

Member
Sep 22, 2019
21
15
South Florida
@DaveW

The USA supercharger has false in all of the KW fields so the script will error out.

INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_kwh, session_fee) VALUES ('Great Barrington, Ma Supercharger', 42.180949, -73.364744, 35, '2020-09-27 05:28:00 ', '2020-09-27 05:28:00 ', FALSE, NULL);
 
  • Like
Reactions: Roy W.

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
@DaveW

The USA supercharger has false in all of the KW fields so the script will error out.

INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_kwh, session_fee) VALUES ('Great Barrington, Ma Supercharger', 42.180949, -73.364744, 35, '2020-09-27 05:28:00 ', '2020-09-27 05:28:00 ', FALSE, NULL);

Fixed this and re-uploaded the file, but with a workaround for now of a default value of 0.24, turns out the USA supercharger costs are a bit more variable than over here, I'll work on that now by trying to read in characters 2,3,4 and 5 from the field with costs in as there is also text in there.

@DaveW

Looks great to me, also I was looking at the open charge map and wondering how you get the data and then format it into excel I assume and then use formulas to create the script.

Are you using this call?

https://api.openchargemap.io/v3/poi/?output=json&countrycode=US&maxresults=9999999&compact=False&verbose=false&key=XXXXXXXX&connectiontypeid=27

Was wondering your process so I can then pull destination chargers and also pull in the future without having to ask.

Thanks Again,
Mike

To do it, I'm using an ImportJSON script for Google Sheets, I pull down the specific URL, do some data fixing on some of the tables to make them compatible then concatenate the string at the end to get the output.

Sometimes differs per country / locale though, so with the USA one, you have different prices per location / car type (from reading the comments) and also there were a lot more fields to import.

For USA Superchargers, I used this URL (but replacing my unique ID with mmckay so you can use it):
https://api.openchargemap.io/v3/poi...s=3000&operatorid=23&levelid=3&countrycode=US

For destination chargers, I replace the levelid with 2 :)
 

rotor2k

Member
Sep 16, 2019
470
244
London
So I managed to get TM working no problems thanks to @DaveW guide - Really great thanks.

Wanted to go on to make some tweaks however it keeps rejecting my password, 99% sure its right. I did initially have problems with the username i've tried,

SSH:
pi
[email protected]
[email protected] (got from router no problem)

All new to me, I guess I will end up with a fresh install, unless anyone has any advice? Is it case sensitive ?
On Linux, *everything* is case-sensitive: username, password, file and directory names, the commands you type from the command line, the flags you add to some commands... all case-sensitive.
 
  • Informative
Reactions: Godsense

MMcKay

Member
Sep 22, 2019
21
15
South Florida
Fixed this and re-uploaded the file, but with a workaround for now of a default value of 0.24, turns out the USA supercharger costs are a bit more variable than over here, I'll work on that now by trying to read in characters 2,3,4 and 5 from the field with costs in as there is also text in there.



To do it, I'm using an ImportJSON script for Google Sheets, I pull down the specific URL, do some data fixing on some of the tables to make them compatible then concatenate the string at the end to get the output.

Sometimes differs per country / locale though, so with the USA one, you have different prices per location / car type (from reading the comments) and also there were a lot more fields to import.

For USA Superchargers, I used this URL (but replacing my unique ID with mmckay so you can use it):
https://api.openchargemap.io/v3/poi...s=3000&operatorid=23&levelid=3&countrycode=US

For destination chargers, I replace the levelid with 2 :)

Hey Dave,

Most of the lines are missing the radius entry.
 
Last edited:

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Hey Dave,

Most of the lines are missing the radius entry.

I've had a shocker here, haven't I! - In my defence, I was a little hung over this morning :)

I've no idea how that issue happened, somehow the contact was totally different to the working ones. Sorted now and re-uploaded, 3 times the charm I hope
 
  • Funny
Reactions: davidmc and Utahken

MMcKay

Member
Sep 22, 2019
21
15
South Florida
I've had a shocker here, haven't I! - In my defence, I was a little hung over this morning :)

I've no idea how that issue happened, somehow the contact was totally different to the working ones. Sorted now and re-uploaded, 3 times the charm I hope

Thanks Dave,

I updated the formatting on the script since there are a lot of US supercharger names that have apostrophes in them... so nice to use a postgres SQL editor like Postico so you can quickly see any scripting issues. Attached is the updated script.
 

Attachments

  • USA Superchargers-Updated Formatting.txt
    225.3 KB · Views: 6
  • Like
Reactions: Utahken and DaveW

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Just as soon as the USA one is working, it’ll need to be updated for the new version, as the cost per kWh table has changed, I’ll sort that tomorrow :)
 

sja.

New Member
Aug 7, 2019
1
1
London
I upgraded to v1.20.0 and then tried to import the UK Superchargers today but was hitting an error due to the change to cost_per_kwh table you mentioned DaveW.

I've attached the updated file I used to import successfully.

Thanks for putting together the list, very helpful.
 

Attachments

  • UK Supercharger Location - for v1.20.0.txt
    16.4 KB · Views: 3
  • Like
Reactions: DaveW

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