Patch: Extend number of days in Weather forecast widget

Rating: 
5
Your rating: None Average: 5 (5 votes)

Extends the number of days in the weather forecast widget in eventsview in landscape mode from the default 5 to a number determined by the screen aspect ratio. For example 9 on 16:9 screens (5 * (16/9) = 8.889 = ~9) or 7 on 4:3 screens (5 * (4/3) = 6.667 = ~7).

Requires SFOS 2.0.0.10 or newer.

Sources on GitHub: https://github.com/pichlo/sailfish-weather-widget-patch

Note: From SFOS 3.0.3.x onwards, the number of days is determined by the screen size (Jolla's change, not mine), not only the orientation. That means that on larger screens the number may be increased even in landscape. Please let me know if it a problem. I can only check it on Jolla 1 (5 days in portrait, 9 in landscape) and Xperia X (6 and 10 days, respectively).

Screenshots: 

Keywords:

Changelog: 

0.0.2-3
- Update for SFOS 3.3.0.x.

0.0.2-2
- Update for SFOS 3.0.3.x.

0.0.2-1
- The number of icons in landscape is now calculated dynamically, based on the screen aspect ratio.

0.0.1-5
- Update for SFOS 3.0.1.x.

0.0.1-4
- Update for SFOS 3.0.0.x.
- Increase the number of days in landscape from 8 to 9. It matches closer the screen aspect ratio of 16:9 (5 * 16/9 = 8.889).

0.0.1-3
- Update for SFOS 2.1.0.x.

0.0.1-2
- Update dependencies to satisfy SFOS 2.0.2.x.

0.0.1-1
- First build.

Comments

Markkyboy's picture

Works on my Jolla1

N77's picture

Hi. I installed 3.3.0.14 on XA2 and lost the functionality. The patch is not available in the Patchmanager. If I try to install it from Storeman (or downoad) nothing happens. Do we need to wait for update or I did something wrong? Thanks.

pichlo's picture

The patch is not in the Patchmanager catalogue, only in Warehouse. I am an old skool guy, I don't switch from what works just because there is something "new" available ;-)

The reason it disappeared is because of its dependency on a certain version of Weather. the new Weather that came with 3.3.0 included the functionality by default, so I am not sure it would really make sense to keep maintaining this patch. Please let me know if you would like me to.

N77's picture

Thanks for the quick response. I use XA2 and without your patch the weather widget displays 5 day forcast only. As per Jolla (3.0.2): Sailfish shows 7-day weather forecast (instead of normal 5-day) on larger screens.I guess XA2 not large enough.

Before 3.3 update I had it installed on my XA2 showing under Settings, Patchmanager, Installed patches, and working with 6 day forcast. After 3.3 update its gone. I go Storeman, Repositories, pichlo, Patch; Extended number...., since I had it there and try to install with no success. Also downloaded from openrepos, no luck installing. Haven't updated my X yet and still see 6 day forecast.

It would be great if you can find time to look into it. Thanks again!

pichlo's picture

OK, try now. My Jolla is currently indisposed so I could only test it on my Xperia X but the changes are next to zero so it should work.

N77's picture

Now works on X and XA2. Thanks!

nerip's picture

Hi it doesn't seem to work on 3.0.1.14...

Historyscholar's picture

thanks!awesome !

explit's picture

For me its not working with 3.0.1.x

pichlo's picture

Updated. Sorry about the delay.

nobodyinperson's picture

Very nice patch!