Modify

Ticket #9657 (closed Patch - Bug Fix: fixed)

Opened 2 years ago

Last modified 2 years ago

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

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

Change History

Changed 2 years ago by vitaminjoe@…

Patch to fix ENVCANParser.pm

comment:1 Changed 2 years ago by knight

  • Status changed from new to assigned

comment:2 Changed 2 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 2 years ago by Joe Ripley

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

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 2 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

View

Add a 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.