weather.xml diff to make city editor function

Greg Satz
2006-12-10
2013-05-23
  • Greg Satz
    Greg Satz
    2006-12-10

    Apply this patch to Resources/weather.xml in the application bundle to make the city editor functional again. This lets the lookup by city name to work but I couldn't figure out how to make lookups by zip code work.

    diff -c -r meteo_1-1.4.4_source/weather.xml meteo_1.4.4_source/weather.xml
    *** meteo_1-1.4.4_source/weather.xml    Wed Jul 27 00:32:14 2005
    --- meteo_1.4.4_source/weather.xml    Thu Nov 30 14:47:45 2006
    ***************
    *** 76,88 ****
                          <key>codeEnd</key>
                          <string>?</string>
                          <key>codeStart</key>
    !                     <string>. &lt;A HREF="/weather/local/</string>
                          <key>multipleMatchString</key>
                          <string>Cities (1 -</string>
                          <key>nameEnd</key>
    !                     <string>&lt;/A&gt;</string>
                          <key>nameStart</key>
    !                     <string>search_city"&gt;</string>
                          <key>parseOrder</key>
                          <array>
                              <string>code</string>
    --- 76,88 ----
                          <key>codeEnd</key>
                          <string>?</string>
                          <key>codeStart</key>
    !                     <string>.&lt;/B&gt; &lt;A HREF="/weather/local/</string>
                          <key>multipleMatchString</key>
                          <string>Cities (1 -</string>
                          <key>nameEnd</key>
    !                     <string>&lt;/B&gt;</string>
                          <key>nameStart</key>
    !                     <string>)&#59;"&gt;&lt;B&gt;</string>
                          <key>parseOrder</key>
                          <array>
                              <string>code</string>
    ***************
    *** 93,105 ****
                          <key>codeEnd</key>
                          <string>?</string>
                          <key>codeStart</key>
    !                     <string>&lt;/B&gt; &lt;A HREF="/weather/local/</string>
                          <key>multipleMatchString</key>
                          <string>Cities (1 -</string>
                          <key>nameEnd</key>
    !                     <string>&lt;/B&gt;</string>
                          <key>nameStart</key>
    !                     <string>search_city"&gt;&lt;B&gt;</string>
                          <key>parseOrder</key>
                          <array>
                              <string>code</string>
    --- 93,105 ----
                          <key>codeEnd</key>
                          <string>?</string>
                          <key>codeStart</key>
    !                     <string>. &lt;A HREF="/weather/local/</string>
                          <key>multipleMatchString</key>
                          <string>Cities (1 -</string>
                          <key>nameEnd</key>
    !                     <string>&lt;/A&gt;&lt;/B&gt;</string>
                          <key>nameStart</key>
    !                     <string>)&#59;"&gt;</string>
                          <key>parseOrder</key>
                          <array>
                              <string>code</string>
    ***************
    *** 284,290 ****
                  <key>sameAsSearchCityState</key>
                  <false/>
                  <key>searchURL</key>
    !             <string>http://www.w3.weather.com/weather/local/%@</string>
              </dict>
              <key>weather data</key>
              <dict>
    --- 284,290 ----
                  <key>sameAsSearchCityState</key>
                  <false/>
                  <key>searchURL</key>
    !             <string>http://www.weather.com/weather/local/%@</string>
              </dict>
              <key>weather data</key>
              <dict>

     
    • Monkey
      Monkey
      2006-12-23

      Thanks for the patch!  I was able to find Resources/weather.xml but unable to open it to edit it.  Will you please provide direction on how I could do this?  Is it with Terminal or some other utility or ...

      Thanks again.

       
    • diderot
      diderot
      2006-12-27

      Hi...yes, if you could provide instructions for using the patch, a lot of people would appreciate it, I'm sure.  I tried saving it as a .diff file, but couldn't figure out how to apply the patch correctly.

       
    • Moon Jihad
      Moon Jihad
      2006-12-28

      The patch got broken by the copy/paste. To make the application work, enter this in the terminal :
      sudo curl http://lns.kicks-ass.net/temp-shit/weather.xml -o /Applications/Meteorologist.app/Contents/Resources/weather.xml

      This will download and overwrite your weather.xml with the patched version.