Coder Social home page Coder Social logo

rytiggy / glance Goto Github PK

View Code? Open in Web Editor NEW
93.0 93.0 67.0 25.46 MB

Mg/dL and mmol/L Fitbit watchface for CGM in the Cloud Group

Home Page: https://glancewatchface.com

License: GNU General Public License v3.0

JavaScript 63.43% CSS 5.80% Vue 29.84% HTML 0.39% Stylus 0.54%
cgm diabetes monitor

glance's Introduction

Glance twerp logo

Glance is an application for use with Fitbit devices to view your blood glucose levels along with a variety of other health stats on the watch face. You can see your stats at a glance! Click here to learn how to set up Glance!

Donation

I developed Glance to help people with diabetes! 50% of all donations will go to the Faustman lab. The remaining 50% will be dedicated to future research and development of Glance.

paypal

Features

  • Current BG
  • Insulin on Board (IOB)
  • Carbs on Board (COB)
  • Trend direction
  • Delta
  • Time since last pull
  • Graph of BG's over time
  • Error reporting
  • Temperature
  • Step count
  • Heart rate
  • Time
  • Date
  • Battery levels
  • Vibration Alerts
  • Changing background color

Glance must not be used to make medical decisions, by using glance you agree to the user agreement.

glance's People

Contributors

15characterlimi avatar applehat avatar bendoerr avatar ddellspe avatar dependabot[bot] avatar dv1 avatar nivz78 avatar rytiggy avatar step-security-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glance's Issues

Add basal graph

Add graph under blood sugar graph that corresponds to the basal profile over the last few hours

Not retrieving weather from OWM

I have copied and pasted the API key from the open weather site after signing up, but no temperatures are showing up on the watch face.

Is there a particular format the "city" has to be in? For example, I am in Toronto Canada. I have tried just "Toronto", "Toronto,ca" and "Toronto, ca". None of which seem to work.

#Thanks,

API Endpoint - details in readme.

I’m not clear what needs to be entered to make this work with either xDrip+ or NightScout (which is the way I’m trying to use it). Might be worth adding this information into the readme.

Allow background gradient to be user set in the settings UI.

I have yet to have the new Versa delivered but was looking over this project and am super excited to give this a go.
One minor feature request would be to allow the user to enter their own top and bottom background color values in the settings UI.
Thanks much for this!!!

Enhacement request: glucose alerts, disabling and custom snoozing time

I love the new high/low alerting and would like to request a couple things to that functionality:

  • Allow user to disable and re-enable somehow. Use case: I just put on new sensor, for the first day I get a lot of high and low readings that aren't accurate... Today for example... On my watch, I have to hit the snooze and/or mute button (not sure what the difference is) a lot. As well, I may be in a long meeting and I know I'm running high but I don't want buzzes and vibrations bugging me all day until I can deal with it.

  • Possibly the same request as above... but have a way to set a custom snooze time length. For example, if I could choose 3 hours or even 5 hours or some such, that would alleviate issues like in bullet one.

  • Or perhaps even more fine grained settings for this such as "only alert on lows".

  • Or perhaps make it so the "mute" button really does mute the alerts until you click a little icon or something to turn alerts back on. Currently, and I haven't figured out snooze vs mute, but it seems that when I press either, within just a short amount of time again I'm getting alerted. When I'm over 200 and it's taking time to come back down, that's a lot of buzzing going on.

Anyway, just ideas here... but the gist is, sometimes my watch is buzzing at me because of known highs and I'd like to be able to just turn that off with some sort of level of control/customizablity.

Feature request: Alarm/Vibration on values lower than treshold?

Hi,

Would it be possible to have some kind of "notification" when BG value is lower than the "low treshold" value in the settings?
-Audible (using ionic's build in alarm somehow)
or even better
-Vibration in the watch itself (continuous one until you "mute/acknowledge" it)

Hope others would find this FR usable, so that it is worth while for you to perhaps implement it :)

Thanks

Setting to not alert when no heart rate detected.

Sometimes I don't wear my watch overnight while I sleep. However, when an alert happens at night, the watch will vibrate all night and be empty of battery by the morning. Perhaps it would be useful to have an optional setting that if there is no heart rate detected within, for example 30 minutes, to turn off alerts because it indicates the watch is not being worn.

No data on my versa watch

I installed my versa-fitbit according to Miguel's instructions from the spike app. I can not see the data on my watch.
I reset the watch to the factory setting and reinstalled everything. Still no data ???
I have installed the following API: http://127.0.0.1:1979
Can you help me to solve this problem?

Sorry for my english; i’m from the netherlands en my english is not very good ☺️☺️; google translate works for me......

Request: send HR/step data to XDrip (if possible)

It looks like from this closed Issue (#21) that sending HR/step data from the Ionic/Versa might be possible-- but I'm not seeing any step/HR data in my Xdrip+ from my Versa. I am using a Pixel 2 phone.

A) is this functionality possible?
B) if so, is this currently implemented? (not sure from the closed Issue)
C) does Xdrip+ need to change to support this?

Thanks!

fitbit versa suddenly no BG data

Several days ago the data from xdrip stopped showing up on my fitbit versa. It constantly shows up as 'loading' regardless of how many times I force a sync in the fitbit app, reboot the fitbit or reboot the phone. I also tried deleting the glance app from the fitbit and reinstalling, but had no luck.

The error I see from the developer menu and logs from glance are:

Uncaught (in promise) TypeError: Cannot read property 'name' of undefined'

steps and heartrate data back to xdrip

I've been looking into xdrip's api to get steps and heart rate back to xdrip but am falling short in my technical knowledge... I know we can append current heart and steps data to a local web service url using the "?steps=xxx&heart=yyy" syntax but I'm not sure how to actually code it on the fitbit side... somehow that data has to be passed back out to the companion and then that url has to be triggered... once that happens, xdrip will show the heart and steps data. Just not sure how to do all that. Do you have any experience in this?

iOS and Versa

Ok so im a total noob here but i cannot seem to get this to work on my Versa. i have followed all the steps to set up my azure site and everything is working. i can use my url to work with the simple cgm watch face but cannot get the glucose to display on Flash CGM or glance.

any advice would be appreciated.

add asap messaging, localization efforts, code style

  • Fitbit ASAP, replacing standard message class
  • Added Localization Support (so far only on Alerts) with Languages:
    • English
    • Spanish
  • Massive Codestyle pass (fitbit studio made some really hard to read indents when converting to VSCode)

Blood glucose not updating

When I get the watch face to rest, it'll load a neat cake, butt after that, it just stays there - no updates.
Samsung G8+, Fitbit Versa

Spike delta issue

The latest version of spike (3.5.0) has changed the api to make it compatible with some older pebble watches (I think this is the cause) but this is making the delta show in mg/dl instead of mmol (I think) but it only happened after the update.

Issue: Weather data doesn't update properly

I've noticed that the weather data, for some reason, doesn't update as frequently as the actual json feed suggests it should. If I open my openweathermap json api feed, in a browser URL I notice that it is often updated where the watch data is not. What's odd is that given the same update cycle, the bg data is up to date. I looked through the code and can't figure this out.

There are many times where I visit the same exact openweathermap url in my browser as what is being used in Glance and the json string returned in the browser is up to date and the data that is displayed in the Glance clockface is not updated... and will continue to lag for 20 or more minutes. What is odd is that the data from xdrip+ seems to always be as up to date was what I see on my phone xdrip app.

Something odd is going on that is not allowing Glance to update the weather data on a timely basis. I've looked at the code and both the weather feed and the xdrip feed seem to use the same type of code base so I have no idea why the weather data seems not to want to update properly.

From a minor amount of monitoring, it seems that the weather feed does ok for a couple of updates then it stops updating in a timely fashion, then after a delay of 30 minutes or so, starts back up again. rinse... repeat.

I guess the way to verify this is to bring up a openweathermap json feed in a browser and monitor its results vs what is showing in the Glance clockface... at least a couple times an hour, the clockface lags well behind what shows in the json results in the browser.

Any ideas?

BG sometimes diffs 0.1 vs xdrip value

Hello,

Noticed on several ocassions that displayed BG value on the watch shows 0.1 less than the value displayed in xdrip (mmol), for example 3.6 watch / 3.7 xdrip
Not a big deal, maybe some rounding error in the code, just wanted to let you know.

Larger BG curve display on a sidescreen

This has no priority, but would be a nice enhancement I think.
Currently, if I try to swipe the watchface to the right, I see that there's nothing to the left of the watchface, so I can't swipe. I think this unused space would be perfect for a full-screen display of the BG curve. This way, the main watchface screen gives me an overview over all values, and if I want to see the BG curve in greater detail, I swipe the watchface to the right, and see a fullscreen BG curve. What do you think?

Weather no longer working after latest update

After the latest update, the weather is no longer working on the clock face. All I see is "temp" where the temperature should be. I noticed you got rid of the open weather API key in the settings menu. Would this have something to do with it?

wallet on fitbit versa

wallet on fitbit versa:
Cant see the ‘wallet-app’ on ‘my apps’. It’s already installed on the watch. So can’t intstall a card??Please help!

how to use xdrip

Dear Ryan,
I am typ 1 diabetic and using medtronic 640g and CGM censor
I have questin for you I want tobuy fitbit versa, is this watch can be used with my CGM and insilun pump? What should I do to see my glocose levels on the watch should I buy glance? ıs the glance prgram used only at the watch and xtrip is beeing used on the phone only or are they combined programes?
Thank you very much
Best regards,

Treatments Inputting insulin and carb values from the watch face

Inputting insulin and carb values from the watch face. I've heard of others using the switch app to do this via ifttt but using the watch face would be more like the xdrip android watch face. Also I want to give you a huge thanks man! This is an awesome watch face!

pre release 1.1.0: companion diffMs calculation doesn't work on iPhone

I mentioned this already and you seemed to agree it works, but I seem to still need to manually apply this change in order to have the pre-release 1.1.0 branch code work with my iPhone, so I thought I'd mention it here. Just remove this if it's not needed.

If the diffMs calculation is done this way, it should work for both iPhone and Android:

    let date = new Date();
    let currentBgDate = new Date(data[0].date);
    let diffMs = (date.getTime() - currentBgDate); // milliseconds between now & today

Get IOB and COB working for all data sources in Glance (local treatments)

Known info:

sensor age added to local xDrip.
Need to use: http://127.0.0.1:17580/stv.json?sensor=Y

[{"_id":"a11dec8c-6afd-420b-b9c9-fb285dd405e6","device":"Tomato","dateString":"2019-01-26T11:18:37.554+0000","sysTime":"2019-01-26T11:18:37.554+0000","date":1548501517554,"sgv":219,"delta":9.544,"direction":"FortyFiveUp","noise":1,"filtered":290470,"unfiltered":290470,"rssi":100,"type":"sgv","units_hint":"mmol","sensor_status":"20\/01\/2019 19:20 (5d 16h)"}]

Question device compatibility, will glance work with Alta or Charge 2 device?

Hi,

Looking for some type of activity band for my 9 year old.
Will glance work on Alta and/or Charge 2 device?

I am currently using ionic for myself to follow her values with xdrip and it works pretty good.
However ionic/versa is way to big for her wrists, so was thinking of buying on of these bit more slimmer products. But I am not sure if this watch face will work with those.

Thanks in advance

Custom endpoint not working

This is largely a continuation of #5 but with several changes. The end result is that on Nightscout, not hosted on Heroku or Azure, I still can't get this working on my iPhone (a change from #5) and my fully updated Versa without using Spike. This is important to me since Apple has made it so Spike isn't a reliable option anymore.

Reading through the code (

if(dataSource === 'nightscout') { // Nightscout
) it looks like I should need to use this as an endpoint:

http://nightscout.lagor.io/api/v2/properties

This returns the expected JSON in a browser on the desktop and on the iPhone. However, Glance shows E404 on the screen. What else can I try?

Rapid up/down

Would it be possible to add an option in the settings to entirely disable/enable rapid rise/descent alarms?

Feature Request to default xdrip+ endpoint to http://127.0.0.1:17580/sgv.json

Wondering if you could default the xdrip+ endpoint to http://127.0.0.1:17580/sgv.json

Reason: When I go to try different watch faces and I want to come back to this one, which I use most of the time but would still like to try other faces, I have to go in and put the endpoint and weather api key back in by hand. Since most of us will use the default end point for xdrip+, it seems to make sense to just default to the... default.

On a broader note... is there a way to store or cache watch face settings so when we go back to one we previously had, it will take all our settings we had without having to redo them every time?

Error in the logs, unexpected token

Hi,

I've been using your earlier version/project, watchface which was working fairly well.
As soon as I saw this one I jumped on it straight away. Great design!

However, I am not getting any values into the watch...it just says "loading" for the BG values (mmol for me). Xdrip is correctly setup (used it with watchface as well).

Only bad thing i can see in fitbit developer menu and logs for this sideloaded application is error:

Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0

Let me know if you want any more info, I am happy to help

Thanks

Short ISO format for date

There is a new option for choosing date formats, which is nice. However, it currently just swaps month and day. Unfortunately the slash based format has always been ambiguous (this isn't a problem with the watchface, just with the format). So I think it would be nice to also have the short ISO format as an option, which is: YYYY-MM-DD . Can you add that?

scheduled Alerts

This would allow the user to be able to have a time window for their alarms to be fired

Glance on Versa

Hi! I'm struggling! I've been able to get my nightscout information to show on other cgm watch faces. I am using my Heroku Web address as the API. Is are correct?

Fix E404 showing up when you should be getting stale data.

Some users have reported getting e404 when the users settings are correct.

the error that should be reported is LOS

@cutepooh report:

Dexcom Route

  • I notice watch is not gotten a current reading
  • resync in Fitbit app (versa)
  • select Dexcom app
  • BT off 20sec/on
  • resync all and refresh Dexcom app
    -> closed everything -> reopened, didnt fix. restarted phone, repeat all
  • Fixed it by changing settings to NS, refreshing watch screen via picking weather /etc
    *then switching back to the Dexcom app.

((This has been a regular issue off and on all day. It could be an app thing, but something I noticed. The steps and so on in the Fitbit app did sync just not the glucose values.))

Setup Nightscout site using tokens

Hello:

I'm having issues setting up Nightscout as Data Source in the latest version available on the Fitbit App. The new settings allow to pick a site name and a host (Heroku or Amazon) but there's not a way to setup an access token.

A lot of people run their Nightscout sites without autentication but I urge everyone doing so to setup access tokens and not let their medical info be crawled.

Anyway: I tried adding that functionallity myself but it looks like the sources available here aren't up to date with the latest build.

Would you like some help coding that up? I could also add a Data Source for Dexcom Share.

Ángel

Settings update

My background colour won't change despite syncing and switching from purple to green. The graph for blood sugars is also not switching to my high and low settings

Vibration Alarm Adjustments

Hi,
Is it possible to create a different/stronger and repetitive vibration for BG alarms? (I'm thinking about the different and strong alarms we have on the Pebble).
Thanks.

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.