Introduction: Raspberry Pi Gps Tracker

Picture of Raspberry Pi Gps Tracker

hi friends

always smile and be happy because it's the best thing that we have .

this time i have made a raspberry pi GPS tracker and a real time web interface.

to make it brief, we have a GPS module with a serial communication that we read on raspberry

and show it on a HTML web page. easy!

for reading from module, we i have this beautiful simple python code to get the latitude & longitude as you see in images(it's gps.py )

that way you print the lat & lon when you execute gps.py like:

sudo python gps.py

Step 1: Building the Web Interface

Picture of Building the Web Interface

we're gonna use JAVASCRIPT and AJAX and PHP for showing map on HTML

it's like this:

1- execute gps.py in php

2-echo gps.py output in php

3-in js put a google map object

4-send a ajax request to .php and get response text

5-make text numbers sliced and appropriate

6-again & again send ajax requests to refresh the lat & long and marker on map

Comments

a-forghani-y79 (author)2016-07-26

ایرانی هستید؟؟؟