Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9657 closed Patch - Bug Fix (fixed)

Update ENVCANParser.pm due to Environment Canada Changes

Reported by: vitaminjoe@… Owned by: beirdo
Priority: minor Milestone: 0.24.1
Component: Plugin - MythWeather Version: Master Head
Severity: low Keywords: mythweather, envcan, parser
Cc: Ticket locked: no

Description

Environment Canada changed their RSS feeds today in regards to current Temperature and Dewpoint.

They used to report these temperatures using ASCII octal code 260. They now use proper HTML:

°

The attached patch fixes the parser to accommodate this change.

Attachments (1)

9657-ticket.patch (1.5 KB) - added by vitaminjoe@… 3 years ago.
Patch to fix ENVCANParser.pm

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by vitaminjoe@…

Patch to fix ENVCANParser.pm

comment:1 Changed 3 years ago by knight

  • Status changed from new to assigned

comment:2 Changed 3 years ago by Joe Ripley <vitaminjoe@…>

Please note that this script has not been modified since 2008... so this fix can most likely be safely back-ported to the various -fixes branches as well.

Thanks!

--
Joe Ripley
vitaminjoe@…

comment:3 Changed 3 years ago by Joe Ripley

  • Milestone changed from unknown to 0.25
  • Resolution set to fixed
  • Status changed from assigned to closed

Change ENVCAN parser to use &deg; rather than \260

Fixes #9657

Seems Environment Canada changed their data format for reporting temperatures.

Signed-off-by: Gavin Hurlbut <ghurlbut@…>

Changeset: c68c7aed28d2c4e382bc1f36a6cf66d59ca4a2e7

comment:4 Changed 3 years ago by Joe Ripley

  • Milestone changed from 0.25 to 0.24.1

Change ENVCAN parser to use &deg; rather than \260

Fixes #9657

Seems Environment Canada changed their data format for reporting temperatures.

Signed-off-by: Gavin Hurlbut <ghurlbut@…>
(cherry picked from commit c68c7aed28d2c4e382bc1f36a6cf66d59ca4a2e7)

Changeset: 40fc4546aee84c8efd2c1e0af837c934cb376512

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.