Coder Social home page Coder Social logo

kodo-kakaku / luci-app-gpoint Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 12.0 824 KB

GNSS Information dashboard for OpenWrt LuCi

License: GNU General Public License v3.0

Lua 91.86% HTML 7.63% Shell 0.37% Makefile 0.14%
openwrt luci gnss gps glonass lte 3g router wialon traccar traccar-client yandex-api kalman quectel sierra dell simcom gpsd huawei meiglink

luci-app-gpoint's Introduction

Gpoint
Global Navigation Satellite System for OpenWrt LuCi

Gpoint was created in order to use full set of functions of mobile modules installed in OpenWRT router. Manufacturers of GSM/3G/LTE modems often lay down GNSS function, so why not use it? It doesn't matter if you use a router in transport or it is installed in your terminal, you can always find out its location!

Screenshots overview_wait overview settings

Features

  • Support: GPS, GLONASS (works with "NMEA 0183" standard protocol)
  • GPSD is supported for parsing NMEA data from a modem or your gps device
  • GeoHash (reduces drift of GPS\GLONASS coordinate readings in parking)
  • Kalman filter (Implementation of Kalman filter for geo (gps) tracks. This is a Lua port of original C code)
  • Yandex Locator API (Determines location by nearest Wi-Fi access points)
  • Simple GeoFence a virtual perimeter for a real-world geographic area
  • Server side (sends GNSS data to a remote server)
  • Support OpenLayers maps in UI, and much more!

Supported devices

  • Dell DW5821e/DW5829e
  • Huawei ME909u-521
  • MEIGLink SLM820/SLM828
  • Quectel EC21/EC25/EP06/EM12/EM160R/RM500Q/RM520N
  • Sierra EM7455/EM7565
  • Simcom SIM7600E-H
  • U-Blox VK-172 GPS/GLONASS module (u-blox 7 GNSS modules)

Supported GNSS protocols

How to add an unsupported device

  • Most importantly, your device should be able to constantly send NMEA data to any of the available ports.

    EXAMPLE: /dev/ttyUSB*

  • In the model file, you must add the vid, pid, and name of your device.

    MODEL PATH: /usr/lib/lua/luci/model/cbi/gpoint/gpoint.lua

    ADD DEVICE:

    local modems = {
        ["Quectel"] = {
            ["2c7c:0306"] = "EP06",
            ...
        },
        ["MY_DEVICE_VENDOR_NAME"] = {
            ["PID:VID"] = "MODEL_NAME",
            ...
        }
  • It is necessary to add commands to start/stop sending data to the port in the configuration file. (if such commands are not required, you must set "-" instead of commands)

    CONFIG PATH: /usr/share/gpoint/lib/config.lua

    ADD DEVICE:

    local MODEM = {
        DELL = {
            START = "AT+GPS=1",
            STOP = "AT+GPS=0"
        },
        MY_DEVICE_WITH_START/STOP_COMMAND = {
            START = "DEVICE_AT_COMMAND_TO_START",
            STOP = "DEVICE_AT_COMMAND_TO_STOP"
        },
        MY_DEVICE_WITHOUT_COMMAND = {
            START = '-',
            STOP = '-'
        }
  • That's it! Now your device works with GPoint!

If there are any difficulties with adding a new device or you want to help the project, open an issue or send a pull request with your changes!

Thank you for your interest in the project!

Install

# # Upload ipk file to tmp folder
# cd /tmp
# opkg update
# opkg install luci-app-gpoint_2.6.0_all.ipk

Uninstall

# opkg remove luci-app-gpoint

LICENSE

Gpoint like OpenWrt is released under the GPL v3.0 License - see detailed LICENSE.

luci-app-gpoint's People

Contributors

jackyczj avatar kodo-kakaku avatar koshev-msk avatar montaguethomas avatar septs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

luci-app-gpoint's Issues

gpsd-client or local request?

Hello!

I have install your application on my OpenWRT router (a X300B-GPS with a EG25-G LTE/GPS card)), it's work great , thas't's cool!
i have just a little request in my case, when i configure luci-app-gpoint i cant use gpsd. the /dev/ttyUSBx what already used.
Do you think is possible to use luci-app-gpoint with gpsd or insert gpsd in luci-app-gpoint.
I need a local port on my LAN for request the localisation.
Maybe you have a other solution?

A lot of thx for your work !

Change the default map zoom to World instead of Europe

I am located in the USA and when I use the overview page, it shows me Europe and part of Asia, when it locates me, it shows a weird animation trying to zoom in from Europe going into the Atlantic ocean and then suddenly ends up on my location, I think changing the default map location to overview of all continents can solve this problem.

@Kodo-kakaku you asked me before for feedback: I tested luci-app-gpoint v.2.5.7 with sierra EM7565 and EM7455 and it works flawlessly. great job!

Catching ttyUSB changes after modem reboot

Thank you for your work! Set up gpoint on Kroks KNdRt31R19 with Quectel EP06-E.
Stuck in the next issue: Modem unexpectedly reboots and side effect is remapping ttyUSB ports to new values. As a result gpoint lost connection with GPS receiver. For now trying to stabilize the modem. But maybe any ideas how to catch changes of ttyUSB for gpoint?

lua-bit32

Ciao
I have a GL.iNet GL-X750 with (openwrt-19.07 branch (git-21.189.23240-7b931da) / OpenWrt 19.07.8 r11364-ef56c85848)
I try to install luci-app-gpoint_2.0.0_all.ipk but I have a problem
Installing luci-app-gpoint (2.0.0) to root...
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-gpoint:
  • lua-bit32
  • opkg_install_cmd: Cannot install package luci-app-gpoint.
    Unfortunately I can't find lua-bit32
    Is it maybe an openwrt version issue?
    How can I fix?
    Thank you

Does not detect my modem

it did not detect my modem, i looked into your code and my OpenWrt instance and realized that lsusb is not available on my OpenWrt, had to install usbutils to get it to recognize my modem, i think usbutils should be added to dependencies of your app.

Cannot find dependency luci-lua-runtime for luci-app-gpoint

When installing on an x86_64 platform (admittedly I haven't tried this on any other platform) I get the following error;

root@OpenWRT:~# opkg install luci-app-gpoint_1.8.0_all.ipk
Unknown package 'luci-app-gpoint'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency luci-lua-runtime for luci-app-gpoint
 * pkg_hash_fetch_best_installation_candidate: Packages for luci-app-gpoint found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package luci-app-gpoint.

When attempting to install luci-lua-runtime no such package exists.

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.