Giter Club home page Giter Club logo

Comments (7)

ckrey avatar ckrey commented on June 24, 2024

What do we want?:

  • save bandwith if not necessary
  • get accurate and up to date locations
  • receive a ping even if vehicle is stationary
  • Stationary Mode:
    detect: no movement greater than minDistance
    publish: every pingInterval seconds
  • Slow Mode
    detect: movement > minDistance and speed > minSpeed
    publish: every slowInterval seconds
  • Fast mode
    detect: movement >minDistance and speed > fastSpeef
    publish: every maxInterval seconds

always publish when changing mode

thougths?

from gw.

jpmens avatar jpmens commented on June 24, 2024

We want to save bandwidth and get accurate locations.

StationaryMode sounds good, and I think "quietTime" should be in there as well, to further reduce publishes during, say, night times.

SlowMode also sounds good.

For FastMode, I think minDistance needs to be higher than for SlowMode, which is what I meant by "dynamic adjustment".

I don't think an explicit pub on mode change is required really, because this will happen automatically?

In any case we have to think about this carefully.

from gw.

Choralthings avatar Choralthings commented on June 24, 2024

@jpmens it is possible to use Ignition line (green line connected to fuse) as key.
If you disconnect green cable from fuse and you connect it to vehicle key, when you'll disconnect the key, Greenwich enter in stand-by mode and it will not send messages.

from gw.

jpmens avatar jpmens commented on June 24, 2024

@ckrey would this be something for status=-1 ?

from gw.

ckrey avatar ckrey commented on June 24, 2024

yes, I haven't tested yet but should be already the case: Ignition off, java goes to intended close and sends a status=-1 messages

from gw.

ckrey avatar ckrey commented on June 24, 2024
  • When stationary, GW will publish after minInterval seconds. Typical value is once per hour.
  • When GW moves, it will publish after maxInterval seconds. Typical value is once per minute.
  • Detection of move is by evaluation of current speed and distance from the last published location. Threshold speed is given by minSpeed with a default of 5 km/h and threshold distance by minDistance with a default of 100 m.
  • Stationary publishes are marked as triggered with "t":"T", moving publishes with "t":"t".
  • Trigger values "d" for distance and "s" for speed are obsolete.

from gw.

ckrey avatar ckrey commented on June 24, 2024
  • When transitioning from move to stationary and additional publish is sent marked with trigger "p" (park)

from gw.

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.