![]() ![]() Here in every row, the GPS data will be stored, for every interval: Traccar config fileīecause in the traccar.xml config file, the option for Geocode is enabled, the address is visible too, based on latitude and longitude of the current location. In the end, Traccar will create all the MySQL tables like this:įor me the table “postitions” contains the most important data. The Traccar software is running on my home automation server with several other web interfaces, so for this I’ve changed to port number to a free one.įor basic setup, installation and configuration see Traccar website. It’s not neccessary to keep those ports open on the server, while they are not used. In the section “Protocol Config”, I’ve disabled all ports for other GPS trackers (changed to comments with tags). Jdbc:mysql://localhost:3306/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES ![]() ![]() New entry (login credentials are removed) Jdbc:h2:C:\Program Files (x86)\Traccar\data\database In the Traccar installation folder: C:\Program Files (x86)\Traccar\conf the traccar.xml file is changed for using my own MySQL database: In the at the bottom of the page, I’m using my own geofences and a lot more. I use only the server side for retrieving the gps data into a MySQL database. I don’t use the webinterface at all, or use the options from the webinterface, like Geofence, overspeed alarms, etc. A lot of gps trackers are supported and documentation and support is very good. Therefor the Traccar GPS tracking software is now in use for several years. Mobile phone apps drained the battery too much. Both intervals are configured, so during driving the gps tracker will send more frequent an update, then when the car is not used.Ĭloud software was not good enough for me, or the API was not good enough to retrieve realtime data of gave data then I want to have. One for “ignition=ON” and the other when the “ignition=OFF”. Advantage of this MeiTrack GPS tracker is the setup for 2 time intervals. A pre-paid sim-only card is inserted and it uses in my case appr 3-4 MB a month (20.000 km a year). Include /etc/letsencrypt/nfīrowsing to or will redirect to https always, without the reactjs port 3000.In earlier posts I’ve written about different GPS trackers, and even a small preview was shown about retrieving the Traccar data into Homeseer3. In a nutshell: After a few Xexun GPS trackers and even some clones, I’ve running for almost 2,5 years the Meitrack MVT340 GPS tracker with success running in my car. SSLCertificateKeyFile /etc/letsencrypt/live//privkey.pem ProxyPass / SSLCertificateFile /etc/letsencrypt/live//fullchain.pem You can compare your ssl.conf with the below: An additional virtual host will be created and forcing SSL is enabled. ProxyPass / Enable a2ensite .conf Restart Apache systemctl reload apache2 Enable SSL/HTTPS with Certbot We’re going to remove port 3000 from the URL with Apache reverse_proxy. ? Restart PM2 pm2 restart all ApacheĬreate conf file vi /etc/apache2/sites-available/.conf ProxyPass sudo npm install pm2 -g Run traccar pm2 -name Traccar start npm - start Change logo on login page We will use PM2 to keep Traccar always running in the background. You can stop npm with a CTRL+C to stop the task. Indeed it works Traccar running with reactjs Run Traccar with pm2 TestĬan you get to it on a browser? You’ll see a bunch of warnings but it still works. #note - it starts by missing dependencies. REACT_APP_URL_NAME='localhost:8082' NPM install cd /var/www/traccar-web/modern You can test this by changing localhost:8082 to :8082 cd traccar-web/modern env.local file with the location of your traccar backend. (Now decommissioned) 1- modern/public/styles.cssĤ- modern/src/store/purchaseStore.js (This is a new file) Edit. git clone traccar-web Option 2.) cd /var/www/ Using git, clone the official traccar repo. I’m sure there’s a way to specify another keyfile when doing a git clone, but I wont worry about that for now. Ssh-keygen -t rsa -b 4096 -C need to get your ssh key from github, and replace the contents of id_rsa.pub (make a backup of course). Log into server, sudo root & change dir to ~/.ssh, generate ssh keyĬopy id_rsa.pub contents to github key section apt install npm npm -vĦ.14.12 (20.04) Install Node curl -fsSL | sudo -E bash. On npm, there are a variety of Node.js libraries and applications, and many more are added every day. NPM is two things: first, it’s an online repository for open-source Node.js projects second, it’s a command-line application for interacting with that repository that helps with package installation, version management, and dependency management. Open ports 8082 & 3000 within your firewall, or EC2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |