I wanted to make a widget "a card from calendar" which will show date, year and name of day.
I wanted to add such flow:
When time is 00:00:01 and widget haa not been refresh today - refresh it.
So is there such action hidden somewhere? If not, would be cool to find it implemented in one of the future versions of Automagic.
refresh widget
Moderator: Martin
Re: refresh widget
hi
What about using a "Time" trigger and just refresh it every day at 00:01 regardless whether it has already been refreshed?
What about using a "Time" trigger and just refresh it every day at 00:01 regardless whether it has already been refreshed?
Re: refresh widget
Main problem is that there is no action "refresh widget" or just I can't find it.
Re: refresh widget
So you can use a script action and a "Object setWidgetElementProperty(String widgetName, String elementName, String property, Object value)" function to trigger a refresh.Automagic only refreshes a widget when it detects either a change in a global variable that is used by the widget or when a property of a widget element is modified.
Re: refresh widget
me too.
I want to refresh widgets by separated action, not by setWidgetElementProperty, because all expressions on widget becomes broken after setWidgetElementProperty
I want to refresh widgets by separated action, not by setWidgetElementProperty, because all expressions on widget becomes broken after setWidgetElementProperty
Re: refresh widget
There's a new script function refreshWidget available in the latest version of Automagic.
Regards,
Martin
Regards,
Martin