weather: allow to get forecast temp and forecast icon

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7f5529c067
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-20 (Wed, 20 Mar 2019)

Origin message was:
------------------
- weather: allow to get forecast temp and forecast icon

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-03-20 22:19:17 +01:00
parent e58152cc4e
commit 0ddb3f8851
2 changed files with 9 additions and 1 deletions

View File

@@ -125,8 +125,8 @@ bool CWeather::GetWeatherDetails()
if (found > 0)
{
act_temp = DataValues["currently"].get("temperature", "").asFloat();
timezone = DataValues["timezone"].asString();
act_temp = DataValues["currently"].get("temperature", "").asFloat();
act_wicon = DataValues["currently"].get("icon", "").asString();
if (act_wicon.empty())
act_wicon = "unknown.png";