Announcement

Collapse
No announcement yet.

Canadian Weather Script Discussion Thread

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Canadian Weather Script Discussion Thread

    This is the discussion thread for the "Canadian Weather Script" located here.
    http://forums.homeseer.com/showthrea...236#post671236

    It has just been modified to support HS2 properly as well as a modification to utilize remote speaker clients.

    Enjoy,

    Steven

    #2
    u speak of zip files for the icons, but where can I find them?

    Comment


      #3
      ok, i think i got most if not all from their site.

      The temp says -10 for W3, but it's looking for an image called -10.gif. I don't see that as being correct? Can you shed some light?

      THanks,
      Derek

      Comment


        #4
        NeverEnough,

        Only -10 in Ottawa? I'm impressed, every time I travel there it is generally much colder than here in Toronto.
        The -10.gif that you are referring to is a combination of temps that you may find here in the forums (search for icons).

        I will be posting up a new build of the script that fixes a few minor glitches here and there. At the same time I will put up a copy of the icons that I use, as well as the temperature ones.

        Steven

        Comment


          #5
          Icon Location

          Originally posted by NeverEnough
          u speak of zip files for the icons, but where can I find them?
          I have updated the main page to also include the icons in zip format.
          http://board.homeseer.com/showthread...nadian+weather

          Steven

          Comment


            #6
            Thanks!

            I am not getting notifications of new posts, I would have responded earlier.

            Comment


              #7
              Originally posted by NeverEnough
              Thanks!

              I am not getting notifications of new posts, I would have responded earlier.
              No Problem !

              Comment


                #8
                having issues with w13 and w18

                Hi
                I am running your ver 2.1 Canadian Weather Script and the two thing that are not display is w13 and w 18.
                the problem is with w13 nothing is displayed and never updates, the problem with w 18 it saids "Brampton Weather Last Observed at: Toronto Pearson Int'l Airport 21 May 2006 11:00 PM EDT"
                when I have the setting for winnipeg "mb-38_metric_e.html"
                can you help me

                Comment


                  #9
                  Originally posted by rkato
                  Hi
                  I am running your ver 2.1 Canadian Weather Script and the two thing that are not display is w13 and w 18.
                  the problem is with w13 nothing is displayed and never updates, the problem with w 18 it saids "Brampton Weather Last Observed at: Toronto Pearson Int'l Airport 21 May 2006 11:00 PM EDT"
                  when I have the setting for winnipeg "mb-38_metric_e.html"
                  can you help me
                  RKato

                  Locate the following lines in the script file.

                  'Const LOCATION = "Winnipeg"
                  'Const LOCATION_CODE = "mb-38_metric_e.html"
                  'Const FORECAST_START_STRING_TAG = "Winnipeg:"
                  'Const TIMEZONE = "CST"

                  Note that these have a single quote in front of them, please ensure that they are removed for all 4 lines. More importantly, check to ensure that the 4 lines that reference Brampton have been modified and the single quotes added to them.
                  Failing that, send me a copy of your .txt file and I will review it further.

                  I believe that W13 - Normal Mean has been abandoned by Environment Canada.

                  Let me know how it goes

                  Steven

                  Comment


                    #10

                    Comment


                      #11
                      Roger,

                      I just spoke to Steven on the phone, wanted me to let you know he's gone camping for the weekend, and he'll be back next week. He tried to get to it today before he left, but got swamped.

                      -Mike

                      Comment


                        #12
                        Hi Mike, I just got back from camping. The weather... was fantastic!
                        Thanks for keeping me posted.

                        Comment


                          #13
                          Originally posted by rogerous
                          Hi Mike, I just got back from camping. The weather... was fantastic!
                          Thanks for keeping me posted.
                          Rogerous,

                          Looks like you made it home just in time. I ran your info and unfortunately found all devices to update correctly showing Rain, Rain and more Rain. I have put out build 2.02 as it had minor changes.
                          Try that build and let know, failing that we can turn on "Weather_Debug" and see what comes back in the logs. It is fairly intense, so don't leave it left on if you want to be able to review your logs.
                          I have also added in your City info, so search for Ottawa and activate it.

                          Next time I am in Ottawa I may have to drop by, have a buddy in Orleans, so I am familiar with the area somewhat.

                          Steven

                          Comment


                            #14
                            Originally posted by rkato
                            Hi
                            I am running your ver 2.1 Canadian Weather Script and the two thing that are not display is w13 and w 18.
                            the problem is with w13 nothing is displayed and never updates, the problem with w 18 it saids "Brampton Weather Last Observed at: Toronto Pearson Int'l Airport 21 May 2006 11:00 PM EDT"
                            when I have the setting for winnipeg "mb-38_metric_e.html"
                            can you help me
                            RKato,

                            How have you made out, was out camping for the weekend, as Mike had mentioned.
                            I tested the 2.02 build using the Winnipeg info and found it to work properly. Rogerous may want to come visit as your weather is much better than Ottawa's this week.
                            Please let me know how you make out.
                            Failing that we can turn on "Weather_Debug" and see what comes back in the logs. It is fairly intense, so don't leave it left on if you want to be able to review your logs.

                            Steven

                            Comment


                              #15
                              Steven,

                              Please feel free to drop by at anytime. Yes we are getting a lot of rain lately and looking at the horizon it seems we are going to get some more. Oh well...after rain comes sunshine!

                              I upgraded to build 2.02 and here are results:

                              Device w18 (Last Updated) is now working ok. I noticed that I had set the time zone to "EST" instead of "EDT" on build 2.01...oops
                              Device w15 (Yesterday High) and w16 (Yesterday Low) are still showing "UNKNOWN" states

                              Now in build 2.02 when HS speaks for example the "weather forecast"...there are no pauses between words or lines and the . (dots) are pronounced.

                              Here is the Ottawa forecast in build 2.02: (doesn't sound natural)

                              Ottawa Forecast:
                              Today:Cloudywith60percentchanceofshowers.High25.U Vindex5ormoderate.
                              Tonight:Cloudyperiodswith60percentchanceofshowers.Low16.
                              Thursday:Cloudywithsunnyperiods.60percentchanceofshowerswith theriskofathunderstorm.High24.
                              Friday:Cloudywith60percentchanceofshowers.Low14.High23.
                              Saturday:Cloudy.Low12.High25.
                              Sunday:Showers.Low17.High27.

                              Here is the Ottawa forecast in build 2.01: (sounds natural)

                              Ottawa Forecast:
                              Today: Cloudy with 60 percent chance of showers. High 25. U V index 5 or moderate.
                              Tonight: Cloudy periods with 60 percent chance of showers. Low 16.
                              Thursday: Cloudy with sunny periods. 60 percent chance of showers with the risk of a thunderstorm. High 24.
                              Friday: Cloudy with 60 percent chance of showers. Low 14. High 23.
                              Saturday: Cloudy. Low 12. High 25.
                              Sunday: Showers. Low 17. High 27.


                              Here is the last log in Debug mode for build 2.02:

                              2006-06-28 13:51:22 - Info - Event Trigger "Canadian Weather Report"
                              2006-06-28 13:51:22 - Info - Running script in background: Canada_Weather_V2_02.txt
                              2006-06-28 13:51:22 - Weather Debug - Retrieving weather from environment Canada for Ottawa from http://www.weatheroffice.ec.gc.ca/ci..._metric_e.html
                              2006-06-28 13:51:22 - Weather Debug - Year is 2006
                              2006-06-28 13:51:23 - Weather Debug - GetURL for strUnStripped Ottawa from http://www.weatheroffice.ec.gc.ca/ci..._metric_e.html
                              2006-06-28 13:51:23 - Weather Debug - GetURL for strStripped Ottawa from http://www.weatheroffice.ec.gc.ca/ci..._metric_e.html
                              2006-06-28 13:51:23 - Weather Debug - GetURL for strTextStripped Ottawa from http://text.www.weatheroffice.ec.gc...._metric_e.html
                              2006-06-28 13:51:23 - Weather Debug - Weather Icon 3224
                              2006-06-28 13:51:23 - Weather Debug - Current Start Position:604 Last Updated: 632 Weather Pos: 705 Temp Pos: 792
                              2006-06-28 13:51:23 - Weather Debug - Pressure Pos: 875 Viz Pos: 973 Humidity Pos: 1051
                              2006-06-28 13:51:23 - Weather Debug - Dewpoint Pos: 1199 Humidex Pos: 1126 Windchill Pos: 0 Wind Pos: 1279
                              2006-06-28 13:51:23 - Weather Debug - Current End Position:1407
                              2006-06-28 13:51:23 - Weather Debug - Yesterday Start: 1407 Yesterday High Pos: 1456 Yesterday Low Pos: 1539 Yesterday Precip Pos: 1645 Yesterday End Pos: 1765
                              2006-06-28 13:51:23 - Weather Debug - Normals Start Pos: 1765 Normal High Pos: 1821 Normal Low Pos: 1902 Normal Mean Pos: Normal End Pos: 2021
                              2006-06-28 13:51:23 - Weather Debug - Forecast Start Pos: 4711 Forecast Print Pos: 4776 Forecast End Pos: 5705
                              2006-06-28 13:51:23 - Weather Debug - Graphic Forecast Pos: 5879 Graphic Forecast End Pos: 8459
                              2006-06-28 13:51:23 - Weather Debug - Warning Pos: 21 0 0 Advisory Pos: 4711 0
                              2006-06-28 13:51:23 - Weather Debug - Weather Warning Email / Post
                              2006-06-28 13:51:23 - Weather Debug - 0 0 0
                              2006-06-28 13:51:23 - Weather Debug - Weather Warnings in Effect: None
                              2006-06-28 13:51:23 - Weather Debug - Weather Update Time
                              2006-06-28 13:51:23 - Weather Debug - Position: 632 Length: 76
                              2006-06-28 13:51:23 - Weather Debug - Observedat:OttawaMacdonald-CartierInt'lAirport28June20061:00PMEDT
                              2006-06-28 13:51:23 - Weather Debug - Current Weather
                              2006-06-28 13:51:23 - Weather Debug - Position: 708 Length: 84
                              2006-06-28 13:51:23 - Weather Debug - Cloudy
                              2006-06-28 13:51:23 - Weather Debug - Position: 3220 Length: 6
                              2006-06-28 13:51:23 - Weather Debug - 10.gif
                              2006-06-28 13:51:23 - Weather Debug - Current Temperature
                              2006-06-28 13:51:23 - Weather Debug - Position: 803 Length: 72
                              2006-06-28 13:51:23 - Weather Debug - 24degC
                              2006-06-28 13:51:23 - Weather Debug - Temp: 24 Hex: FF9900
                              2006-06-28 13:51:23 - Weather Debug - Short Temp Length 2 Temp String: 24
                              2006-06-28 13:51:23 - Weather Debug - Current Pressure
                              2006-06-28 13:51:23 - Weather Debug - Position: 893 Length: 80
                              2006-06-28 13:51:23 - Weather Debug - 101.5kPamdash
                              2006-06-28 13:51:23 - Weather Debug - Current Visibility
                              2006-06-28 13:51:23 - Weather Debug - Position: 983 Length: 68
                              2006-06-28 13:51:23 - Weather Debug - 24km
                              2006-06-28 13:51:23 - Weather Debug - Current Wind
                              2006-06-28 13:51:23 - Weather Debug - Position: 1283 Length: 124
                              2006-06-28 13:51:23 - Weather Debug - SW5kmh
                              2006-06-28 13:51:23 - Weather Debug - Position: 1 Length: 3
                              2006-06-28 13:51:23 - Weather Debug - SW5
                              2006-06-28 13:51:23 - Weather Debug - Direction string length 13
                              2006-06-28 13:51:23 - Weather Debug - Expanded Wind Direction: South West 5kilomEast trEast South at per hour
                              2006-06-28 13:51:23 - Weather Debug - Temp: 24, Wind: SW5 therefore Humidex
                              2006-06-28 13:51:23 - Weather Debug - Current Humidity
                              2006-06-28 13:51:23 - Weather Debug - Position: 1059 Length: 67
                              2006-06-28 13:51:23 - Weather Debug - 78%
                              2006-06-28 13:51:23 - Weather Debug - Current Humidex
                              2006-06-28 13:51:23 - Weather Debug - Position: 1133 Length: 66
                              2006-06-28 13:51:23 - Weather Debug - 32
                              2006-06-28 13:51:23 - Weather Debug - Current Dewpoint
                              2006-06-28 13:51:23 - Weather Debug - Position: 1207 Length: 72
                              2006-06-28 13:51:23 - Weather Debug - 20degC
                              2006-06-28 13:51:23 - Weather Debug - Temp: 20 Hex: FFFF00
                              2006-06-28 13:51:23 - Weather Debug - Yesterday High
                              2006-06-28 13:51:23 - Weather Debug - Position: 1465 Length: 74
                              2006-06-28 13:51:23 - Weather Debug - 27.2degC
                              2006-06-28 13:51:23 - Weather Debug - Yesterday Low
                              2006-06-28 13:51:23 - Weather Debug - Position: 1548 Length: 97
                              2006-06-28 13:51:23 - Weather Debug - 19.0degC
                              2006-06-28 13:51:23 - Weather Debug - Yesterday Precip
                              2006-06-28 13:51:23 - Weather Debug - Position: 1662 Length: 97
                              2006-06-28 13:51:23 - Weather Debug - 31.8mm
                              2006-06-28 13:51:23 - Weather Debug - Normal High
                              2006-06-28 13:51:23 - Weather Debug - Position: 1830 Length: 72
                              2006-06-28 13:51:23 - Weather Debug - 25degC
                              2006-06-28 13:51:23 - Weather Debug - Temp: 25 Hex: FF8000
                              2006-06-28 13:51:23 - Weather Debug - Normal Low
                              2006-06-28 13:51:23 - Weather Debug - Position: 1911 Length: 110
                              2006-06-28 13:51:23 - Weather Debug - 14degC
                              2006-06-28 13:51:23 - Weather Debug - Temp: 14 Hex: 66FF00
                              2006-06-28 13:51:23 - Weather Debug - Forecast
                              2006-06-28 13:51:23 - Weather Debug - Position: 4776 Length: 927
                              2006-06-28 13:51:23 - Weather Debug - 2006TodayCloudywith60percentchanceofshowers.High25.UVindex5o rmoderate.TonightCloudyperiodswith60percentchanceofshowers.L ow16.ThursdayCloudywithsunnyperiods.60percentchanceofshowers withtheriskofathunderstorm.High24.FridayCloudywith60percentc hanceofshowers.Low14.High23.SaturdayCloudy.Low12.High25.Sund ayShowers.Low17.High27.
                              2006-06-28 13:51:23 - WEATHER DEBUG - END OF SCRIPT:

                              Comment

                              Working...
                              X