XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Oct 18日 06:59

All times are UTC - 8 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Var updating
PostPosted: 2017年 Feb 16日 18:20 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
Hi,

Sorry if I'm asking an obvious question for many people but as I didn't find any help/wiki on xwidget and new to skinning it, I've no alternative...

I'm making a weather widget, yes.. I know.. just another one but this one should be really design and handy hey.. hey.. hey... So, I have a var bound to accuweathercore, returning ${updateMinutesAgo with an !UpdateWeather onclick.

The issue is that var displays the lastupdate time but when I click on it, I don't know for sure if the update process is done because the var value isn't updated : i.e, the lastupdate time stays the same.

Any idea why ?


Thanks.


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 00:20 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
Depends on what update value/tag you use. If you use the last local update tag the time will change. If instead you use the last refresh on server then the value shows that time.
I agree that a small popup notification will be useful like the app's one when you press update.

For any further information about XWidget you need to check this forum and the various sections that are created for this reason.
viewforum.php?f=1

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 07:08 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
Using :
- ${lastRefreshTime} in biding core/format core data gives the Hour:MiNutes of the last manual update (or the launching time of the widget). Unfortunately there isn't any formatting allowed as the result is something like xx:xx. Only 'mns' can be added at the end as 'h:mn' doesn't display well..

- ${updateMinutesAgo} returns a 2 digit number I'm still trying to figure out as it doesn't rely to the previous tag : used together, ${lastRefreshTime} gives me an instantaneous time when ${updateMinutesAgo} gives me a growing number... It is odd because upon launching the widget, that var returns me a number greater than 1 or less. The war isn't reset to zero after an aupdate call when it resets at some point. So.. Is it a bug, I don't know but the label is misleading !

- ${updateEpochTime} I just don't know what this one stands for as it gives me a never changing 10digit number..


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 07:25 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
Yes I agree that the missing 00:00 format for some upload time tags it's not good. Personally to avoid it I use only the local update time tag for my widgets. We have already reported it to the Dev as the request to add 12h format to these values. We will need to wait and check the final version of XWidget v2.0 that is under development and see if the dev will fix it..

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 12:06 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
Of which 'local update time' are talking about ? If I'm not mistaken, I only saw 3 vars about update


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 14:19 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
marcusus wrote:
Of which 'local update time' are talking about ? If I'm not mistaken, I only saw 3 vars about update

I mean the ${lastRefreshTime} tag - last update time on local. This it shows fine with 00:00 format

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 14:31 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
AH... ok, I thought you were talking about something else ;.)

Did you figure out about the two other ones ?


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 14:41 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
As I saw and you noticed too they show in 0:00 format but in the wrong way (23:50 shows as 23:5, so this is a bug) and that's why I only use the above tag code

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 15:40 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
I didn't notice any way to execute lines of code otside the events onclick, onmouse, etc... is there a way ? If so, running a function using that var and system data should do the trick, shouldn't it ?


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 17日 15:49 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
What do you mean..? You can use the ''Functions'' (last) tab fields selecting the tags from there OR create a java script code for the same or for more advanced functions.

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 20日 13:17 
Offline

Joined: 2017年 Feb 15日 03:46
Posts: 16
you seem to have way more knowledge than me on this software...

So, I tried to use slidepanel but ended up wasting my time as I just couldn't make it work. I even took a peak at animated weather I found on deviantart but didn't understand anything at all.

Do you have any sort of HowTo ? I can also upload here my actual work : the last thing to implement is that slidepanel.

Sorry to bother you with this, your help would be greatly appreciated...


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 21日 01:54 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
Please press package in the Designer and attach here the .xwp to check it..

About animated weather it's even easier because are the animated png series images that make the difference.
Which widget have you checked...?

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 24日 04:10 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
@marcusus I accidentaly deleted your last comment trying to reply you. Sorry about that

Quote:
creating the animated icons isn't the issue, they are some work but it is something I can manage..

The sliding panel is another story, I just have no success in making it work ! The basic idea would be the main part, the topmost, to be a little less wide and upon activating the sliding panel, the bottom part should appears and slide down with, in the best possible scenario, the main/topmost part expanding towards the right side to match the overall wideness. The two parts connected of course, with no gap between them as it is actually.

I will send you here a demo..
Quote:
Sorry to bother you with all this but without doc/wiki/help i just don't know where to find the answers..

You don't need wiki. You can find all the help you want here, in this forum, but obviously you didn't check:
viewforum.php?f=10
viewforum.php?f=7
viewforum.php?f=8

Quote:
Here are the actual widget. Ideally, the last version, besides using animated icons would offer some kind of colorisation. Do you know if it's procedurally (from a menu for instance) possible to act upon the colorization parameter in the attributes section ?

For the images you can use this tab:

Image

Now for this particular widget I checked it.
You can't add or create the animation you want like this, because you use simple static "image"!
For animated icons you need to use the "pnganimate" (gif in general offer low quality images so it's better don't use)

Image

and you need the known serial pngs images.
http://jimking.deviantart.com/art/Weath ... -655218106

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Var updating
PostPosted: 2017年 Feb 24日 07:25 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
About the slidepanels idea look here:
viewtopic.php?f=8&t=6597&p=14121#p14121

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group