Premise Date Displayed in Automation Browser

Motorola Premise

etc6849

Senior Member
I had to modify code found under: sys://Schema/Modules/AutomationBrowser/DateTime/Classes/DateTime/RenderPlugin
as shown to fix my problem...? Any ideas on why dateTime is not updating for me? The property called autoset is checked...

output = ""
if CBool(this.multiLine) = true then
tStr = WeekDayName(Weekday(this.DateTime)) 'LCase(FormatDateTime(this.DateTime,3))
tStr = tStr & "<BR>"
'tStr = tStr & MonthName(Month(this.DateTime))
tStr = tStr & MonthName(Month(times.SysDate))
tStr = tStr & " "
'tStr = tStr & Day(this.DateTime) 'LCase(FormatDateTime(this.DateTime,3))
tStr = tStr & day(times.SysDate) 'LCase(FormatDateTime(this.DateTime,3))
tStr = tStr & " "
'tStr = tStr & Year(this.DateTime) 'LCase(FormatDateTime(this.DateTime,3))
tStr = tStr & Year(times.sysdate)
tStr = tStr & "<BR>"
tStr = tStr & Time()
tStr = Left(tStr, Len(tStr)-6) & " " & Right(tStr, 2)
output = tStr
else
tStr = LCase(FormatDateTime(this.DateTime,3))
tStr = Left(tStr,Len(tStr) - 6) & " " & Right(tStr,2)
output = FormatDateTime(this.DateTime,1) & " " & tStr
end if

if CBool(this.Shadow) = true then
temp = temp & "<SPAN style=""width:100%;height:100%;filter:progid:DXImageTransform.Microsoft.Shadow(direction=130, strength="
temp = temp & this.ShadowStrength
temp = temp & ");"">"
temp = temp & output
temp = temp & "</SPAN>"
output = temp
end if

method.RenderPlugin = output
 
There's no need to alter the code.

The clock, displayed in Premise Browser, is refreshed every minute by a Timer. "UpdateTimer" resides in the Timers section of the DateTime Module (see the attached image). Each time the timer fires, it executes the OnChangeTrigger script. The script gets the current time and refreshes the displayed time in Premise Browser.

Check UpdateTimer's properties ... they ought to be similar to what is displayed in the image.
 

Attachments

  • DateTime_Timer.png
    DateTime_Timer.png
    23.5 KB · Views: 28
Doh, that folder was empty. I think I know what the issue is. I noticed my computer clock was set to 2029 last month and the timer must have expired on me!

So, the real moral of the story is before 2017 remember to increment the end time! Thankfully, I had builder and the premise service installed on another machine and exported the timer then imported it back to my main premise server.

There's no need to alter the code.

The clock, displayed in Premise Browser, is refreshed every minute by a Timer. "UpdateTimer" resides in the Timers section of the DateTime Module (see the attached image). Each time the timer fires, it executes the OnChangeTrigger script. The script gets the current time and refreshes the displayed time in Premise Browser.

Check UpdateTimer's properties ... they ought to be similar to what is displayed in the image.
 
If your PC has a habit of jumping into the near future, like 2029, ... you can change the Timer's EndTime property to something much farther into the future like 2059.
 
:) It hasn't done it again. I noticed the problem a month ago when media centers tv guide would not update. It was probably me miss clicking in the calendar for all I know.

Cheers,

Ellery

If your PC has a habit of jumping into the near future, like 2029, ... you can change the Timer's EndTime property to something much farther into the future like 2059.
 
Nicely done, guys....guess who fat-fingered and apparently deleted updatetimer?

Fortunately, 123 provided enough of the memory jogger to let me figure out why 'UpdateWSWeather' wasn't working....
 
Back
Top