StephenBlackWasAlreadyTaken / NightWatch

A native android Nightscout client with alerts and google wear integration
GNU General Public License v3.0
92 stars 164 forks source link

No Data From Nightscout - Heroku #110

Open GHNS opened 6 years ago

GHNS commented 6 years ago

When using Nightscout site as the only data source, I am not getting any data shown in the app or in the widget. My nightscout site is hosted by Heroku; the only thing I set-up in the app was the URL of the site (and not any other info like mongo URL etc. like in other apps).

So my questions are:

  1. Is it even possible to just get any data from the Heroku site?
  2. Is there any more I can configure than just the URL?
  3. How do I get any logs/infos about what goes wrong?

I tried Version 2.0.4_2 (11/12/2016) as well as a fresh compilation from the studio3-branch.

GHNS commented 6 years ago

Ok, I found at least an answer for 1.: Yes, it is. Somehow, the variable AUTH_DEFAULT_ROLES was not set correctly (it was 'readable' but I Heroku put a newline on the variable field which I could not remove, so the NightScout site was still secured by my API secret. I deleted the variable and recreated it). It is now 'readable' again and I see data. Great!

However: I would like to switch the AUTH_DEFAULT_ROLES to be 'denied' again and still use NightWatch. Is it possible to consider this as a new feature? (I am a professional C# developer (no web-related experience though) and could test/debug/maybe implement it but for the latter I need some hints where to start)