Announcement

Collapse
No announcement yet.

#nightForecast0# variable not recognized

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #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 Files

    #2
    I'm in training for work for the next two days. I will try to take a look this weekend.
    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, 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, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


      #3
      Jeff, thanks for everything you do and this amazing plugin!

      Phil

      Comment


        #4
        For the forecast day 1-9 you don't use the numbers.
        Use the variables just as they are in the example column.
        --
        Jeff Farmer
        HS 3, HSPhone
        My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
        Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, 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, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

        Comment


          #5
          I did, the variable is "#nightForecast#". When it translates it, your code is adding the zero. See screenshot of how I have it.

          Comment


            #6
            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 Files
            --
            Jeff Farmer
            HS 3, HSPhone
            My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
            Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, 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, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

            Comment


              #7
              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

              Comment


                #8
                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.
                --
                Jeff Farmer
                HS 3, HSPhone
                My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
                Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, 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, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

                Comment


                  #9
                  Great news! I will standby, when you get to it - you get to it. No rush

                  Comment


                    #10
                    Hi, was this ever resolved? I have the same issue.

                    Comment

                    Working...
                    X