screensavers saving added

This commit is contained in:
Justin 2023-08-23 22:19:01 +08:00 committed by GitHub
parent 59dc9e69b4
commit b88e3d9e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1683,6 +1683,27 @@ def saveSchedulerSettings():
scheduler_settings['brightness4']['enabled'] = input_settings['brightness4_enabled']
scheduler_settings['brightness4']['bright'] = input_settings['brightness4_bright']
scheduler_settings['screensaver1']['hour'] = input_settings['screensaver1_hour']
scheduler_settings['screensaver1']['minute'] = input_settings['screensaver1_minute']
scheduler_settings['screensaver1']['endhour'] = input_settings['screensaver1_endhour']
scheduler_settings['screensaver1']['endminute'] = input_settings['screensaver1_endminute']
scheduler_settings['screensaver1']['type'] = input_settings['screensaver1_type']
scheduler_settings['screensaver1']['enabled'] = input_settings['screensaver1_enabled']
scheduler_settings['screensaver2']['hour'] = input_settings['screensaver2_hour']
scheduler_settings['screensaver2']['minute'] = input_settings['screensaver2_minute']
scheduler_settings['screensaver2']['endhour'] = input_settings['screensaver2_endhour']
scheduler_settings['screensaver2']['endminute'] = input_settings['screensaver2_endminute']
scheduler_settings['screensaver2']['type'] = input_settings['screensaver2_type']
scheduler_settings['screensaver2']['enabled'] = input_settings['screensaver2_enabled']
scheduler_settings['screensaver3']['hour'] = input_settings['screensaver3_hour']
scheduler_settings['screensaver3']['minute'] = input_settings['screensaver3_minute']
scheduler_settings['screensaver3']['endhour'] = input_settings['screensaver3_endhour']
scheduler_settings['screensaver3']['endminute'] = input_settings['screensaver3_endminute']
scheduler_settings['screensaver3']['type'] = input_settings['screensaver3_type']
scheduler_settings['screensaver3']['enabled'] = input_settings['screensaver3_enabled']
scheduler_settings['timezone'] = input_settings['timezone']
with open('csv/scheduler.json', 'w') as f: