You can install our site as a web app on your iOS device by utilizing the Add to Home Screen feature in Safari. Please see this thread for more details on this.
Note: This feature may not be available in some browsers.
Here's an idea for something as well (something I might tackle) that could be done using this:What can MQTT do....?
So for me an example of some things.
MQTT is the central IoT broker that receives messages and responds to subscriptions.
So let's say I make a small low power (cheap about £10) microcontroller (ESP32) to read temperature of the downstairs in my house.
The controller is v v simple and slow, but I code it to read the temp sensor and send the reading (via it's wifi) to the MQTT broker every 20 sec (or whatever).
That's all the controller will do (forever).
Then another device (raspberry pi in my case (way more powerful)) is coded to subscribe to the same topic that the controller above is publishing to.
every 20s it now knows the temp of the downstairs. My Pi is connected to my heating pumps and motorised valves in the house. So it can now decide to switch on the heating (or not).
but maybe we want to use this temperature reading for other stuff. My car charger does MQTT. Using some code on Node red I could get the temp from the MQTT broker of the downstairs and tell it to charge the car at 10amps if the downstairs is >20C. Why you would want that I don't know, but you can see that you publish a reading once, then reuse it as many times as you want elsewhere.
MQTT is like the central hub of your network where all readings come into and actions take place from there. Even reactions to the actions and so on.
Follow up this thread:Here's an idea for something as well (something I might tackle) that could be done using this:
Implement some sort of "low charge reminder" - if the car is at home and the SOC is < X% and it's after Y-PM and the car isn't plugged in - let me know!
Super, thanks! This was indeed the missing "link" I was looking for. It looked like a part of a hyperlink, but it's clearly notI changed the code to get the library off the web automatically...
you don't need to mess with that, you just need to set the broker IP address correctly and the topic subscription to match.
edit: I think the subs should match what you have already
Yep, not a new or unique idea in the EV world.Follow up this thread:
Data of "plug in status" · teslamate-org teslamate · Discussion #1463
On the front page of the app (not grafana) there's a small icon that says whether the car is plugged in. I'm wondering if that info is also available on the postgres db / grafana. I'm looking into ...github.com
Thank you Dave EV, turns out you are exactly right. I was running a pi and it turns out I was on the old Buster version. The link you provided to upgrade to Bullseye was informative, but it didn't work for me, so I muddied my way through backing up teslamate and copying the file over to my PC, then installing a brand new pi Bullseye distribution and a brand new Teslamate to current version. Works very will - your identification of the issue is much appreciated. Tonight I will hopefully muddy my way through figuring out how to restore the backup data, as last night I was unsuccesfull in that.Let me guess - running TeslaMate on a Raspberry Pi on Debian Buster?
If so, you need to either backport libseccomp2 from backports (Instructions) or upgrade from Buster to Bullseye (How To Upgrade Raspberry Pi OS to Bullseye from Buster)
The former is the easy and safer way to go. The latter - you're almost better off backing up, reinstalling and restoring from backup depending on how much customization you've done to your Pi.
yes easy to do in Node Red with MQTT, could send message on email or a messaging app.Here's an idea for something as well (something I might tackle) that could be done using this:
Implement some sort of "low charge reminder" - if the car is at home and the SOC is < X% and it's after Y-PM and the car isn't plugged in - let me know!
Hopefully the OP on that thread has done all the hard work for youYep, not a new or unique idea in the EV world.
What command are you using to restore the backup? If using these instructions then you run the command wherever the file is. It doesn'tCan somebody please tell me exactly where on my raspberry pi 3B+ that I should put the teslamate backup file, for restoration of the database? Ideally, I'd be using a PC and dragging and dropping the teslamate.bck file into the advised directory on the microsd card. Thank you in advance, as I seem to be stuck at this spot.
Alternately I can put the file there by SCP file transfer. I tried moving it there already by this method in the command prompt on my windows PC to the pi at:
scp C:\Temp\teslamate.bck file2.txt [email protected].[last#]:\[filelocation]\
but where is the [filelocation]? So far at the root the restore doesn't seem to see it?
Thank you @init6, appreciate it. You are right about the slashes.What command are you using to restore the backup? If using these instructions then you run the command wherever the file is. It doesn't
really matter where you put it as long as you can see it when you're logged into the pi. Usually /home/pi if that's the name of your pi user
Edit: I think your slashes are the wrong way around for the destination location - not used Windoze for a couple of years but think it should be:
scp c:\temp\teslamate.bck [email protected]:/home/pi/
It's not hung, psql is waiting for you to type in more commands.Then I run:
docker-compose exec -T database psql -U teslamate
docker-compose exec -T database psql -U teslamate << .
drop schema public cascade;
create schema public;
create extension cube;
create extension earthdistance;
CREATE OR REPLACE FUNCTION public.ll_to_earth(float8, float8)
RETURNS public.earth
LANGUAGE SQL
IMMUTABLE STRICT
PARALLEL SAFE
AS 'SELECT public.cube(public.cube(public.cube(public.earth()*cos(radians(\$1))*cos(radians(\$2))),public.earth()*cos(radians(\$1))*sin(radians(\$2))),public.earth()*sin(radians(\$1)))::public.earth';
.
Yeah, those are great - servethehome.com has been running a series where they have been testing a whole bunch of different makes/models of these refurbed/used "mini-micro" desktop systems with the idea of running them as small, low power servers. Only challenge is finding them at a reasonable price on eBay or similar.HP Elitedesk g2