Disabled masa's weather station for now
This commit is contained in:
parent
de4d35d213
commit
3a38d8e589
|
@ -107,7 +107,7 @@ class Weather extends BasePlugin {
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var promise = new Promise(function (resolve, reject) {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
that.getTemperatures(owmCityIds),
|
that.getTemperatures(owmCityIds),
|
||||||
that.getPenaTemperatures()
|
// that.getPenaTemperatures()
|
||||||
]).then(function (results) {
|
]).then(function (results) {
|
||||||
var resultString = ''
|
var resultString = ''
|
||||||
// OWM
|
// OWM
|
||||||
|
@ -119,10 +119,10 @@ class Weather extends BasePlugin {
|
||||||
resultString += '' + city + ' (' + temp + ' °C, ' + that.iconCodeToText[code] + '), '
|
resultString += '' + city + ' (' + temp + ' °C, ' + that.iconCodeToText[code] + '), '
|
||||||
})
|
})
|
||||||
|
|
||||||
if (results[1].length > 0) {
|
/*if (results[1].length > 0) {
|
||||||
var temp = Number(results[1][0].temp).toFixed(1)
|
var temp = Number(results[1][0].temp).toFixed(1)
|
||||||
resultString += 'Aura (' + temp + ' °C)'
|
resultString += 'Aura (' + temp + ' °C)'
|
||||||
}
|
}*/
|
||||||
|
|
||||||
resolve(resultString)
|
resolve(resultString)
|
||||||
}, (str) => reject(str))
|
}, (str) => reject(str))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user