Kodo-kakaku / luci-app-gpoint

GNSS Information dashboard for OpenWrt LuCi
GNU General Public License v3.0
30 stars 13 forks source link

gpsd-client or local request? #16

Open Disciplus86 opened 1 year ago

Disciplus86 commented 1 year ago

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 !

Kodo-kakaku commented 1 year ago

Hi @Disciplus86 ! Greetings! Initially, I wanted to make an application that would require fewer external dependencies. I understand your problem, I myself wanted to write an application in lower-level languages in order to improve performance (C\C++), but this required the user to build independently, and many do not know how and are afraid of it))) I will try to think about how to integrate gspd into the project in the near future and give feedback, maybe I will need some time for this!) Thank you for your feedback!

Disciplus86 commented 1 year ago

Great ! If you do that you have to rewrite the protocol of gpsd... For me, if i can use a port on the LAN or WAN (or a local file or a API or a xml) and if i have the last GPS data (locality and time) it's ok ...
Thx @Kodo-kakaku for your work! respect

Kodo-kakaku commented 1 year ago

Hi @Disciplus86 ! I have good news for you! Since version 2.5.1, GPSD support has appeared! I would like to hear your opinion about the use and get feedback! Thank you for your help!

Disciplus86 commented 1 year ago

Many thx @Kodo-kakaku ! I will try this week and, of course, i will send you a feedback ;-)

Disciplus86 commented 1 year ago

It's perfect, i have test your plugin, it's really great! I have used a a windows client GPS for check the remote GPS of the openWRT router (vicking) and it's is working like a charmed!

Now, for a lambda user, if you can insert the control or the configuration of the service of GPSD it was great... but for me, it's perfect! many many thx for your work @Kodo-kakaku !

Kodo-kakaku commented 1 year ago

Hi @Disciplus86 ! t's nice to hear that you like using Gpoint! Now the IP address and the GPSD port are available in the user interface from where Gpoint should take data (at the same time, Gpoint checks the correctness of the port settings and flags during initial configurations and can change the port settings, for example) My question is, what kind of configuration functionality do users need to work with GPSD for subsequent configuration? Thank you for your support, you helped the project a lot!

Disciplus86 commented 1 year ago

Hello! I discovered an annoying behavior with the GPSD and GPOINT services. The GPOINT application sets the "listen_globally" variable to 0 of GPSD service, whereas I needed it to be 1. I have modifie in the file on the share file of gpoint (/usr/share/gpoint/gpoint).

    if gpsd.core.port ~= modemConfig.gpsd_port
            or gpsd.core.device ~= modemConfig.port
            or gpsd.core.enabled ~= '1'
            or gpsd.core.listen_globally ~= '0' then
        uci:set("gpsd", "core", "enabled", "1")
        uci:set("gpsd", "core", "device", modemConfig.port)
        uci:set("gpsd", "core", "port", "2947")
        uci:set("gpsd", "core", "listen_globally", "0")
        uci:commit("gpsd")
    end
    luci.sys.init.start("gpsd")
end

Would it be possible for you to make these variables editable to prevent GPOINT users from being unable to use the /etc/config/gpsd configuration file? This problem made me search for a solution for a week. 😭 but i found it !

Kodo-kakaku commented 1 year ago

Hi @Disciplus86! I added the listen globally field in version 2.5.3 where you can choose yes or no in the drop-down list to configure GPSD, I also made some corrections that should affect the correctness of the application! Thank you for your feedback! I will be waiting for feedback)

Maik2016 commented 1 year ago

Hello, I like the tool, unfortunate the auto configuration disable my gps all the time because I need the '/dev/mhi_LOOPBACK' port on my X3000 router. Cloud you make the function able to disable or manual to import ports ?

Kodo-kakaku commented 1 year ago

Hi! Do I understand correctly that you use a symlink on the gps port of the modem? Tell us in more detail which router, modem do you use and what is your task?

Thanks!

Maik2016 commented 1 year ago

Hello, The modem is mountet as '/dev/mhi_LOOPBACK' from GLI-NET because I can not choose this in the settings it get overwritten in the gpsd.core.device to USB device. It would be good if the settings get not overwritten by the tool better that I can put the path myself in the settings from the tool.

Kodo-kakaku commented 1 year ago

Greetings! As I understand it, you have a quectel modem, the easiest way to fix this is to make a symlink with ports, for example: /dev/ttyUSB*… Currently, it is not possible to provide manual configuration of the modem in a user-friendly way. One of the reasons is that users may not always understand that to receive GNSS data, it is necessary to go through the modem configuration. Try the suggested method and thank you for your interest in the project! If you have any more questions, I will be happy to answer them!