Comments (4)
Hi, here probably the same the same issue.
Most of Heroku users are moving Nightscout to Railway provider due to policy changes.
If we use "Data Source: Nightscout", the app modify the domain's URL using the "Nightscout Host Site" setting, like:
- Azure:
... {"url":"https://e********i.azurewebsites.net/pebble?count=47","extraDataUrl":"https://e********i.azurewebsites.net/api/v2/properties", ...
- Heroku:
... {"url":"https://e********i.herokuapp.com/pebble?count=47","extraDataUrl":"https://e********i.herokuapp.com/api/v2/properties", ...
Here's the complete log from using "Data Source: Custom" and our URL (working from browser):
19 : 39 Line 19: companion - transfer - send() |,| 19 : 39 Line 60: companion - sendData - DataToSend: {"bloodSugars":{"bgs":[{"sgv":"120","bgdelta":0,"iob":0,"cob":0,"datetime":1664732376413,"direction":"warning","currentbg":"E404","rawbg":"","tempbasal":"","loopstatus":""},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"},{"sgv":"120"}]},"settings":{"url":"https://e********i.up.railway.app/?count=47","extraDataUrl":null,"dataSource":"custom","highThreshold":180,"lowThreshold":"80","glucoseUnits":"mgdl","disableAlert":false,"timeFormat":true,"dateFormat":"DD/MM/YYYY","tempType":"f","bgColor":"#aa2c73","bgColorTwo":"#000000","textColor":"#ffffff","dismissHighFor":"15","dismissLowFor":"10","largeGraph":true,"treatments":false,"highAlerts":false,"lowAlerts":true,"rapidRise":false,"rapidFall":false,"layoutOne":"iob","layoutTwo":"cob","layoutThree":"steps","layoutFour":"heart","enableSmallGraphPrediction":true,"loopstatus":true,"enableDOW":false,"dexcomUsername":"","dexcomPassword":"","USAVSInternational":false,"resetAlertDismissal":false,"staleData":true,"staleDataAlertAfter":25}} |,| 19 : 39 Line 59: companion - sendData - DataToSend size: 1510 bytes |,| 19 : 39 Line 212: companion - standardize - settings() |,| 19 : 39 Line 63: here reurning error |,| 19 : 39 BGS: [object Object] !data.error: false data: [object Object] bgs !== 'undefined': true |,| 19 : 39 settings {"url":"https://e********i.up.railway.app/?count=47","extraDataUrl":null,"dataSource":"custom","highThreshold":180,"lowThreshold":"80","glucoseUnits":"mgdl","disableAlert":false,"timeFormat":true,"dateFormat":"DD/MM/YYYY","tempType":"f","bgColor":"#aa2c73","bgColorTwo":"#000000","textColor":"#ffffff","dismissHighFor":"15","dismissLowFor":"10","largeGraph":true,"treatments":false,"highAlerts":false,"lowAlerts":true,"rapidRise":false,"rapidFall":false,"layoutOne":"iob","layoutTwo":"cob","layoutThree":"steps","layoutFour":"heart","enableSmallGraphPrediction":true,"loopstatus":true,"enableDOW":false,"dexcomUsername":"","dexcomPassword":"","USAVSInternational":false,"resetAlertDismissal":false,"staleData":true,"staleDataAlertAfter":25} |,| 19 : 39 extraData null |,| 19 : 39 data: {"text":"Line 38: Error with companion - fetch - get()","error":{"status":"404"},"url":"https://e********i.up.railway.app/?count=47"}} |,| 19 : 39 companion - standardize - bloodsugars() |,| 19 : 39 Line 35 ERROR companion - fetch - get() {"status":"404"} |,| 19 : 39 Line 98 companion - fetch - handleTextResponse() response.ok |,| 19 : 39 Line 16: companion - fetch - get() https://e********i.up.railway.app/?count=47 |,| 19 : 39 companion - validateHexCode - Hex code valid |,| 19 : 39 companion - validateHexCode - Hex code valid |,| 19 : 39 companion - settings - get() |,| 19 : 39 Line 70: companion - Settings changed send to watch |,| Resyncing
Thanks
from glance.
Got the same issue that I am not able to connect the watchface to Nightscout hosted on Railway.
Is there a way to do it in the "custom" data source or would it be possible to add Railway as an option as well?
Thanks!
from glance.
Hey Gelogo,
just wanted to let you know that I got the railway hosted option to work by using the following custom source:
https://≤your-project-name>.railway.app/pebble
from glance.
Hey Gelogo, just wanted to let you know that I got the railway hosted option to work by using the following custom source: https://≤your-project-name>.railway.app/pebble
Thanks i didn't noticed it.
Tested and worked.
from glance.
Related Issues (20)
- Always On watchface? HOT 3
- No longer working with tomato HOT 3
- Glance not showing any values when pulling from xDrip which is in turn pulling from BYO Dexcom app HOT 2
- Feature Request - Separate thresholds for the graph and alarms
- Dexcom sensor error displays as zero, instead of as stale data
- E404 error HOT 1
- E500 error dexcom login on sense HOT 4
- Sense oxygen data on watchface?
- Missing trend direction HOT 1
- Fitbit Update: Glance stopped working for EU users HOT 1
- Stale data
- Dexcom stopped pulling data on 08/15/22
- FitBit Sence 2 data not pulling from Dexcom Database
- 404 and 401 errors HOT 9
- Fitbit Versa 4 Always-On is only 24-hr HOT 1
- E404 issue
- Feature request: Seconds in time
- Better support for custom Nightscout URLs HOT 3
- Fitbit Glance face cannot be displayed as Always-on
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 glance.