XWidgetSoft Forum https://bbs.xwidget.com/ |
|
Var updating https://bbs.xwidget.com/viewtopic.php?f=8&t=6599 |
Page 1 of 1 |
Author: | marcusus [ February 16th, 2017, 6:20 pm ] |
Post subject: | Var updating |
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. |
Author: | Jimking [ February 17th, 2017, 12:20 am ] |
Post subject: | Re: Var updating |
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 |
Author: | marcusus [ February 17th, 2017, 7:08 am ] |
Post subject: | Re: Var updating |
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.. |
Author: | Jimking [ February 17th, 2017, 7:25 am ] |
Post subject: | Re: Var updating |
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.. |
Author: | marcusus [ February 17th, 2017, 12:06 pm ] |
Post subject: | Re: Var updating |
Of which 'local update time' are talking about ? If I'm not mistaken, I only saw 3 vars about update |
Author: | Jimking [ February 17th, 2017, 2:19 pm ] |
Post subject: | Re: Var updating |
Author: | marcusus [ February 17th, 2017, 2:31 pm ] |
Post subject: | Re: Var updating |
AH... ok, I thought you were talking about something else ;.) Did you figure out about the two other ones ? |
Author: | Jimking [ February 17th, 2017, 2:41 pm ] |
Post subject: | Re: Var updating |
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 |
Author: | marcusus [ February 17th, 2017, 3:40 pm ] |
Post subject: | Re: Var updating |
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 ? |
Author: | Jimking [ February 17th, 2017, 3:49 pm ] |
Post subject: | Re: Var updating |
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. |
Author: | marcusus [ February 20th, 2017, 1:17 pm ] |
Post subject: | Re: Var updating |
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... |
Author: | Jimking [ February 21st, 2017, 1:54 am ] |
Post subject: | Re: Var updating |
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...? |
Author: | Jimking [ February 24th, 2017, 4:10 am ] |
Post subject: | Re: Var updating |
Author: | Jimking [ February 24th, 2017, 7:25 am ] |
Post subject: | Re: Var updating |
About the slidepanels idea look here: viewtopic.php?f=8&t=6597&p=14121#p14121 |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |