Page view counter

Weather Module (Oliver Hine)

Last post 07-25-2006 5:39 PM by srajama. 6 replies.

Sort Posts:

  • Weather Module (Oliver Hine)

    05-02-2006, 11:09 AM
    • Loading...
    • RybakT
    • Joined on 07-06-2005, 3:20 PM
    • Tampa, FL
    • Posts 43
    • Points 215

    I'm running Oliver Hine's weather module v1.3.1.3 on two sites.  One is my personal site rybak.tv and the other is an intranet site for the company I work for.  The problem I'm having is that the module running on the intranet is not updating.  I've checked all my firewalls, added weather.com to the exceptions list and nothing seems to work.  If I change the location of the weather station it will pull the current data but again will not update.  My personal site which is running the same version updates automatically.

    Any help and/or suggestions would be greatly appriciated.  Thank you.

  • Re: Weather Module (Oliver Hine)

    05-03-2006, 4:52 AM
    • Loading...
    • AllegrettoA
    • Joined on 03-01-2005, 11:10 PM
    • Posts 45
    • Points 225

    Depending on your needs, you might be able to use a simple news feed for your weather.  My users do not need to add their own weather module so I use the News Reader module to display weather from the National Weather Service.  Here's how:

    1.  Creath weather.gov.xls file and upload to your portal.  Contents are:

    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="yes"/>
    <!-- This is used for
    www.weather.gov xml data -->
    <xsl:param name="TITLE"/>
    <xsl:template match="current_observation ">
      <table class="Normal">
      <tr>
      <td>
        <a href="
    http://www.erh.noaa.gov/ifps/MapClick.php?CityName=Wilmington&amp;state=NC&amp;site=ILM" title="Forecast" target="_blank">
     <img src="{icon_url_base}{icon_url_name}" width="32" height="32" border="0"></img>
        </a>
      </td>
      <td align="center" valign="middle" title="{observation_time}">
        <xsl:value-of select="weather"/>
        <br><xsl:value-of select="temp_f"/> &#176;F</br>
      </td>
      </tr>
      </table>
    </xsl:template>
    </xsl:stylesheet>

    2.  Add News Reader module to your page.  Point news location to your local weather (for example:  http://www.weather.gov/data/current_obs/KILM.xml) and point style sheet to your weather.gov.xls file.

    Inside a firewall, you will have to add weather.gov to the safe list so users can view the weather icon.  Use this link to find your local weather xml data:  http://www.weather.gov/data/current_obs/

  • Re: Weather Module (Oliver Hine)

    05-03-2006, 8:44 AM
    • Loading...
    • ErikVB
    • Joined on 12-10-2004, 1:14 PM
    • Netherlands
    • Posts 1,433
    • Points 7,163
    RybakT:

    I'm running Oliver Hine's weather module v1.3.1.3 on two sites.  One is my personal site rybak.tv and the other is an intranet site for the company I work for.  The problem I'm having is that the module running on the intranet is not updating.  I've checked all my firewalls, added weather.com to the exceptions list and nothing seems to work.  If I change the location of the weather station it will pull the current data but again will not update.  My personal site which is running the same version updates automatically.

    Any help and/or suggestions would be greatly appriciated.  Thank you.

    That weather module only runs in full trust, otherwise it can't access a remote webservice. You can change the trust setting in the web.config

    cheers,

    erik

    Erik van Ballegoij, The Netherlands
  • Re: Weather Module (Oliver Hine)

    05-03-2006, 9:32 AM
    • Loading...
    • RybakT
    • Joined on 07-06-2005, 3:20 PM
    • Tampa, FL
    • Posts 43
    • Points 215

    </httpHandlers>
    <!-- set code access security trust level - this is generally set in the machine.config>
    <trust level="Medium" originUrl=http://localhost/.* />

    Is this where I would have to set the trust level to Full in the web.config?

     

  • Re: Weather Module (Oliver Hine)

    05-08-2006, 5:54 AM
    • Loading...
    • ErikVB
    • Joined on 12-10-2004, 1:14 PM
    • Netherlands
    • Posts 1,433
    • Points 7,163

    sorry for the late reply.. busy week ;)

    yes, just replace the word Medium with the word Full, and be sure to remove the commenting around the element.

    cheers,

    erik

    Erik van Ballegoij, The Netherlands
  • Re: Weather Module (Oliver Hine)

    05-09-2006, 10:17 AM
    • Loading...
    • iwonder
    • Joined on 05-05-2003, 4:08 PM
    • Mission, KS
    • Posts 1,699
    • Points 8,492

    I agree, and have been doing just that type of thing for a couple of years.  I recently posted a custom xsl that is an example of how to use the google weather service using the news feed module.  Depending on your location, you can use many free services of similar weather info.

    See this post on the DNN forum site: http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/48/threadid/28182/scope/posts/Default.aspx

    There are many variations and possibilities.

    I use Oliver's module, as well, it's just that sometimes you can use alternative to achieve similar results.  I know Oliver to be a friendly and easy to work with guy, so if there is any problem with his module, just contact him, he'll get you by the issue.

    Just a note, that if your issue is related to trust code access security, you'll run into the same issue using the news module, it's just part of the ASP.Net v1.1 security improvements. :)

     

    iwonder
    Mission, KS - USA
  • Re: Weather Module (Oliver Hine)

    07-25-2006, 5:39 PM
    • Loading...
    • srajama
    • Joined on 07-13-2006, 11:45 AM
    • Posts 2
    • Points 10

    We have changed the trust level from Medium to Full.  It doesn't seem to work. Even when weather.com temperature changes our site still has the old temperature.  we cleared the cache in the client machine and still no changes. Any help would be appreciated.

     

Page 1 of 1 (7 items)