mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Fix: check if temperature is defined (0°)
This commit is contained in:
parent
8010e6220d
commit
93c07b2b1e
@ -296,7 +296,7 @@ Module.register("currentweather",{
|
|||||||
*/
|
*/
|
||||||
processWeather: function(data) {
|
processWeather: function(data) {
|
||||||
|
|
||||||
if (!data || !data.main || !data.main.temp) {
|
if (!data || !data.main || typeof data.main.temp === 'undefined') {
|
||||||
// Did not receive usable new data.
|
// Did not receive usable new data.
|
||||||
// Maybe this needs a better check?
|
// Maybe this needs a better check?
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user