Comments (5)
Typical way to do this is to create a new endpoint:
/config.json
, and register a new endpoint handler to dump those out as a valid json
datastructure.
The in client.js
, we'll make an ajax
request to /config.json
to fetch the config json over http.
from cgm-remote-monitor.
Would be simpler to put a <script src="/config.js"></script> and have the /config.js
endpoint dump eg window.nightscoutConfig = { foo: 'bar'};
or something also. Then you can refer to nightscoutConfig
in client.js
.
from cgm-remote-monitor.
I'd rather store this stuff in mongo than force everyone to edit a configuration file. Also the alerts aren't triggered off the high/low lines now so there will be some confusion with that.
from cgm-remote-monitor.
Sorry if I am being overzealous by closing this, the amount of open issues is messing with my "ADD". ;) You are welcome to reopen it if you like.
from cgm-remote-monitor.
Makea send to close, I think the settings api will take care of this
from cgm-remote-monitor.
Related Issues (20)
- 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
- Sensor age information updated in x-Drip, but outdated in Nightscout HOT 1
- Alexa error on the first call
- Ability to view BG in clock view as mmol/l or mg/dl HOT 1
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.