Coder Social home page Coder Social logo

pkockritz / gpspanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rkaczorek/gpspanel

0.0 0.0 0.0 1.64 MB

GPS Panel is a simple web application to present information from your GPS

License: GNU General Public License v3.0

Python 37.22% CSS 17.12% HTML 45.66%

gpspanel's Introduction

GPS Panel

GPS Panel is a simple web application to present information from your GPS. It depends on gpsd daemon, which reads raw data from your GPS device.

Installation

GPS Panel is based on Python Flask micro-framework. It has a built-in webserver and by default listens on port 8625. Install the pre-requisites:

$sudo pip3 install -r requirements.txt 

Copy the gpspanel folder to DIRECTORY (eg. /var/www/)

Usage

The GPS Panel can be run as a standalone server. It can be started manually by invoking python:

$ python3 DIRECTORY/gpspanel/gpspanel.py

Then using your favorite web browser, go to http://your_ip_address:8625

Auto Start

To enable the GPS Panel to automatically start after a system reboot, a systemd service file is provided for your convenience:

[Unit]
Description=GPS Panel
After=multi-user.target

[Service]
Type=idle
User=nobody
ExecStart=/usr/bin/python3 DIRECTORY/gpspanel/gpspanel.py
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

The above service files assumes you copied the gpspanel directory to DIRECTORY - replace DIRECTORY with real path to gpspanel on your system.

Copy the gpspanel.service file to /etc/systemd/system:

sudo cp gpspanel.service /etc/systemd/system/
sudo chmod 644 /etc/systemd/system/gpspanel.service

Now configure systemd to load the service file during boot:

sudo systemctl daemon-reload
sudo systemctl enable gpspanel.service
sudo systenctl start gpspanel.service

After startup, check the status of the GPS Panel service:

sudo systemctl status gpspanel.service

If all appears OK, you can start using GPS Panel using any browser.

Testing

To test GPS Panel while you don't have your GPS connected you can use gps_test.log. Just run gpsfake in your terminal to emulate gpsd service:

gpsfake -c 1 gps_test.log

gpspanel's People

Contributors

rkaczorek avatar pkockritz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.