Giter Site home page Giter Site logo

Comments (35)

 avatar commented on August 15, 2024 1

Done and the pill still showed nothing so updated to latest xdrip+ version and we have movement. Pill displays the 3% still but it does now when hovering over it display both Sony with correct % and wixel at the 3%

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Can you describe your setup in detail, which hardware components are you using? The later versions support uploading of multiple battery status for different devices and nightscout shows the lowest of these in the battery pill.

from xdrip.

 avatar commented on August 15, 2024

Dexcom G4 with Xdrip bluetooth wixel in form of the xdrip kit. Sony Z3 compact running android 6.0.1

from xdrip.

 avatar commented on August 15, 2024

issue is with using version 1704030800 Xdrip +

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Is there a possibility that, for example, your bluetooth wixel was reporting a battery level of 2% ? Does the battery % indicator normally work with that device? Is it running xBridge firmware?

from xdrip.

 avatar commented on August 15, 2024

not running xBridge firmware but it could be thinking it's the wixel power although I know it's got far more than 2% power at the moment due to recharging schedules.

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

So you have rolled forward again to 1704030800 which was problematic for you? And now you're seeing the battery status you would expect?

from xdrip.

 avatar commented on August 15, 2024

Hi Sorry yes is was 1704030800 that introduced the issue for me, rolling back to 1701201513 resolved the issue and battery level for uploader is reporting correctly on NS site

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

But now it is working correctly on 1704030800 ?

from xdrip.

 avatar commented on August 15, 2024

Sorry for earlier confusion on my posts as got the version numbers the wrong way. On the 1704030800 the battery status is stuck. Works fine on 1701201513

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Okay, if you upgrade again to the latest version (you should find it in your downloads folder) when you see the stuck at 2% on Nightscout battery pill, can you hover your mouse over it and see a description of multiple battery readings like as shown in this screenshot?

https://www2.pic-upload.de/img/33033744/xdrip-nightscout-batterie-status.jpg

If you do get the description text, can you tell me what items you have and what battery % levels they are at. Thanks.

from xdrip.

 avatar commented on August 15, 2024

No worries, will get on it within next 20 minutes

from xdrip.

 avatar commented on August 15, 2024

Before and after updating
screenshot 2017-04-19 at 13 50 33

screenshot 2017-04-19 at 13 51 43

nothing happens when I roll mouse over pil in either version

from xdrip.

 avatar commented on August 15, 2024

Maybe this helps, If I enable 'display bridge battery' in less common settings it shows on screen of uploader at - yes you've guessed it 2%

from xdrip.

kskandispersonal avatar kskandispersonal commented on August 15, 2024

@jamorham I also see nothing when I hover over the battery pill. Should I not see the watch (as bridge_battery) and the phone? It only shows phone. Just took a look at NightscoutUploader.java and see that it only loads on DexCollectionType.hasBattery() which does not include DexcomG5. I guess we need to change the condition in NightscoutUploader.java to:
if (DexCollectionType.hasBattery() || (Home.get_forced_wear() && DexCollectionType.getDexCollectionType().equals(DexCollectionType.DexcomG5))) batteries.add("Bridge");
When I add that, NS does indeed display the wear battery now but not the phone! On hover, nothing happens. The JSON that gets sent is:
{"device":"samsung SM-N910V","uploader":{"battery":97}} {"device":"DexcomG5","uploader":{"battery":99}}

So xDrip+ does send multiple uploader batteries but it appears my NS site only displays the last entry.

from xdrip.

kskandispersonal avatar kskandispersonal commented on August 15, 2024

I'm on Nightscout version 0.9.0

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Okay thanks for that @kskandispersonal I'm on 0.9.2 and I don't see the hover text either but when I asked about this in the nightscout channel I was sent the screenshot I linked to above which is from 0.9.1-dev Its my understanding that it is supposed to show the multiple battery statuses.

from xdrip.

kskandispersonal avatar kskandispersonal commented on August 15, 2024

@jamorham Okay. I haven't checked the nightscout channel in a long while. I don't see any pref that would enable multiple batteries. I think we should add that code snippet to NightscoutUploader in any case, don't you think?

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

@kskandispersonal If you're forwarding the wear battery and treating it as the bridge battery in the case of forced wear with G5 then yes it makes sense to add the condition you suggested to get the wear battery uploaded as well.

The original problem appears to be that the xdripkit bridge device is stuck reporting a 2% battery life but a secondary problem is that this isn't clear in nightscout as the hover text isn't showing the breakdown of each entry.

What I don't know yet is whether that is a nightscout issue or something to do with the format of the data xDrip is uploading to nightscout which is preventing it showing the detailed view.

from xdrip.

 avatar commented on August 15, 2024

If there's anything you want me to try out at all to help just let me know.

from xdrip.

kskandispersonal avatar kskandispersonal commented on August 15, 2024

@jamorham Yes, we are forwarding the wear battery data and treating as the bridge battery for forced wear with G5. We also performs the checkBridgeBattery() on it.

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

@DooDah how do you feel about installing the xBridge firmware on your xdripkit device? You should be able to do this without changing any of the soldering. I'm hoping this will resolve your battery status issue.

from xdrip.

 avatar commented on August 15, 2024

I can certainly give it a go. Looking likely a sensor change is imminent so might get on it this afternoon.

from xdrip.

 avatar commented on August 15, 2024

Wixel flashed with xbridge (at least I think!) seems to have connected to uploader and and have made sure that's on the latest release so will keep you posted after new sensor is inserted and we are rock and rolling again.

from xdrip.

 avatar commented on August 15, 2024

@jamorham new sensor started and on latest release downloaded today still showing in the pill on NS what it thinks the wixel battery status is not the actual uploader status. Will try rolling back to older version to see if issue goes away again.

from xdrip.

 avatar commented on August 15, 2024

Yep back to displaying uploader status after rollback to earlier version.

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

@kskandispersonal has tracked this down and as a first step, can you try setting: DEVICESTATUS_ADVANCED to true in your environment variables for nightscout? You should then see all your devices when you hover over the battery pill in nightscout.

from xdrip.

 avatar commented on August 15, 2024

I assume as that variable appears to be missing from his NS site that I should add that under app settings in Azure as a new line? I've done that and deleted existing documents in the admin panel so I'll report back after a couple of updates to see if anything has changed. I did roll back to the earlier version of xdrip+ though so we could keep seeing the correct battery level and I did reflash the wixel with the standard xdrip firmware as the xbridge seemed to use more battery as it ran out unexpectedly

from xdrip.

kskandispersonal avatar kskandispersonal commented on August 15, 2024

Yep, under Applications Settings, create the new setting, DEVICESTATUS_ADVANCED, with value, true.

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Okay so I think the issue still remains that you're getting a reported bridge battery, but that your bridge battery indication value is bogus and is still causing confusion on nightscout.

I think for this circumstance I will need to implement a mechanism to ignore the battery value coming from xbridge. I haven't yet thought of any clever automated way of doing this reliably without increasing the complexity of the settings pages.

I'm a little surprised though because I run xbridge without any battery monitoring circuit and mine just always is reporting at 100% so I don't know why yours is stuck at 3%

from xdrip.

 avatar commented on August 15, 2024

I always like to provide a challenge 😊

from xdrip.

jamorham avatar jamorham commented on August 15, 2024

Okay, so the 25th April Nightly contains a new option within Cloud Upload -> API Upload -> Extra Options which is a checkbox for Upload bridge battery which you can uncheck if your bridge battery sensor is broken and this should stop it being uploaded to Nightscout.

It may take approx 30 minutes before nightscout expires the old data. Please let me know if this works for you.

from xdrip.

jstevensog avatar jstevensog commented on August 15, 2024

from xdrip.

 avatar commented on August 15, 2024

Done and option unchecked. Will report back in a couple of hours to see what's occurring.

@jstevensog I only use a xdrip setup with xdrip firmware so don't know if that makes a difference. This battery issue uploading issue only appeared recently.

from xdrip.

 avatar commented on August 15, 2024

I can confirm that unchecking the option has done the trick. Really appreciate your help on tracking down this and sorting it out.

from xdrip.

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.