Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a work in progress!
Description
Adds support for arbitrary numeric data in the form of "extra data" (
eData). The functionality is as followssystem_stats.stats.eDataas a key-value pair. This is easily done by watching for new records and updating them.extra_data_configscollection. Each record is 1 chart for 1 system. Depending on the parameters, we can display several different extra variables on the chart.We can utilize the Pocketbase API to add what we want using a separate process. This way, minimal changes have to be made to Beszel's code and the system is easily modifiable.
Battery Charge Example
beszel_bat.mjs

(I have the laptop to keep the battery at ~80%, so I expect the graph to be flat)
Todo
extra_data_configscollection in Beszel (unsure how how to do this)