Giter Site home page Giter Site logo

Comments (18)

fastworks avatar fastworks commented on September 17, 2024 1

How about one that shows how many seconds until the next update? "Next reading expected 1:24..."

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

Better, and perhaps easier to implement would be to simply add the seconds piece of the time onto that line when it reaches four minutes. So, when "4 minutes ago" is reached, append realtime seconds to that so it would read "4 min 10 secs ago"... "4 min 11 secs ago" ... etc... etc...

from xdrip.

tzachi-dar avatar tzachi-dar commented on September 17, 2024

from xdrip.

fastworks avatar fastworks commented on September 17, 2024

I don't really know what parakeet or mongodb are, but maybe the chosen data source module (however that's been designed in the code I haven't reviewed yet) can return an estimation of the time so the display can show it if and only if it's available? I just setup the android devel studio so it would likely be an easy first dive into the code.

from xdrip.

roycesimpson avatar roycesimpson commented on September 17, 2024

Any progress on this front?

from xdrip.

fastworks avatar fastworks commented on September 17, 2024

I was never able to get a build environment working so I wasn't able to make and compile any changes.

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

I'd like to bump this one again. There are so many times where I'm in the car or in some environment where I'm tempted to stare at my phone waiting for the "4 minutes ago" to refresh with a new reading. If I knew how many seconds were left until the next reading, I could dismiss the phone and come back to see... or conversely I could keep staring at the device if there was only like 5 seconds left.

I like fastworks suggestion above: 'How about one that shows how many seconds until the next update? "Next reading expected 1:24...'

from xdrip.

s-diez avatar s-diez commented on September 17, 2024

Hi,

I just had a look at the code. As mentioned there is no fixed knowledge about the next BG-Value. What I think is closest to the requested feature is the time to "Next Wake up" from the "System Status" page under "BT Device". This is the time the app will try again to recieve new BG-Values from the connected BT-Device. If one wake up is missed (last BG-value from 6 minutes ago for example) the wake up would continue to show an accurate estimate about the next update (in 4minutes in the given example).

Would this be an acceptable solution? Configurable to show under settings and visible only if next wake up < 60seconds. On which places should this be visible? Only the main "Home" page?

I just recently started using this App. I am a software developer but not usally android or java so if I should make a pull-request a bit of review would be appreciated. I chose this issue as a starting point as it seems quite simple and contained.

from xdrip.

tzachi-dar avatar tzachi-dar commented on September 17, 2024

If going in that direction, there are a few things to note:

  1. As you said it does not match all devices. For example if one is using wifi, then it is not clear when exactly the data will reach. This can also happen because of clocks that are not fully synced.

  2. For some BT devices, then one can expect to have the next reading in 5 minutes, but then again, some devices are always connected, while other might disconnect and reconnect again letter, and in that case data will arrive later. (even after 6 minutes from previous reading).
    For example xBridge will try to wake 40 seconds before the message is expected.

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

s-diez & tzachi-dar, I'd be good with anything that gives me a time indicator that I should be expecting a reading soon... yes, on the main app screen would be fine.

I don't see any dynamic time stuff on that first "classic status page" area for "bluetooth device" that serves as a reference, but on the second "g5 status" page, there is some activity that takes place on the "bluetooth link" and "last connected" sections.

Alternatively, possibly more simply to code, could you add a setting that turns on, all the time, a seconds readout? So, on the main screen where it says "n minutes ago"... just have an optional setting that would change it to always have seconds on, for example, "2m 31s ago".... "2m 32s ago". Doing that might circumvent the need to introspect all this logic and devices and differing times, etc...

A use case for this feature would be as follows. I'm standing around with friends at a dinner and need to look at my device/xdrip+ frequently to gauge my BG situation. I look like a jerk and am rude doing this. When it gets to "4 minutes ago" I find that I'm constantly pulling the phone out, checking that text, putting phone back, pulling it out... checking that text.... repeat until a new reading is there. This becomes especially neurotic when it's on the "4 minutes ago" text because I don't know if it's 4 minutes 5 second ago or 4 minutes 59 seconds ago. So I keep looking repeatedly. If I could see right away that it's 4m 11s ago, I can gauge much more precisely when to have the next look at the phone.

Thanks so much for taking the time on this!

from xdrip.

tzachi-dar avatar tzachi-dar commented on September 17, 2024

Having this as an option is more reasonable.
There is one thing that you can do, without a change and that is to look at the bg data table. It shows the last reading with seconds. (you need to go to settings->less common settings->show databases).
s-diez can you code a change to show also the seconds from last reading? You will need to change the timer to work every second and not every minute once this code is on (and of course, close the timer when the screen is off).

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

tzachi-dar, is your suggestion for the "datatables" option meant for me, the user? I do have that enabled but not sure how to use that as a quick, easy reference for when the next reading should take place. Perhaps that was meant for s-diez...

from xdrip.

tzachi-dar avatar tzachi-dar commented on September 17, 2024

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

All good points. I'm taking it that adding seconds to the main screen "4 minutes ago" text is not worth the work... and that buying another device is the solution. Or, conversely clicking through until I see the latest reading in the bg datatable and then doing mental math to extrapolate the next time...

Thing is, I'm not "always" wanting to know my BG... it's only occasionally when it says "4 minutes" ago... then find myself checking my phone more than I would if I actually knew the seconds... This is a convenience thing. You guys have stated above that this isn't an easy fix. I can live with that.

from xdrip.

s-diez avatar s-diez commented on September 17, 2024

Hi sorry for the long delay.
So the conclusion is I'll take my effort to another less complicated issue :D
If an optional feature to always display seconds for the Time since last BG-reading would still be worth it, I can do that. All other solutions seem to be very specific for any given device and therefore require to much knowledge to be userfriendly and usefull for multiple devices.

from xdrip.

gitanO0 avatar gitanO0 commented on September 17, 2024

"If an optional feature to always display seconds for the Time since last BG-reading would still be worth it, I can do that." Absolutely...

To add to this discussion, something I'm noticing, and I don't know if it's always been doing this or what but my readings seem to be in-sync with by phone clock... so for example, when I look at my BG data table, I'm seeing that my readings are almost exactly on the 5 minute interval... 13:05, 13:10, 13:15, etc... I enabled the seconds display on my phone clock in the status bar that pretty much, currently anyway, is solving the entire issue. So, when xdrip+ says "4 minutes" ago, I just look up at my clock in the status bar and it might say 13:14:49... i know I then have about 10 seconds left till the expected next reading. Then about 10 seconds later, bam, my reading comes in.

If this holds, I can mark this issue closed. I'm not sure what to expect on my next sensor placement though. I have no idea how xdrip+ and the sensor and my phone clock are in-sync like this but if it lasts, sensor after sensor, I'd be 100% happy with that.

from xdrip.

old-square-eyes avatar old-square-eyes commented on September 17, 2024

I just created an issue the same as this (but have now closed it)... below are my thoughts and reasoning. Coming late to the party by the looks. But I'd find this very useful (limitations above considered).

When testing, one gazes often at the 5 minute life cycle of a BG capture. Waiting for that 4 minute to tick over to 5 can take an eternity. Especially if up in the middle of the night waiting for multiple readings, struggling with issues or waiting for ideal calibration conditions.

Propose: Status page & home page (in engineering mode or display settings), counts down in seconds for collector wake up (or up from last reading). Option also to add an audible beep in the process/cycle for testing various things so the phone doesn't have to be watched as closely when observing function.

from xdrip.

Navid200 avatar Navid200 commented on September 17, 2024

I'm going to close this for the following reason.

It's already mentioned that if you are using xDrip as a follower from Nightscout (Mongo), there is no guarantee exactly when the next reading is going to be.

If you are using a G6 and xDrip is the collector, the system status page in fact shows scanning only for the last 5-10 seconds before the reading. So, you will now when to expect the next reading.

Regardless of all of that, all you need is to look at a clock with a seconds hand as soon as you see last connected 4 minutes. Then, looking at that clock, you can tell exactly when to expect the next reading.

We can always reopen if this is deemed to be a necessary requirement.

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.