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]

webbah

Member
May 22, 2012
935
863
Lucerne, Switzerland
Guide here for that if it helps: How to setup and run TeslaMate on a Digital Ocean Droplet server - TeslaEV.co.uk

It's where mine runs from these days, only because GCP kept getting blocked (been fine since October from what I gather).

Well, Google had a worldwide outage for over an hour yesterday so assume GCP got borked too. But I like to host in the EU/Switzerland whenever I can which was my main driver for that decision. Couldn't be happier with the performance! Also, you may wish to update your guide to include setting up the free Digital Ocean Firewall. Costs nothing and adds a layer of security on top. I only have HTTPS open for example. Occasionally I may open SSH just for the brief moment I want to dive in directly without using the DO Console access via a browser.

Screenshot 2020-12-15 at 11.04.43.png
 
  • Like
Reactions: DaveW

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,844
1,800
Scotland
Is anyone recording the cost of their charges in Teslamate with Octopus Go or a similar off peak tariff?

I'm temporarily switching from Agile > Go but wondered how to track the new costs in Teslamate? Is it just a case of adding the off peak rate per kWh to your home geofence? (and make sure you don't charge outwith these times?)

If so, any idea if it'll overwrite the previously stored charge costs? - I suspect/hope not.

I'll take a backup of the server tonight, comment out the Agile integration, update the kWh rate for my home location and see what happens unless anyone has any wise advice they can share.
 

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,844
1,800
Scotland
OK - overwriting the cost per kWh on my home geofence didn't wipe any existing values.

If anyone has setup Teslamate with the Agile integration, and is switching over to Go temporarily...

1. Take a backup/snapshot
2. Edit the .yml file, comment out the line `TeslaMate_GeofenceId=` with a # at the beginning of the line.
3. docker-compose restart
4. Open your Teslamate page and in Geo-Fences find the entry for your home.
5. Set the value per kWh (for Octopus Go it's 0.05)
6. Save

I think that's all that's required. Obviously if you charge outwith the off peak rate you'll need to set the charge manually (would love to be corrected on this).

When switching back to Agile, edit the .yml and remove the #.
 

Vishan07

Member
Oct 16, 2020
7
1
Amsterdam
Hey man, I recommend you switch and try using a DigitalOcean Droplet to host Teslamate. You can host this in Frankfurt or Amsterdam and I noticed you are in Amsterdam. Should be much better than Google hosting in the US. I am doing this and it works fantastic with the smallest droplet. You'll get $100 free for 3 months and then after that its about $5 a month.

I then used BackBlaze B2 to automate the backups with a slight modification to @DaveW's great guides. This allows me to also have the Backups stay in Europe and BackBlaze is much cheaper than Amazon with the same functionality for their storage buckets.
Thanks, will try!
 

Roadrunner13

Member
Oct 16, 2013
392
144
Montreal
  • Like
Reactions: DaveW

StevehConwy

Member
Oct 27, 2020
32
15
Wales
  • Like
Reactions: ElRey and DaveW

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Noticed that Aberdeen was added to the list I export from, guide updated, single line if you just want to add this one:

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Aberdeen Supercharger', 57.110318, -2.092522, 35, '2020-12-18 06:33:00 ', '2020-12-18 06:33:00 ', 0.24, NULL);
 

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,844
1,800
Scotland
Noticed that Aberdeen was added to the list I export from, guide updated, single line if you just want to add this one:

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Aberdeen Supercharger', 57.110318, -2.092522, 35, '2020-12-18 06:33:00 ', '2020-12-18 06:33:00 ', 0.24, NULL);
Thanks Dave. Is Edinburgh Newbridge available yet?
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Thanks Dave. Is Edinburgh Newbridge available yet?

Last Edinburgh one was:

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Edinburgh Supercharger', 55.9453739, -3.3671657, 35, '2020-05-21 15:54:00 ', '2020-09-06 08:24:00 ', 0.24, NULL);

But that's been there since May? - Seems to take a few weeks, I'm guessing it's based on people reporting back to open charge map the coordinates
 

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,844
1,800
Scotland
Last Edinburgh one was:

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Edinburgh Supercharger', 55.9453739, -3.3671657, 35, '2020-05-21 15:54:00 ', '2020-09-06 08:24:00 ', 0.24, NULL);

But that's been there since May? - Seems to take a few weeks, I'm guessing it's based on people reporting back to open charge map the coordinates
Thanks Dave, believe it only came online two days ago, certainly wasn't there in May. There's now Edinburgh and Edinburgh Newbridge superchargers, they're within a couple of miles of each other.

Once I'm allowed out I'll add it to open charge map if someone doesn't get their first.
 
  • Like
Reactions: DaveW

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Excellent - there's been so much Supercharger movement this year, loads more to come too with Tesla's rollout and Gridserve (come to think of it, no Braintree details yet either!)
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Weirdly, OpenchargeMap do have Gridserve listed and they know it has Tesla Superchargers, but they don't come up when you do the API call.

Added directly (just about to update my list on the site)

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Gridserve Braintree Supercharger', 51.85214557376324, 0.5219387754701756, 35, '2020-12-23 06:33:00 ', '2020-12-23 06:33:00 ', 0.24, NULL);
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Almost, have dropped a pin on the precise location:

Dropped pin
Near Edinburgh
Google Maps

55.933919,-3.407793

Thanks, I'll have a go at submitting :)

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Edinburgh Newbridge Supercharger', 55.933919,-3.407793, 35, '2020-12-23 06:50:00 ', '2020-12-23 06:50:00 ', 0.24, NULL);

Is what I've just made manually though if you want to import
 
  • Helpful
Reactions: Medved_77

Medved_77

TM3 SR+ | MSM+Black | No FSD
Jan 20, 2020
1,844
1,800
Scotland
Thanks, I'll have a go at submitting :)

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Edinburgh Newbridge Supercharger', 55.933919,-3.407793, 35, '2020-12-23 06:50:00 ', '2020-12-23 06:50:00 ', 0.24, NULL);

Is what I've just made manually though if you want to import
Perfect, thanks for maintaining these.
 

DaveW

Active Member
May 21, 2019
1,136
899
Beds, UK
Two more submitted and manually added:

Code:
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Crawley SC Supercharger', 51.13687082038547, -0.1911608179539438, 35, '2020-12-16 06:33:00 ', '2020-12-16 06:33:00 ', 0.24, NULL);
INSERT INTO public.geofences (name, latitude, longitude, radius, inserted_at, updated_at, cost_per_unit, session_fee) VALUES ('Banbury Cross Supercharger', 52.07293517090728, -1.3417527342347173, 35, '2020-12-08 06:33:00 ', '2020-12-08 06:33:00 ', 0.24, NULL);
 

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