DietPi --version?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

DietPi --version?

Post by pakikje »

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!
Last edited by pakikje on Wed Jan 02, 2019 9:17 am, edited 1 time in total.
User avatar
Phillski
Posts: 35
Joined: Fri Feb 02, 2018 10:52 am

Re: DietPi --version?

Post by Phillski »

try

Code: Select all

echo $G_DIETPI_VERSION_CORE.$G_DIETPI_VERSION_SUB.$G_DIETPI_VERSION_RC
which is built from

Code: Select all

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
https://github.com/Fourdee/DietPi/blob/ ... tpi-banner
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

Re: DietPi --version?

Post by pakikje »

Thnx!
Post Reply