mirror of
https://gitlab.silvrtree.co.uk/martind2000/old-silvrgit.git
synced 2025-01-10 20:55:07 +00:00
updated weather
This commit is contained in:
parent
e2463d19bc
commit
d664262899
@ -251,10 +251,9 @@ module.exports = {
|
||||
if (err) throw err;
|
||||
|
||||
j.currently = data.currently.summary;
|
||||
j.today = data.daily[0].summary;
|
||||
j.today = data.daily.data[0].summary;
|
||||
j.later = data.daily.summary;
|
||||
j.alerts = data.alerts || {};
|
||||
|
||||
todayCache.data.weather = j;
|
||||
});
|
||||
|
||||
|
@ -29,7 +29,7 @@ module.exports = {
|
||||
console.log(util.inspect(data));
|
||||
saveData(data);
|
||||
j.currently = data.currently.summary;
|
||||
j.today = data.daily[0].summary;
|
||||
j.today = data.daily.data[0].summary;
|
||||
j.later = data.daily.summary;
|
||||
j.alerts = data.alerts || {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user