Solution for GPS tracking of the vehicle

Dear all,
I have an idea of creating flow, that will track GPS location of my car. I was thinking of installing a GPS sensor into the car and create everything on my own, but I see there are already sensors like this available.
Does anyone of you have any idea/experience with something like this. My end goal is to store GPS location into the DAtabase....after that I am manipulation this data in visualization tool....
Thx!

Can you explain where the data is stored?

Is the RasPi in/on the car?

How does it talk to the rest of your network?

Looking at that link, it will probably need a SIM and a phone plan if it sends the data back to you remotely.
So that isn't as cheap as it looks.

The sensor will be stored somewhere in the car, connected to 12V.
I as thinking of two scenarios:

  1. Real time.
    -Device is connected to the internet through internet. All the data is stored on cloud DB. It is connected to the interent either through SIM car or through hotspot (wifi) of the cas. In that case I can track it wherever. It is good also in case, the car is stolen.
  2. Non-real time.
    -In that case data is stored on the devices (edge) and it is transferred to the cloud database, when it is connected to the wifi in my garage.

Even first option is not so costly...as I was checking there are data plans available for few euros per months. I don't think I will need a lot of data for sending coordinates.
Regards

Maybe where you are.

But we have only just got fast internet. (The land down under) and sometimes things like that can be very costly.

By the way, I have only now opened a thread on something similar.

You may want to look at the node-red-contrib-web-worldmap node.

It may help you.

My mind is blown looking at it and what it can do.
I'm still stumbling with some things, but it may be useful to you.

Four years ago some of my IoT students worked on a mini-project to track the route taken by someone riding a bicycle. They used an app called Owntracks on an Android mobile phone to send the data via a remote MQTT broker to a Raspberry Pi at school where Node-RED wrote the 'points' away to a MySQL database and displayed the tracks on a Node-RED Dashboard. This meant the students could see the position of the cyclist in realtime and could play the results back (offline) from the dB.

The benefit of this approach is you don't need any extra hardware apart from a mobile phone.

If I was tackling the project again I'd probably see how the Telegram app shapes up for this application.

I published it on 'Share Your Projects'

Here's a direct link to the tutorial I wrote for my students.
http://resources-area.co.uk/node-red-flows/tracking_a_mobile_device.pdf

EDIT:
I've just seen in the tutorial the students used www.cloudmqtt.com as their broker.
Not sure if that company still offers a free teir.
Beebotte do offer a free plan for up 50k messages/day - so worth considering.

1 Like

I may be using that myself.

Four or five years ago I created my first Node-Red project and it was more or less like this.

My car transmits the lat/lon co-ordinates, if it is in parking position. For privacy reasons, it is not transmitted, if the car is moving. This is a decision of the car manufacturer (Volvo) and cannot be changed. However my mobile phone has the, already mentioned before, app "Owntracks" installed (an alternative version NextTracks also exists). This app sends the co-ordinates to my private MQTT broker. Think of security/encryption. I do not see a significant increase of costs as it is lightweight communication from my mobile phone.

I see a lot of car trackers, that uses MQTT. So I suggest have a look at that.

I use it for various functions.

  • Display the car position on the worlmap node ( together with phone position). Just for fun
  • As Owntracks has also a companion application (ot-recorder) you can always recall the history.
  • Use the co-ordinates to calculate the distance from my car to the home location, both as km and time. See: http://project-osrm.org
  • If my car is at home (the distance car-home < 10 m) I'm able to lock/unlock the car by NR and/or Google Home.

So some idea's.

Regards

Hm...I know that one....that is my backup plan....I am using even more elegant solution:
Using "Find my Iphone" node from Apple....it is asking apple, hat is the location of phone.
It requires iphone, but you can get used one ith poor battery for 50$.
Nevertheles, I prefer to have proper solution ith smal chip/sensor.
Any idea?

Just been looking at this device on Amazon-UK.

Looks dead easy to fit and not too expensive for the monthly subscription fees.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.