Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#10231 closed Patch - Bug Fix (fixed) won't show list of cities during adding new location

Reported by: j.novak@… Owned by: beirdo
Priority: minor Milestone:
Component: Plugin - MythWeather Version: 0.24.1
Severity: medium Keywords:
Cc: Ticket locked: no

Description won't show list of cities during adding new location. The reason is that changed format of page which script parsed. You can check it with ./ -l liberec - It won't return any location.

I found that there is no way how to update script to parse homepage correctly, so I updated script to use JSON API at to find cities as home page does.

It adds dependency on JSON perl module.

Note: During work on code I found that code uses -D parameter for debugging, but command line parser don't accept it. I updated it too.

Attachments (1) (3.1 KB) - added by j.novak@… 4 years ago.
Patch to

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by j.novak@…

Patch to

comment:1 Changed 4 years ago by Github

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

Fix yrnoxml weather script

Seems has changed their site around a bit, in particular the searching. This now should work properly again.

Fixes #10231.

Based on the patch in the ticket, from j.novak@… but reformatted and reworked a bit.

Branch: master Changeset: 75bde2a1bea691c9b1374f2378ecb60bad1d79e7

comment:2 Changed 4 years ago by beirdo

  • Milestone changed from 0.25 to 0.24.2

Also backported to fixes-0.24

comment:3 Changed 4 years ago by stuartm

  • Milestone 0.24.2 deleted

Milestone 0.24.2 deleted

Add Comment

Modify Ticket

as closed The owner will remain beirdo.
The resolution will be deleted. Next status will be 'new'.

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

Note: See TracTickets for help on using tickets.