maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Wind speed and direction on lockscreen (https://talk.maemo.org/showthread.php?t=100244)

Markkyboy 2018-03-12 11:28

Wind speed and direction on lockscreen
 
2 Attachment(s)
As usual, I've been tinkering, this time with the Weather app (sailfish-weather). I wanted to see the weather description as well as high and low temperatures on the lockscreen, this I have achieved, it isn't pretty (yet) but it works. I did this by copying /usr/lib/qt5/aml/Sailfish/Weather/WeatherBanner.qml to /usr/share/lipstick-jolla-home-qt5/lockscreen/* and then editing that file to get what I wanted.

I also would like to see wind speed and wind direction on the lockscreen, but for some reason I cannot get this to display/show. I thought I'd be able to achieve this in the same or similar fashion to getting temperature, weather image and weather description to show, but it seems I am wrong.

There is a file called /usr/lib/qt5/qml/Sailfish/Weather/WeatherDetailsHeader.qml which contains the models for windspeed and wind direction, I copied this to the lockscreen folder and have edited it until the cows came home....but I cannot get windspeed/direction to display. Obviously there are other files pertaining to wind speed and direction; Model.qml and Model.js.....I tried copying these files to lockscreen, but again, no amount of 'fiddling' helped.

The second image is of course a mock-up of what i'd like to see.

Any ideas guys?

nieldk 2018-03-12 16:56

Re: Sailfish weather on lockscreen
 
Tried copying that file, but nothing shows up on lock screen ?
SFOS-x 2.1.4

Markkyboy 2018-03-12 20:24

Re: Sailfish weather on lockscreen
 
Quote:

Originally Posted by nieldk (Post 1542288)
Tried copying that file, but nothing shows up on lock screen ?
SFOS-x 2.1.4

With WeatherBanner.qml entered into the lockscreen folder, you need to make an entry in Clock.qml;

Code:

WeatherBanner {
    id: weatherBanner
}


Ancelad 2018-03-12 20:44

Re: Sailfish weather on lockscreen
 
Huh, you can explore my analog clock patch

Markkyboy 2018-03-12 20:57

Re: Sailfish weather on lockscreen
 
Quote:

Originally Posted by Ancelad (Post 1542300)
Huh, you can explore my analog clock patch

I wasn't aware that your patch shows windspeed/direction, I'll check it out.....I assume you mean lockscreen weather patch, not clock?

Ancelad 2018-03-12 21:05

Re: Sailfish weather on lockscreen
 
Clock from pm2 web-catalog. It doesn't show things you want, but probably will help.

olf 2018-03-13 11:05

Re: Sailfish weather on lockscreen
 
Quote:

Originally Posted by Ancelad (Post 1542300)
Huh, you can explore my analog clock patch

I.e. this one: "Lockscreen Analog Clock"

Quote:

Originally Posted by Markkyboy (Post 1542301)
I wasn't aware that your patch shows windspeed/direction, I'll check it out.....

It has the ability to display the weather forecast on the lockscreen (for Meecast); for "Jolla / Foreca Weather", you also need to install and apply "Jolla-Weather additional patch for Lockscreen Analog Clock".

@Markkyboy, except for some details (e.g. windspeed and its direction), IMHO it basically does what you want, already. I considered suggesting yesterday (but then refrained from doing so), that you may contribute to "Lockscreen Analog Clock". I am definitely willing to test any outcome of this with Meecast (instead of "Jolla / Foreca Weather").

Cheers & happy coding

rfa 2018-03-13 11:49

Re: Sailfish weather on lockscreen
 
Is this editable such that I can change it to show dawn & dusk (in place of windspeed / direction)?

Quote:

Originally Posted by olf (Post 1542325)
I.e. this one: "Lockscreen Analog Clock"


It has the ability to display the weather forecast on the lockscreen (for Meecast); for "Jolla / Foreca Weather", you also need to install and apply "Jolla-Weather additional patch for Lockscreen Analog Clock".

@Markkyboy, except for some details (e.g. windspeed and its direction), IMHO it basically does what you want, already. I considered suggesting yesterday (but then refrained from doing so), that you may contribute to "Lockscreen Analog Clock". I am definitely willing to test any outcome of this with Meecast (instead of "Jolla / Foreca Weather").

Cheers & happy coding


pichlo 2018-03-13 12:56

Re: Wind speed and direction on lockscreen
 
Off-topic, but just out of curiosity, why would people insist on top-posting like e.g. rfa in post #8 above?

It's annoying enough in emails I have to deal with every day at work but there I can at least accept people being clueless/careless/lazy (delete as appropriate) and just typing wherever Holy Microsoft has put the cursor. But to reply to a TMO post and still top post means going out of one's way to do it on purpose, since TMO is civil enough to place your cursor below the quoted text where it belongs.

I am not asking people to change their ways, that would be too much to ask. Just a simple rationale would do. As I say, out of curiosity.

rfa 2018-03-13 19:25

Re: Wind speed and direction on lockscreen
 
If you're referring to my placement of text in relation to a question it's because I have a question about something detailed in the text.

I don't put it after the quote as you would need to re-read the quote.

Is this what you mean? I'm sorry if I've broken any rules


All times are GMT. The time now is 18:46.

vBulletin® Version 3.8.8