Skip to content

Conversation

@pitbox46
Copy link

@pitbox46 pitbox46 commented Apr 30, 2025

This is a work in progress!

Description

Adds support for arbitrary numeric data in the form of "extra data" (eData). The functionality is as follows

  1. Store the extra data in system_stats.stats.eData as a key-value pair. This is easily done by watching for new records and updating them.
  2. Create a record under the extra_data_configs collection. 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

  • Implement the extra_data_configs collection in Beszel (unsure how how to do this)
  • Add example battery charge example
  • Documentation

@henrygd
Copy link
Owner

henrygd commented Apr 30, 2025

Interesting idea, thanks. I'll think it over and try to get back to you tomorrow but it may be a few days.

@pitbox46 pitbox46 force-pushed the main branch 2 times, most recently from 970ce0f to bd9f6b0 Compare May 1, 2025 23:58
@pitbox46
Copy link
Author

pitbox46 commented May 2, 2025

I'm not sure of how to add the container extra_data_configs via the agent (I'm not very familiar with go), so I had to implement it using my JS script for now. You can see my script here beszel_bat.mjs.

I will also update the description with some new info and an example image.

@henrygd
Copy link
Owner

henrygd commented Sep 15, 2025

Sorry, forgot about this and it was closed automatically. I'll reopen and try to get to it relatively soon but I'm absolutely slammed at the moment :-/

@henrygd henrygd reopened this Sep 15, 2025
@github-actions github-actions bot removed the Stale label Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants