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)

Ancelad 2018-08-27 14:09

Re: Wind speed and direction on lockscreen
 
Try to replace
Code:

property int value: windDirectionIcon.rotation
to
Code:

property int value: model.windDirection

Markkyboy 2018-08-27 14:46

Re: Wind speed and direction on lockscreen
 
Quote:

Originally Posted by Ancelad (Post 1547629)
Try to replace
Code:

property int value: windDirectionIcon.rotation
to
Code:

property int value: model.windDirection

That looks like it fixed it!, I'm certain that I'd already tried that, but clearly I didn't!, nicely done Ancelad. I guess we can apply the same with windspeed to complete the ensemble. So we can have weather image, weather destination & temp + windspeed & wind direction, now to make the look presentable on the lockscreen.

I have also been playing UV, Sunrise and Sunset, prompted by discussion on tjc regarding more usable weather data; https://together.jolla.com/question/...r-application/

Thanks again!, I can't believe the remedy was so simple, but i had the same thing when attempting to make windDirection as text, I got so close, but input from others is always welcomed and of course, it helps when others are interested in particular apps. :cool:

Ancelad 2018-08-27 17:19

Re: Wind speed and direction on lockscreen
 
I think you should share all concepts once together to see what you want instead one-feature requests because probably they will not work together at all.

Markkyboy 2018-08-30 14:43

Re: Wind speed and direction on lockscreen
 
Quote:

Originally Posted by Ancelad (Post 1547638)
I think you should share all concepts once together to see what you want instead one-feature requests because probably they will not work together at all.

Agreed.....when I get them working satisfactorily, if at all. I hear what you're saying, there is limited room on the current weather page and not all info is useful.

My main reason for asking the folks at Jolla, was so I didn't waste my time trying to make things work that are not available or not included because of the package type Jolla paid Foreca for.

Most of what I do (poorly) is for self gratification, unless I happen to find something that works reliably (wind direction text), then I like to share, just as I believe you do. My reward is simply making something happen that didn't happen before, I think of it as a reward system, part of my encouragement to keep learning about the in-depth world of coding.

While I think of it, the 'if/else' statement system I adopted for Wind Direction Text patch I wondered if there is there another way of calling on that data, by that I mean, something less clunky, less 'amateurish', something smarter than 'if/else'...?

Ancelad 2018-08-30 18:01

Re: Wind speed and direction on lockscreen
 
If/else can be replaced by ?/:, but it is the same thing.

Amboss 2018-08-31 11:37

Re: Wind speed and direction on lockscreen
 
In some languages there is a select/case syntax. Don't know, if that's available here.


All times are GMT. The time now is 04:26.

vBulletin® Version 3.8.8