thomasjacquin / allsky-portal

A simple, responsive web interface to control an allsky camera connected to a Raspberry Pi
GNU General Public License v3.0
34 stars 22 forks source link

WEBUI_DATA_FILES #92

Closed EricClaeys closed 2 years ago

EricClaeys commented 2 years ago

This PR provides the mechanism for users to add information to the WEBUI's "System" page. The user specifies one or more files in the config/config.sh's new WEBUI_DATA_FILES variable. Each file is created by a user-supplied script, and has all the information needed to add data to the page. In the simplest case, two pieces of data are needed - the label for the date, e.g., "ambient temperature", and the data itself, e.g., "20 C".

Data for adding progress bars can also be specified, as well as data for adding buttons and their associated action can be added.

The related Wiki page explains all the settings and gives a detailed example.

EricClaeys commented 2 years ago

This Fixes Issue #89 .