Skip to content

Commit

Permalink
https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/32
Browse files Browse the repository at this point in the history
  • Loading branch information
baerengraben authored and baerengraben committed May 22, 2021
1 parent cb846e3 commit 6a29f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ function doIt(self) {
if (err) {
self.log.error('DNS Resolve Failed for api.srgssr.ch: ' + err.message + ' Is there an internet connection?');
self.log.error('Retrying in 10min...');
//todo: set Status of adapter to yellow
self.info.connection = false;
self.setState('info.connection', false, true);
setTimeout(doIt, 10 * 60000, self);
} else {
self.log.debug('Successfull DNS resolve for api.srgssr.ch: ' + JSON.stringify(addresses));
self.setState('info.connection', true, true);
var access_token;
//Convert ConsumerKey and ConsumerSecret to base64
let data = self.config.ConsumerKey + ":" + self.config.ConsumerSecret;
Expand Down

0 comments on commit 6a29f7d

Please sign in to comment.