Replies: 1 comment 1 reply
-
I must confess this is the best and most thoroughly written feature suggestion I've seen! Btw did you try the screensaver max time setting? The idea is that it can work up to X and then deactivates itself. This would address the weekends and nights with long inactivity periods. Would having a time/clock based solution still be preferable? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The Jitter Lock feature is very useful for keeping a computer active. However, it currently lacks a time-of-day awareness. If a user forgets to disable it, Jitter Lock can activate based on PC idle time (
idle_time_initial
andidle_time_max
) and keep monitors on unnecessarily (e.g., overnight or on weekends), leading to wasted energy and potential screen wear.Desired Solution Goal
To introduce a simple, configurable daily schedule for the Jitter Lock feature. This would allow users to define specific hours during which Jitter Lock is permitted to operate. The configuration, including setting the device's current time, would be managed via the existing
config.htm
page, utilizing the Pico's software RTC (Real-Time Clock) capabilities. This approach avoids hardware modifications.Possible Solutions (Time Setting via
config.htm
)Solution A: Manual Time Input (Minimal Code Change Focus)
config.htm
page.config.htm
):jitter_schedule_enable
: Checkbox to turn the scheduler on/off.jitter_schedule_start_hour
: Input field for the hour (0-23) when Jitter Lock can start.jitter_schedule_end_hour
: Input field for the hour (0-23) when Jitter Lock should stop.set_current_hour
: Input field for the user to manually enter the current hour (0-23).set_current_minute
: Input field for the user to manually enter the current minute (0-59).set_current_hour
andset_current_minute
to initialize/update its internal software RTC.jitter_schedule_enable
is active, the firmware checks the current time from its software RTC. Jitter Lock (including its standardidle_time_initial
check) is only allowed to proceed if the current hour is within thejitter_schedule_start_hour
andjitter_schedule_end_hour
window.config.htm
for time acquisition, relying on simple HTML input fields and firmware-side parsing of these values.Solution B: JavaScript-Fetched Time (Enhanced User Experience)
config.htm
page, which uses JavaScript to fetch the current time from their computer and sends it to the DeskHop.config.htm
):jitter_schedule_enable
: Checkbox.jitter_schedule_start_hour
: Input field (0-23).jitter_schedule_end_hour
: Input field (0-23).config.htm
/ Firmware Logic:new Date()
) to get the local time from the user's browser.config.htm
already uses them for saving configurations.Important Considerations for Both Solutions
config.htm
after each power cycle for the scheduler to function correctly according to wall-clock time.This proposal aims to provide a useful scheduling feature with a low barrier to implementation by leveraging existing mechanisms and avoiding hardware changes.
Beta Was this translation helpful? Give feedback.
All reactions