Giter Site home page Giter Site logo

Comments (8)

free-x avatar free-x commented on August 29, 2024 1

The heart of OpenPlotter is SignalK. You should rather use the corresponding SignalK plugin
https://github.com/SignalK/set-system-time

from avnav.

free-x avatar free-x commented on August 29, 2024

P.S. settime.sh is a part of avnav-raspi package, which is not for OpenPlotter available ( only for AvNav Images)

from avnav.

quantenschaum avatar quantenschaum commented on August 29, 2024

OK, why? The settings could be available on OP but disabled by default.

I started with OP because it contains SK and AvNav, to try them out and are now "stuck" on it with the o-charts. But I have to say, I do not like SK, the idea is good, but AvNav is much more usable.

from avnav.

wellenvogel avatar wellenvogel commented on August 29, 2024

Most probably I should be more clear in the docs for that part.
On OpenPlotter we consider SignalK to be the main data handler.
On AvNav images this is AvNav.
And as OP/SignalK have their own handling of system time we do not want AvNav to interfere with it.
At the end it's not enough to set the system time - you potentially need to restart some services.
If you still want AvNav to set the system time you can copy the script from the avnav-raspi package and configure it as settime command.

from avnav.

quantenschaum avatar quantenschaum commented on August 29, 2024

configure it as settime command.

OK, but how, the settings are not present? - But I can also let SK to this.

from avnav.

wellenvogel avatar wellenvogel commented on August 29, 2024

I would recommend to go with the SignalK approach - it's more natural for OpenPlotter. But at the end I'm not sure if it will handle all services correctly (mdns/avahi does not like setting the system time...).

If you really would like to use AvNav, you must configure the settimecmd at AVNConfig (https://www.wellenvogel.net/software/avnav/docs/hints/configfile.html) - can only be done directly in the xml as it is not intended for "normal" users ;-) - (you can use the update plugin to edit the xml).
Afterwards you will see all the other configs.
The command from avnav-raspi: https://github.com/wellenvogel/avnav/blob/master/raspberry/settime.sh

from avnav.

quantenschaum avatar quantenschaum commented on August 29, 2024

OK, after setting

<AVNConfig expiryTime="10.0" settimecmd="foo"/>

the other config options did appear, the settimecmd option itself is not available, though.

BTW, what is avahi used for? Are there devices that auto discover AvNav?

from avnav.

wellenvogel avatar wellenvogel commented on August 29, 2024

Yes, settimecmd will never be visible in the UI - as I wrote.
Avahi:
Sure - refer to the docs.
Especially BonjourBrowser.
But also other devices can use this (like my m5 - esp32 stuff).

from avnav.

Related Issues (20)

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.