App Version 1.4.3 real time clock

General Discussion on DemoPad or related products
User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Mon Jul 09, 2018 4:33 am

Ok, I know this is an older thread post, but can someone walk me through this step by step so that I can have a clock on my pages? I have been trying to do this and well, I can't get it to work.

Thanks

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: App Version 1.4.3 real time clock

Post by DemoPad » Wed Jul 11, 2018 6:59 pm

rhett7660 wrote:
Mon Jul 09, 2018 4:33 am
Ok, I know this is an older thread post, but can someone walk me through this step by step so that I can have a clock on my pages? I have been trying to do this and well, I can't get it to work.

Thanks
Please refer to http://designer.docs.demopad.com/variables/labels/ - create a repeating page load action which sets your label to the current time, say every 5 seconds, and have the label show on the UI

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Thu Jul 12, 2018 3:25 pm

Ok, I will give this a look and try. I have been trying to wrap my head around this.

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Fri Jul 27, 2018 8:32 pm

DemoPad wrote:
Wed Jul 11, 2018 6:59 pm
rhett7660 wrote:
Mon Jul 09, 2018 4:33 am
Ok, I know this is an older thread post, but can someone walk me through this step by step so that I can have a clock on my pages? I have been trying to do this and well, I can't get it to work.

Thanks
Please refer to http://designer.docs.demopad.com/variables/labels/ - create a repeating page load action which sets your label to the current time, say every 5 seconds, and have the label show on the UI
Ok, I can get the label to show up now, however as soon as I do the following:

Go to Page Settings
Edit-Edit Page Load Actions
Set Label
Label - Current Time
Repeat Command every 5.00 seconds
Add
Done

Load the file up, the text disappears. As soon as I remove the above, re-load the file the text appears, however it doesn't update.

I do have two commands on the page load up, both set to 0.0 delay as they are off (Left Navigation and Volume On) both are slide in panels with additional controls.

Please let me know what I am doing wrong.

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Fri Jul 27, 2018 8:35 pm

Update. When I add in the repeat 5 second command from above, and reload the page, the time will show, however it disappears after say five seconds and doesn't come back until I reload the page.

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Fri Jul 27, 2018 8:42 pm

Edit.. Was able to get it to work.

Is there a command to show the battery life by any chance?

ekkoville
Posts: 31
Joined: Fri Sep 21, 2012 3:32 pm

Re: App Version 1.4.3 real time clock

Post by ekkoville » Tue Aug 14, 2018 11:11 pm

What was the problem Rhett with your first attempt?

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Tue Sep 11, 2018 8:43 pm

ekkoville wrote:
Tue Aug 14, 2018 11:11 pm
What was the problem Rhett with your first attempt?
Sorry I didn't see this until now, I will have to go back and pull it up as I don't remember what I did exactly to get away from having to reload the page manually. I will post what I have that is working.

User avatar
rhett7660
Posts: 81
Joined: Sun Jan 14, 2018 8:29 pm

Re: App Version 1.4.3 real time clock

Post by rhett7660 » Sun Sep 16, 2018 5:16 pm

Here is how I was able to get it to work.

Created under Action Editor - When Page is Displayed

Action type: Set A label
Label: CurrentDay
Dependent Flag: None
Data: #CURRENTDAYOFWEEKTEXT

Action type: Set A label
Label: CurrentTime
Dependent Flag: None
Data: #CURRENTTIMETEXT
Repeat command ever 5.00 seconds

Project Labels (I don't know if this has any influence on the below, but they are under the Project Labels)
CurrentTime Processor Label ID 1
CurrentDay Processor Label ID 2

Created a dynamic label for each:

Text DAY: Dynamic Label: CurrentDay
Text TIME: Dynamic Label: CurrentTime

Hopefully this helps... I had to do a lot of reloading and updating but these are the final settings that are currently working.

Post Reply