Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Nightscout sources. #187

Open
Hans-Hans opened this issue Jul 29, 2022 · 4 comments
Open

More Nightscout sources. #187

Hans-Hans opened this issue Jul 29, 2022 · 4 comments

Comments

@Hans-Hans
Copy link

Hi is it possible to ad more sources..

https://ns.10be.de/de is a hoster witch hosts nightscout for a couple of euro.

Or may it possible to enter the full web address also would be great.

Thanks in advance

@Gelogo
Copy link

Gelogo commented Oct 2, 2022

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

@JulianGreilich
Copy link

JulianGreilich commented Oct 8, 2022

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!

@JulianGreilich
Copy link

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

@Gelogo
Copy link

Gelogo commented Oct 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants