WXBasic Plug-in for Boltwire
Description
This is a simple plugin that consists of a single php file. After the plugin is installed, you can add to an existing page, or create a new page with the function to call it, and the plugin will do the rest.Data is obtained from WunderGround.com by way of their RSS feeds, and is parsed by the plugin to output a complete page.
Download
Available from the Boltwire site in the Extensions sectionOutput:
Output is basic, but fairly complete.Includes:
- Date of Update
- Current Conditions
- Short Forecast
- Optional Doppler Radar map
Installation:
Installation is fairly easy.- Download the wxbasic.php script and copy to your ../farms/plugins directory.
- Using plugins as the admin, activate the plugin.
- Using a browser, go to the http://www.wunderground.com page and input the city and state of the location you want to display on your site. Look what the resulting city name and state is.
- Either create a new page on your site, or use an existing one and add the function to call the plugin:
Usage:
[(wxbasic state=ST city='CITY' [image=radare1_anim.gif])]
| state | Required | 2 character State Abrev |
| city | Required | city name as you can see it on wunderground. If it is a multipart city name, you must use single quotes to enclose the city |
| image | Optional | radar image filename (don't include path) of the radar image you want to display |
| wxdebug=1 | Optional | If used, outputs a lot of debug info |
Examples:
[(wxbasic state=az city='mesa' image=radare1_anim.gif )]
Doppler Radar Images
To find the correct doppler radar image, go to the following website:Look at the grid below and select the image that represents your area.
Look at the chart below and get the filename that matches the grid above. You will use that filename in the image argument.
| radara1_anim.gif | radara2_anim.gif | radara3_anim.gif | radara4_anim.gif | radara5_anim.gif |
| radarb1_anim.gif | radarb2_anim.gif | radarb3_anim.gif | radarb4_anim.gif | radarb5_anim.gif |
| radarc1_anim.gif | radarc2_anim.gif | radarc3_anim.gif | radarc4_anim.gif | radarc5_anim.gif |
| radard1_anim.gif | radard2_anim.gif | radard3_anim.gif | radard4_anim.gif | radard5_anim.gif |
Choose the correct image for your area, and use that filename in the image argument.
Live Examples:
- Mesa AZ using code:
[(wxbasic state=az city='mesa' image=radard1_anim.gif )]
- Phoenix AZ using code:
[(wxbasic state=az city='phoenix' image=radard1_anim.gif )]
- Tucson AZ using code:
[(wxbasic state=az city='tucson' image=radard1_anim.gif )]
- Flagstaff AZ using code:
[(wxbasic state=az city='flagstaff' image=radard1_anim.gif )]
Upcoming Features:
- Add cache support to eliminate excessive requests to offsite resources for busy sites.
- Add curl support.

