brightness for clocks
This commit is contained in:
parent
be4b08840d
commit
705d70a38d
@ -400,7 +400,7 @@ def index():
|
||||
clock_screensaver = json.load(f)
|
||||
f.close()
|
||||
except:
|
||||
clock_screensaver = {"clock1": {"time_color": "White", "weekday_color": "Cyan", "date_color": "Blue", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True}, "clock2": {"time_color": "Orange", "date_color": "White", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True}, "world_clock": {"city_color": "White", "display_seconds": True, "display_pm": True, "12hour": True}}
|
||||
clock_screensaver = {"clock1": {"time_color": "White", "weekday_color": "Cyan", "date_color": "Blue", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}, "clock2": {"time_color": "Orange", "date_color": "White", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}, "world_clock": {"city_color": "White", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}}
|
||||
with open('clock_screensaver.json', 'w') as f:
|
||||
json.dump(clock_screensaver, f)
|
||||
try:
|
||||
@ -1712,12 +1712,13 @@ def saveScreensaverSettings():
|
||||
with open('clock_screensaver.json','r') as f:
|
||||
clock_screensaver = json.load(f)
|
||||
except:
|
||||
clock_screensaver = {"clock1": {"time_color": "White", "weekday_color": "Cyan", "date_color": "Blue", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True}, "clock2": {"time_color": "Orange", "date_color": "White", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True}, "world_clock": {"city_color": "White", "display_seconds": True, "display_pm": True, "12hour": True}}
|
||||
clock_screensaver = {"clock1": {"time_color": "White", "weekday_color": "Cyan", "date_color": "Blue", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}, "clock2": {"time_color": "Orange", "date_color": "White", "timezone": "Etc/GMT+4", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}, "world_clock": {"city_color": "White", "display_seconds": True, "display_pm": True, "12hour": True, "brightness": "10"}}
|
||||
|
||||
clock_screensaver['clock1']['time_color'] = input_settings['clock1_timecolor']
|
||||
clock_screensaver['clock1']['weekday_color'] = input_settings['clock1_weekdaycolor']
|
||||
clock_screensaver['clock1']['date_color'] = input_settings['clock1_datecolor']
|
||||
clock_screensaver['clock1']['timezone'] = input_settings['clock1_timezone']
|
||||
clock_screensaver['clock1']['brightness'] = input_settings['clock1_brightness']
|
||||
clock_screensaver['clock1']['display_seconds'] = input_settings['clock1_displayseconds']
|
||||
clock_screensaver['clock1']['display_pm'] = input_settings['clock1_displaypm']
|
||||
clock_screensaver['clock1']['12hour'] = input_settings['clock1_12hour']
|
||||
@ -1725,10 +1726,12 @@ def saveScreensaverSettings():
|
||||
clock_screensaver['clock2']['time_color'] = input_settings['clock2_timecolor']
|
||||
clock_screensaver['clock2']['date_color'] = input_settings['clock2_datecolor']
|
||||
clock_screensaver['clock2']['timezone'] = input_settings['clock2_timezone']
|
||||
clock_screensaver['clock2']['brightness'] = input_settings['clock2_brightness']
|
||||
clock_screensaver['clock2']['display_pm'] = input_settings['clock2_displaypm']
|
||||
clock_screensaver['clock2']['12hour'] = input_settings['clock2_12hour']
|
||||
|
||||
clock_screensaver['world_clock']['city_color'] = input_settings['worldclock_citycolor']
|
||||
clock_screensaver['world_clock']['brightness'] = input_settings['worldclock_brightness']
|
||||
clock_screensaver['world_clock']['display_pm'] = input_settings['worldclock_displaypm']
|
||||
clock_screensaver['world_clock']['12hour'] = input_settings['worldclock_12hour']
|
||||
clock_screensaver['world_clock']['display_seconds'] = input_settings['worldclock_displayseconds']
|
||||
|
Loading…
Reference in New Issue
Block a user