www.homeseer.com    
 

Go Back   HomeSeer Message Board > 3rd Party Plug-Ins/Scripts > Plug-ins by Author > Click Here for List of Author Forums > CFGuy Plug-Ins/Scripts > WeatherXML

WeatherXML Discussion area for WeatherXML

Reply
 
Thread Tools Display Modes
  #1  
Old May 16th, 2018, 11:02 AM
Jobee Jobee is offline
Seer Deluxe
 
Join Date: Apr 2016
Location: Texas
Posts: 376
Replacement for missing Forecast

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)

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>
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 info from the last good download, which in my case is
HTML Code:
<date>7:24 AM CDT</date>
Let me know if there is already a way to do this..

Thanks,

Michael
Attached Files
File Type: xml WUForecast1-2018-05-16-08-03-01.xml (195.8 KB, 2 views)
__________________
HS3Pro on Win2012R2
Aeotec, Cooper, Cree, GE/Jasco, Intermatic, LIFX, Fortrezz, OSRAM, RCS, Trane, Zooz
BLBackup, BLGData, BLRussound, BLSpeech, HSTouch, InvisaLink, HSBuddy, IFTTT, NetCAM, PHLocation, Pushover 3P, Random, UltraLighting3, weatherXML, ZigBee, Z-Wave
Reply With Quote
  #2  
Old May 16th, 2018, 11:59 AM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,295
Take a look at this thread

https://forums.homeseer.com/showthread.php?t=195806
Reply With Quote
  #3  
Old May 17th, 2018, 11:23 AM
Jobee Jobee is offline
Seer Deluxe
 
Join Date: Apr 2016
Location: Texas
Posts: 376
Thanks Jeff. Looks like our existing free keys will continue to work for now, so unless there is an easy fix, I guess I will just need to live with the missing data.

Michael
Reply With Quote
  #4  
Old May 17th, 2018, 01:50 PM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,295
Thanks for posting the shots of the files. Now that I can see that the data is empty as well. I can test for a valid date and if the date is blank, skip the import. A forecast from an hour or two ago would be better than a blank forecast.
Would that work better for you?
Reply With Quote
  #5  
Old May 17th, 2018, 05:08 PM
cowsr4eating cowsr4eating is offline
Seer Plus
 
Join Date: May 2013
Location: USA
Posts: 96
Jeff,

That works for me. I appreciate all your hard work for an awesome, free plugin!

Guy
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forecast Icons missing pcp UltraWeatherBug HSPI 23 October 22nd, 2012 01:58 PM
Missing Forecast Days HeyYou WeatherXML 7 May 8th, 2012 07:29 PM
ALC Replacement rileydogmi Lighting & Primary Technology Discussion 1 April 7th, 2010 09:55 PM
V2 and gif replacement langenet HS2 / HSPRO 6 January 26th, 2009 11:22 PM
hd replacement jackpod HomeTroller™ 7 February 4th, 2008 11:28 PM


All times are GMT -4. The time now is 08:56 PM.


Copyright HomeSeer Technologies, LLC