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 June 13th, 2018, 10:46 AM
pciccone pciccone is offline
Seer
 
Join Date: Jan 2016
Location: Georgia
Posts: 59
#nightForecast0# variable not recognized

Hi Jeff, question for you.... When I attempt to use the #nightForecast# in a speak device, inside of the forecast element, it stays as "#nightForecast0#" and never converts to text. I tried it under "Today" and under "Tonight". Any trick to getting the forecast variable to work for night-time? I am using NOAA and the #dayForecast# seems to work fine. It's only the night.
Attached Images
  
Reply With Quote
  #2  
Old June 13th, 2018, 11:25 AM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,381
I'm in training for work for the next two days. I will try to take a look this weekend.
__________________
--
Jeff Farmer
HS 3.0.0.312, HSPhone
My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
Other Plugins In Use: APCUPSD, EasyTrigger, FBitSeer, HSTouch Server, Kinect, PHLocation, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Panasonic BDT-110, Panasonic BDT-210 x2
Reply With Quote
  #3  
Old June 13th, 2018, 08:44 PM
pciccone pciccone is offline
Seer
 
Join Date: Jan 2016
Location: Georgia
Posts: 59
Jeff, thanks for everything you do and this amazing plugin!

Phil
Reply With Quote
  #4  
Old June 22nd, 2018, 06:32 PM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,381
For the forecast day 1-9 you don't use the numbers.
Use the variables just as they are in the example column.
Reply With Quote
  #5  
Old June 22nd, 2018, 06:47 PM
pciccone pciccone is offline
Seer
 
Join Date: Jan 2016
Location: Georgia
Posts: 59
I did, the variable is "#nightForecast#". When it translates it, your code is adding the zero. See screenshot of how I have it.
Reply With Quote
  #6  
Old June 22nd, 2018, 07:20 PM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,381
I setup a test device and selected the Forecast Day 1-9 and entered the variables as in the first image below.

I clicked on the Speak button and it spoke what is in the second image.

I did post an updated version today. You might try it to see if it makes a difference.
Attached Images
  
Reply With Quote
  #7  
Old June 25th, 2018, 10:55 AM
pciccone pciccone is offline
Seer
 
Join Date: Jan 2016
Location: Georgia
Posts: 59
I updaed to the latest, and #nightForecast# variable speaks/texts still as #nightForecast0# in the output (I did not add zero). Since you have it working, I presume some other setting is interfering with it that I have set and you don't. Do debug logs help?

Code:
Jun-25 10:49:40 AM	 	weatherXML	Check if this address exists: Location 1 Forecast Day 9
Jun-25 10:49:40 AM	 	weatherXML	Check if this address exists: Location 1 Forecast Day 8
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 1
Jun-25 10:49:40 AM	 	weatherXML	Get text for 01
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 1
Jun-25 10:49:40 AM	 	weatherXML	Get text for 01
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 30
Jun-25 10:49:40 AM	 	weatherXML	Get text for 30
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 29
Jun-25 10:49:40 AM	 	weatherXML	Get text for 29
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 28
Jun-25 10:49:40 AM	 	weatherXML	Get text for 28
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 27
Jun-25 10:49:40 AM	 	weatherXML	Get text for 27
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 26
Jun-25 10:49:40 AM	 	weatherXML	Get text for 26
Jun-25 10:49:40 AM	 	weatherXML Error	replaceWVariables Forecast: Value cannot be null. Parameter name: replacement
Jun-25 10:49:40 AM	 	weatherXML	Use 25
Jun-25 10:49:40 AM	 	weatherXML	Get text for 25
Jun-25 10:49:40 AM	 	weatherXML	Use 25
Jun-25 10:49:40 AM	 	weatherXML	Get text for 25
Jun-25 10:49:40 AM	 	weatherXML	SetIOMulti Text: , Value: 1, refID: 504
Jun-25 10:49:40 AM	 	Device Control	Device: Weather Outside Weather - PM Report to Text (1) by/from: CAPI Control Handler
Reply With Quote
  #8  
Old June 26th, 2018, 10:04 AM
CFGuy's Avatar
CFGuy CFGuy is offline
Have A Blessed Day
 
Join Date: Jan 2001
Location: Basehor KS
Posts: 5,381
Yeah, that helped. Pretty sure I know now where the error is happening.
I'll add some error logging to narrow it down some more. I have a really busy week so I'll plan on posting a new version this Sunday.
Reply With Quote
  #9  
Old June 26th, 2018, 10:08 AM
pciccone pciccone is offline
Seer
 
Join Date: Jan 2016
Location: Georgia
Posts: 59
Great news! I will standby, when you get to it - you get to it. No rush
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
mcsSprinklersS->Object variable or With block variable not set ctwilliams mcsSprinklers 2 October 30th, 2009 06:44 PM
Error VR Install: Object variable or With block variable not set. gelessor HSTV 2 November 17th, 2007 11:16 PM
WeatherXML on line 730 Object variable or With block variable not set johnnyt MCS Temperature 3 December 9th, 2005 10:30 PM
Getting Script error: Object variable or With block variable not set techbluecat WapSeer (3P) 3 November 3rd, 2003 10:05 AM


All times are GMT -4. The time now is 07:38 AM.


Copyright HomeSeer Technologies, LLC