1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[EWPorta Weather]

Discussion in 'Add-on Releases [Archive]' started by Cory Booth, Feb 10, 2011.

  1. Cory Booth

    Cory Booth Well-Known Member

    Weather Module for your xenPorta site.
    Demo (http://aquiacreek.com)

    1. This is based entirely on code found here:
    2. This reads feeds from NOAA (if you are outside of NOAAs area, sorry)
    3. This reports weather for a set position, not based on the user's location.
    4. This is designed as a EWPorta module and will not (without modification) run inside the Forum or elsewhere.

    Upload the weather directory to your forum's root.
    Upload the library/EWPorta/Block/Weather.php to that location on your server.
    Ensure /weather is writeable
    Import the Weather.XML as a EWPorta Module

    you will need two items from NOAA for setup:
    1. Your Zone:
    Go to http://www.weather.gov/alerts-beta/
    Click on County
    Get the six digit code
    2. Your Map:
    Go to www.weather.gov
    Put your city, state in the search box and press Search
    Scroll down to the "Additional Forecasts & Info" on the page displayed
    Click on Printable Forecast
    copy the URL
    Insert those two items into the module settings and set the other areas as needed.

    Important notes...
    Module setting PATH
    This is set to allow users who have moved their forum from / to /community or /forums/ or whatever.
    Please ensure you set this properly BEGINING and ENDING with a /
    If you have not moved, leave it as /

    There is an issue with the MAP field once set. You will not longer be able to export the XML.
    Simply load module settings, remove the map url, save, and now you can export the XML.
    Final thoughts....
    This is my very first module and I am sure there may be bugs. I have tried my best to make it compatible with everyone's installation, forgive me if it doesn't work. For troubleshooting - you may see "There was an error" and nothing more.

    Set debug to true in config.php to see the real error and it may help.
    If you find yourself with an error, it is most likely due to the path. You should be able to execute the xfReport, xfWeather files independantly of the forum if you simply want to check for errors. They will have missing icons and such, but should function.

    Attached Files:

    Dodgeboard, yavuz and Peggy like this.
  2. kingston

    kingston Well-Known Member

    Do you have a mobile skin on your website or is that a placeholder?
  3. Cory Booth

    Cory Booth Well-Known Member

    I was using the mobile skin here, but it caused my users issues with switching back and forth, so I took it down.
    How hard is it to realize you are using the mobile skin vs. the desktop skin? I guess really hard....

    I have been working on: aquiacreek.com/mobile.php...

    But hopefully soon, xF will have one

    I have also have put a bug in my previous mobile app developer's ear :

Share This Page