this post was submitted on 28 Mar 2025
128 points (100.0% liked)

Selfhosted

61190 readers
235 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I spent some time learning and configuring my firewall, then displayed it in form of SVG graph on Glance. I'm pretty happy about the result so I wanted to share it :)

you are viewing a single comment's thread
view the rest of the comments
[–] Mouette@jlai.lu 2 points 1 year ago* (last edited 1 year ago)

Yes the full recipe is:

  • 1 Flask API for sending custom HTML to Glance
  • 1 systemd unit + python script for the right graph (last 60 minutes, resetting counter and collecting data via nftables python module)
  • 1 systemd unit + python script for the left graph (last 24h, aggregate data from the last hour collevted by the first script And that's it, the systemd units are used to schedule python scripts and all the data are stored in flat csv file (forgot one bash script +systemd unit to to flush docker rules at boot and apply custom ones)