Toledo, Ohio area weather information, pulled from National Weather Service XML, JSON, and HTML files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

ToledoWX (Weather)

ToledoWX displays Toledo, Ohio weather information that is pulled from National Weather Serivce XML files, JSON files, plain text files, and HTML pages.

Working example:

WX or "weather" in Morse code telegraph shorthand (per Wikipedia)

Not to be confused with Perl's Wx library interface to the wxWidgets cross-platform GUI toolkit.

ToledoWX could be used for other areas of the country by pointing to the appropriate XML, JSON, and HTML files.

Update October 2017 : - In late September 2017, I made changes and additions to create a Flash Briefing Skill that gets read by Alexa on Amazon's Echo home smart speaker. A new script creates a summary that's culls information from other ToledoWX pages, such as current conditions at Toledo Express Airport, the seven-day forecast, the area forecast discussion, and any important statements that exist.

An HTML version of this briefing can be accessed from the homepage. The link is For Alexa/Echo, I created a JSON file, found at Alexa can also read an RSS version. In cron (batch), my new Alexa script executes every 15 minutes, but Alexa accesses the feed once an hour.

Here are my notes about creating the Flash Briefing, which was certified by Amazon. To access the skill, a user would use the web or the Alexa mobile app and search the skills list for "Toledo Weather". Then the user would enable the "TOL Wx" Flash Briefing skill.

Update August 2014 : - Added support for Yo. With the Yo app installed on my phone, I can receive notifications about special weather events from my ToledoWX app. On the server, ToledoWX uses my Yo Perl module found at When certain weather conditions exist, such as heavy rainfall in the area based upon ForecastIO's minute-by-minute forecast data, then the ToledoWX server code accesses Yo's API, and then Yo sends out the "Yo" notification to the mobile Yo app for people who are subscribed to Toledo Weather. Text can be included with the Yo notification that describes the purpose of the Yo.

Update July 2013 : - Added new scripts and templates to support processing data from which provides an easy API to access their JSON data. This required installing the JSON Perl module located at and also using my new ForecastIO Perl module located The ForecastIO module uses my DateTimeFormatter module located at


Perl scripts execute in cron at regular intervals. The scripts parse multiple NWS XML files and HTML pages, and the scripts download NWS images. The static HTML files are created on the local server.

Required Modules

The following pure Perl modules were downloaded and included within this app's lib directory on the server.

  • HTML::Template
  • XML::TreePP
  • XML::FeedPP
  • YAML::Tiny
  • JSON::PP

jQuery Mobile

ToledoWX Perl scripts create jQuery Mobile HTML pages that allow users to read the information easily on all devices. jQuery Mobile enables the pages to display well on older versions of IE too.

With JavaScript disabled, displays simple, functional HTML.

Error Log File

A "log" directory was created under app's home directory structure.

In the log directory, an empty file was created called error.txt.

Sometimes, the NWS websites are unresponsive. After a timeouw, the script writes an error message to the log file, and the script exits.

This program went into use in June 2013. Sometimes, the XML files generated by the National Weather Service are formatted differently than expected within the Perl scripts. An error is logged.

May need to save a copy of the XML file that cannot be parsed to see what was changed to cause the error.

Image Files

Under the Web server's document home directory, I created an "images" directory to store downloaded NWS images to be displayed in the HTML files created by the Perl scripts.

Again, because of the unresponsiveness of NWS websites at times, I felt it was better to store the images locally.

Directory Structures

After cloning the repo and setting up the app, the following folders should exist.




Download and parse XML files pertaining to the counties surrounding Lucas County (Toledo).

If a warning is issued for a neighboring county, it will not appear on the home page of this app.

If a watch is issued that inclues a neighboring county, but not Lucas County, then this information will also not appear on this app's home page.

Three National Weather Service offices provide coverage for the Toledo area.

  • Cleveland NWS counties covered:
    • Lucas (Toledo)
    • Wood
    • Ottawa
  • Northern Indiana NWS counties covered:
    • Fulton
    • Henry
  • Detroit/Pontiac NWS counties covered
    • Monroe
    • Lenawee