DietPi --version?

Hello guys,

I want to add some variables to homeassistant “badges”. So far i have cpu-temp / SSL-cert / HomeAssistant-version / Debian-version
and now i want to add the DietPi-version.

What is the command to show the dietpi-version? (cat …?)

Thnx!

try

echo $G_DIETPI_VERSION_CORE.$G_DIETPI_VERSION_SUB.$G_DIETPI_VERSION_RC

which is built from

cat /DietPi/dietpi/.version



cat /DietPi/dietpi/.version
#!/bin/bash
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=20
G_DIETPI_VERSION_RC=0
G_GITBRANCH=dev
G_GITOWNER=Fourdee

you can also check out the banner script for more ideas

Thnx!