Giter Club home page Giter Club logo

Comments (16)

ckrey avatar ckrey commented on September 26, 2024

We may leave the Indicator in to see if the device is on external power or running on battery.
Suggestion "p":"", where is E or B.

from gw.

jpmens avatar jpmens commented on September 26, 2024

OK. (I'll modify documentation)

from gw.

jpmens avatar jpmens commented on September 26, 2024

Call it pow, please.

from gw.

 avatar commented on September 26, 2024

Maybe vehicle batt level makes sense instead?

Stefano Costa
R&D, Managing Director
M. +39 335 6565749
Skype stefanocosta.bluewind
Twitter @stefanobluewind
www.bluewind.it

Il giorno 02/ago/2014, alle ore 08:38, JP Mens [email protected] ha scritto:

Should we remove the batt level from the JSON payload for GW devices? It's mostly the same value, and if the battery does die (it happened to my first device) the device probably won't do much anyway ... Saves a few bytes, in particular as the information doesn't seem really valuable.


Reply to this email directly or view it on GitHub.

from gw.

 avatar commented on September 26, 2024

This proves to be very useful on similar applications, telling what's wrong under strange situations

Stefano Costa
R&D, Managing Director
M. +39 335 6565749
Skype stefanocosta.bluewind
Twitter @stefanobluewind
www.bluewind.it

Il giorno 02/ago/2014, alle ore 08:52, Christoph Krey [email protected] ha scritto:

We may leave the Indicator in to see if the device is on external power or running on battery.
Suggestion "p":"", where is E or B.


Reply to this email directly or view it on GitHub.

from gw.

jpmens avatar jpmens commented on September 26, 2024

The value we're getting isn't vehicle battery level; it's the battery level of the Greenwich. I think we'd need CAN BUS for the former, but that's a feature which is far away ... ;-)

from gw.

ckrey avatar ckrey commented on September 26, 2024

AT+SBV -> (e.g. 4.4V) indicates the supply voltage of the module a.k.a. the voltage suppled by the vehicle or battery.
Once we start using deferred shutdowns or alerts, we may find it helpful to have this.
AFAIK vehicle battery voltage is not available w/o CAN BUS
Currently the power indication is hardcoded in the app as "E", so it wouldn't help

We may use the info provided by
AT+SBC which is currently not monitored by the app except the undervoltage warning

from gw.

 avatar commented on September 26, 2024

Might be possible using an AD converter (just an additional cabling on the connector) but @Matteo knows if this is supported, I'm not sure.

from gw.

Choralthings avatar Choralthings commented on September 26, 2024

If Greenwich is connected to the vehicle battery, you can read the voltage using "getVIN()" or "getDoubleVIN". See PowerManager class in the Choral library.
These methods read the Greenwich power line voltage.

from gw.

ckrey avatar ckrey commented on September 26, 2024

"batt" (optional, see $set fields=) now contains external voltage, e.g. "batt":"12.2V".

from gw.

jpmens avatar jpmens commented on September 26, 2024

I'd like to revisit and discuss this again. We now have vehicle battery voltage in the JSON payload, but is this really useful? Isn't a vehicles battery pretty constant at 12/24V?

As I was telling you yesterday, JSON with the Greenwich' battery level (e.g. 3.7V) was a lifesaver for me in determining why a few devices stopped reporting (I saw their battery drain, thus proving they weren't attached to power).

If you all think vehicle voltage is better; fine, otherwise I'd like to get back to Greenwich battery, if possible.

from gw.

 avatar commented on September 26, 2024

Let me comment on this. Based on our experience both values are relevant under different situations, and would help having them available. Maybe less often than position, or at request.

I agree that vehicle battery voltage is constant with IGN on and engine running; but can reveal issues if dropping too fast when stopped, and an interesting feature is giving its value once every 16/24 hours while being parked (trucks, trailers) being an expensive piece of equipment.

from gw.

jpmens avatar jpmens commented on September 26, 2024

Maybe we could publish both battery levels at the "t":"T" type (e.g. maxTime) as Stefano recommends? It probably is overkill to publish battery levels at each location change, but could we publish them periodically and/or when levels change? {"battv": "12.2V", "battg" : "3.9V" } ? (v = vehicle, g = greenwich)

from gw.

jpmens avatar jpmens commented on September 26, 2024

I think publishing retained messages to

.../batt/v  12.4
.../batt/g  3.7

would probably make more sense in this case, and it matches what we do with .../gpio and .../sw.

from gw.

ckrey avatar ckrey commented on September 26, 2024

I had the same idea

owntracks/gw/356612027383852/voltage/batt 4.4V
owntracks/gw/356612027383852/voltage/ext 12.2V

Will be updated as soon as voltage changes significantly (currently hard-coded 0.1V)

from gw.

jpmens avatar jpmens commented on September 26, 2024

Documented here.

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.