-
1Running Webserver Code
Steps to run the webserver code:
- Clone this repository either by downloading it or by using git clone.
git clone https://github.com/vikkey321/--Build-a-GPS-tracker-using-Neo-6m-Module--ESP8266--nodejs--mongodb-and-EJS-
- Extract the folder and navigate inside the code
CD Extracted_folder_name
- Now, edit the map api in map.ejs in the views folder and paste your goole maps javascript api key.
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap&libraries=&v=weekly"
- Install the libraries
npm install
- Install nodemon
npm install nodemon
- Start the server (Also make sure that your mongodb is running in the background)
npm start
- Your webserver is running on 3000 port
localhost:3000
- Clone this repository either by downloading it or by using git clone.
-
2Editing Arduino code
Steps to edit arduino code:
- You can find the code in the folder "arduino_code".
- Replace your SSID and Password with your wifi name and password
#define STASSID "SSID" #define STAPSK "PWD"
- Replace the ngrok url in the below lines
const char* host = "YOUR_ngrok_url http.begin("YOUR_ngrok_url/addgpsdata");
- Directly program your arduino board
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.