Virtuino Forum
Wishlist: Time Picker - Printable Version

+- Virtuino Forum (https://virtuino.com/forum)
+-- Forum: Virtuino (https://virtuino.com/forum/forumdisplay.php?fid=1)
+--- Forum: Virtuino IoT (https://virtuino.com/forum/forumdisplay.php?fid=2)
+--- Thread: Wishlist: Time Picker (/showthread.php?tid=1435)



Wishlist: Time Picker - Joe - 09-26-2023

I would like to see a Time Picker in one of the next versions. Preferable in 24 hour format.

The scheduler widget is often to much, I need something to send a time value to a micro controller.

In a moment i have 24 buttons for the hour and 12 for the minutes ... not very elegant.

-Joe


RE: Wishlist: Time Picker - iliaslamprou - 09-28-2023

Hi,
the widget "Date-Time dispaly" includes a TimePicker.
Go to the settings window of "Date-Time display". 
To test it use the following settings:

---- Input Settings-----
Input : Emulator V0
Date format: Timestamp (Millis) or  (Seconds) 

---- Displayed Value settings ----
Date format: HH:mmConfuseds

--- On click settings ---
On click:  Time Picker 
Long click delay: 0

The Variable V0 needs a value. The time picker is not working with empty variable.
Go to emulator settings. Select the variable V0. Enter as initial value: 0
Restart the project.
Click on the display. You have to see the Time Picker dialog


RE: Wishlist: Time Picker - Joe - 09-28-2023

(09-28-2023, 11:38 AM)iliaslamprou Wrote: Hi,
the widget "Date-Time dispaly" includes a TimePicker.
Go to the settings window of "Date-Time display". 
To test it use the following settings:

---- Input Settings-----
Input : Emulator V0
Date format: Timestamp (Millis) or  (Seconds) 

---- Displayed Value settings ----
Date format: HH:mmConfuseds

--- On click settings ---
On click:  Time Picker 
Long click delay: 0

The Variable V0 needs a value. The time picker is not working with empty variable.
Go to emulator settings. Select the variable V0. Enter as initial value: 0
Restart the project.
Click on the display. You have to see the Time Picker dialog

Hi Ilias,
followed your instructions. And: Got a Time Picker 

Perfect! 
Cheers, Joe


RE: Wishlist: Time Picker - Joe - 09-28-2023

There is one problem: The time showing up is always one hour less then selected.

What I'm doing wrong?

-Joe


RE: Wishlist: Time Picker - Alexander P - 09-28-2023

(09-28-2023, 02:44 PM)Joe Wrote: There is one problem: The time showing up is always one hour less then selected.

What I'm doing wrong?

-Joe

Hi! I have the same time display error as Joe. My device is in the 3 time zone and in the TimePicker mode, the Date-Time-Display shows the time 3 hours less than the selected one. The UTC and Correction settings do not affect the displayed time. How can this be fixed?


RE: Wishlist: Time Picker - Joe - 09-29-2023

The settings of UTC and offset will change the value itself, but not the time display.

With a timestamp set to seconds and a selected time of 10:00 AM the output should be 36000 !!

With UTC unchecked and hour offset 0 its giving 32400 ??

So, with UTC checked and offset of -2 hours i'm getting 36000

This is with a computer set to timezone Paris (UTC +1 during daylight saving time, UTC +2 in winter)

The widget itself is still showing 9:00 

-Joe

Edit:

After restart of program, above test gives suddenly negativ values. 
Each time you try to set new time, this negative value gets higher and higher.
So it's useless.

What ist working so far:
Leave the UTC unchecked und set hour offset to 0
This value goes then to e.g. V0
Take a Date Converter tool: input V0, Output V1 UTC checked, hour offset = 1
Then a second Time display like above with input V1 and On Click disabled.

On the first Time display I've set the alpha channel of color to zero, so the "wrong time" is not visible,
and put a label on top. It's looking like a button now.

-Joe


RE: Wishlist: Time Picker - iliaslamprou - 10-01-2023

Hi,
I have checked this issue.
There is a bug in the "Date Value display" time picker. 
I will fix it in the next update.
Thank you for this bug!