Comments (2)
Howdy Greg!
numbers 1 & 2 magic numbers
Re, numbers 1 & 2: keep in mind that some of this is "frankencode" and some was just done as quick as possible to get "something" to display. Specifically, when I wrote the lib/pebble.js
stuff, I had access to stale data and wanted to ensure "something." The number, 6, 10, "forty minutes" times 5, etc, are all legacy. Feel free to be aggressive here, there is no magic, and no sane reason for the inconsistencies you mentioned, just hacky code :-). The actual watch js only sends one message to the pebble with just the last reading. There's no control logic here, just left-overs from very quick development.
Number 3
I'm hesitant to weigh in on this. The dexcom reports the trend, and that's what we've been using. There's no loop, the if (foo in bar)
idiom just checks to against two "data models": one version of the dexcom-uploader
that reports the trend to mongo, and one that does not. The check happens to help avoid errors.
Number 4 dexcom magic readings
Yes, Dexcom itself reserves a number of "special glucose readings" which are not glucose readings, but other signals.
The DIRECTION
hash at the top of the file is one copy of these mappings.
Here's another list in python https://github.com/compbrain/dexcom_reader/blob/master/constants.py#L78
Number 5 pebble view
Yes, I think everyone could get on board with this. The pebble js should just prep and display some data, ideally as thin as possible.
You might get a kick out of looking over #7, which has a few objectives laid out, and some progress towards them, and may help yield some additional folk-lore/insight/perspective.
from cgm-remote-monitor.
Closing this for now. Check out https://waffle.io/nightscout/cgm-remote-monitor, and re-open as needed.
from cgm-remote-monitor.
Related Issues (20)
- Acces error with IP6 and IP4... HOT 6
- Filter on Swagger Docs not working HOT 3
- mongodb connection issue HOT 6
- Double Entries in nightscout, when deleting and reentering Treatments in AAPS HOT 8
- SAGE: Allow defining max sensor age HOT 2
- Date translation problem HOT 2
- Day to day report: Careportal events with a duration (Temporary target, Exercise, Note) are not displayed past midnight
- Nightscout is crashing at start after mongo db was dropped and made again because of clients with readable tokens.
- Web app stopped to show glucose data
- Authentication via https://ACCESS_TOKEN@HOST/api/v1/entries.json seems to no longer work
- Snooze isn´t working properly. HOT 3
- "no healthy upstream" on NorthFlank HOT 4
- Basal Incorrectly showing as 0 HOT 2
- Data loss in using AndroidAPS-Nightscout, due to Nightscout boot without database connection HOT 1
- Return API v1 entries through API v3 history API
- Trend Arrow doesn't load for up/down on Clock and Main page
- Discord not working
- Northflank build of master fails on wrong npm version in package.json HOT 2
- 丢失Profile
- Connect plugin failing to pull glooko data / Alternate methods to import omnipod 5 data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgm-remote-monitor.