Sandwich1699975 / NetCheck

A persistent network uptime and speed logging CLI software intended for use on Raspberry Pi.
GNU General Public License v3.0
0 stars 0 forks source link

Adjustable dashboard variables #14

Open Sandwich1699975 opened 1 day ago

Sandwich1699975 commented 1 day ago

Have variables on the dashboard to alter ping and download thresholds.

For example, the user should be able to select a numerical value which indicates the yellow warning level threshold and another for the red threshold. Instead of just remembering magic numbers everywhere

Sandwich1699975 commented 1 day ago

This will be difficult.

Having one variable is easy because you can just create a query like $threshold and add a config from field transformation. But you can only have one of these transformations. So you can't do 2 queries and 2 transformations because the latter one will overide the first one.

Therefore, you either need to have multiple rows with the warning and error values returned in one query so they can be set with the one transformation. Or instead of using multiple rows, you can use a key value pair or a json string. I'm not sure how to tackle this atm. For now I will keep the magic hard coded values