Initially, I used the ecweather module to display weather data. However, I was not happy with the way it worked and the way it displayed the data and it was too much work to get it to my liking. For quite some time I have been using some PHP code in a node to display the text-only weather forecast for Environment Canada using their RSS feed.
If you look at my weather page, you'll see it consists of three parts: the current weather data, watches and warnings, and the five-day forecast.
First you need to obtain the proper RSS feed by selecting the location of your choice on the EC website. Then you need to add that to Drupal's aggregator, for example
Then you create a node with the following code. It basically extracts the last rows from the
All three parts are basically part of the same large chunk of PHP code on the node but I split it for easier digesting.
The reference in
aggregator_item.fid refers to the feed ID. In the admin screen you can see the ID in the link for the RSS feed.