GithubHelp home page GithubHelp logo

More Nightscout sources. about glance HOT 4 OPEN

Hans-Hans avatar Hans-Hans commented on July 17, 2024
More Nightscout sources.

from glance.

Comments (4)

Gelogo avatar Gelogo commented on July 17, 2024

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.

JulianGreilich avatar JulianGreilich commented on July 17, 2024

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.

JulianGreilich avatar JulianGreilich commented on July 17, 2024

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.

Gelogo avatar Gelogo commented on July 17, 2024

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)

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.