salts633 / PhotoFrame

A python/browser based digital photo frame
GNU General Public License v3.0
0 stars 1 forks source link

Expand the conf system to the javascript layer #5

Open salts633 opened 4 years ago

salts633 commented 4 years ago

The current conf/ini system sets defaults for the python code but is not passed to the javascript. It should be used to set some of the hard coded values in the javascript, in particular the max/min/step values for the photo update interval.

One way this could be achieved is to have the jinja2 templating write a json string in to index.html that could then be parsed on load to make a CONFIG object.

salts633 commented 4 years ago

This is only really used for the class that handles the update frequency box and buttons, so perhaps move it in to the python and just have the javascript handle the display.