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

SRG Message: The Service is temporarily unavailable #24

Closed
baerengraben opened this issue Jan 18, 2021 · 6 comments
Closed

SRG Message: The Service is temporarily unavailable #24

baerengraben opened this issue Jan 18, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@baerengraben
Copy link
Owner

It may happen that SRG takes the service out of service for a short time (probably for maintenance). Then the following error will be reported by SRG:

2021-01-18 04:33:33.411 - error: swiss-weather-api.0 (12557) Response has announced an error: The Service is temporarily unavailable

Currently, only the date can be used to see how up-to-date the data is. But we should include this info as a status object in ioBroker. Idea:
If weather info is older than the "poll interval", a status "data outdated" should be set to true.

@UncleSamSwiss
Copy link

UncleSamSwiss commented Mar 14, 2021

I guess the API is unavailable again. At least I'm not getting any data since yesterday.

There are two other things you can (and probably should) do:

  • The state info.connection should always report whether the connection to the service is ok or not. Like this, the icon next to the adapter instance will be yellow instead of green.
  • every state has also a quality information (simply called q) you may set all states' quality to a meaningful value (see developer documentation for more details)

@baerengraben
Copy link
Owner Author

Thanks for these tips :)

...And yes, currently the service does not provide any data right now :(

@Matt77CHE
Copy link

Still no data.... this makes this adapter unfortunately unusable, as SRG-SSR is once again unreliable

@baerengraben
Copy link
Owner Author

baerengraben commented May 20, 2021

Please use the new Adapter Version 0.9.0. This Version uses the new SRF Weather API (https://developer.srgssr.ch/apis/srf-weather).

As I can see today, the old weather API (https://developer.srgssr.ch/apis/weather-api-commercial) is not available (again). But the new SRF Weather API (with Freemium subscription) is working. So i guess it is best to change to Version > 0.9.0 as quick as possible... With the new API you even get more Datapoints.

Please see also: https://forum.iobroker.net/topic/28772/test-adapter-swiss-weather-api-v0-1-x/33

@baerengraben
Copy link
Owner Author

Partly resolved with version 0.9.1.

  • Adapter Info State is handled now.
  • q Infos for each datapoint still not available

@baerengraben baerengraben added the enhancement New feature or request label Jun 7, 2021
@baerengraben
Copy link
Owner Author

instead of generating a q for each data point, with Version 0.9.4 I added the following data points, which inform about the status of the adapter:

  • swiss-weather-api.0.info.connection
  • swiss-weather-api.0.info.lastrun

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

No branches or pull requests

3 participants