Hi Jeff,
Having an issue and hoping there is a work around or a new feature can be added.
I have a Weather Speak that I schedule to speak each day at 7 AM.
The download of Forecast is scheduled once per hour at 3 minutes after the hour.
Lately with WU the Forecast.xml has been empty more times than not, so my Weather Speak just does the hard-coded parts:
Good morning. Today is Wednesday. Tonight. Thursday. Thursday night. Sunset today is at 8 o 7 PM. Have a great Wednesday.
(08-03-01 xml file attached)
vs when there is data:
So the question is... is there a way, or can we have, a way to put a message in when data is blank?
I see, in the settings page, a field you can type in what you want displayed or spoken if there is no data from the weather service (including the use of variables like last update time). Then when the schedule runs and pulls the file from the weather service and it is blank, it uses what you put in the settings field instead.
So in my case, since the 0803 file was empty, I would have it something like:
"No Forecast data as of" <8 o 3 am> or use the <date> info from the last good download, which in my case is
Let me know if there is already a way to do this..
Thanks,
Michael
Having an issue and hoping there is a work around or a new feature can be added.
I have a Weather Speak that I schedule to speak each day at 7 AM.
The download of Forecast is scheduled once per hour at 3 minutes after the hour.
Lately with WU the Forecast.xml has been empty more times than not, so my Weather Speak just does the hard-coded parts:
Good morning. Today is Wednesday. Tonight. Thursday. Thursday night. Sunset today is at 8 o 7 PM. Have a great Wednesday.
(08-03-01 xml file attached)
HTML Code:
<forecast> <txt_forecast> <date></date> <forecastdays> <forecastday> <period>0</period> <icon>clear</icon> <icon_url>http://icons.wxug.com/i/c/k/clear.gif</icon_url> <title></title> <fcttext><![CDATA[]]></fcttext> <fcttext_metric><![CDATA[]]></fcttext_metric> <pop>0</pop> </forecastday> <forecastday>
vs when there is data:
HTML Code:
<forecast> <txt_forecast> <date>7:24 AM CDT</date> <forecastdays> <forecastday> <period>0</period> <icon>clear</icon> <icon_url>http://icons.wxug.com/i/c/k/clear.gif</icon_url> <title>Wednesday</title> <fcttext><![CDATA[A good deal of sunshine. Record high temperatures expected. High 96F. Winds light and variable.]]></fcttext> <fcttext_metric><![CDATA[]]></fcttext_metric> <pop>0</pop> </forecastday>
I see, in the settings page, a field you can type in what you want displayed or spoken if there is no data from the weather service (including the use of variables like last update time). Then when the schedule runs and pulls the file from the weather service and it is blank, it uses what you put in the settings field instead.
So in my case, since the 0803 file was empty, I would have it something like:
"No Forecast data as of" <8 o 3 am> or use the <date> info from the last good download, which in my case is
HTML Code:
<date>7:24 AM CDT</date>
Thanks,
Michael
Comment