Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CPU-Temp NanoPi Duo Welcome-Message

Featured Replies

@Igor at the /etc/update-motd.d/30-sysinfo on my armbian debian stretch it didnt show the cpu-temp line after the login :(

 

I did take a look at the file /etc/update-motd.d/30-sysinfo and didnt under stand the actual funtion getboardtemp:
 

function getboardtemp() {
        if [ -f /etc/armbianmonitor/datasources/soctemp ]; then
                read raw_temp </etc/armbianmonitor/datasources/soctemp 2>/dev/null
                if [ ! -z $(echo "$raw_temp" | grep -o "^[1-9][0-9]*\.\?[0-9]*$") ] && (( $(echo "${raw_temp} < 200" |bc -l) $
                        # Allwinner legacy kernels output degree C
                        board_temp=${raw_temp}
                else
                        # Marvell gets special treatment for whatever reasons
                        grep -qi Marvell /proc/cpuinfo && \
                                board_temp=$(( $(awk '{printf("%d",$1/1000)}' <<<${raw_temp}) - 20 )) || \
                                board_temp=$(awk '{printf("%d",$1/1000)}' <<<${raw_temp})
                fi
        elif [ -f /etc/armbianmonitor/datasources/pmictemp ]; then
                # fallback to PMIC temperature
                board_temp=$(awk '{printf("%d",$1/1000)}' </etc/armbianmonitor/datasources/pmictemp)
        fi
} # getboardtemp

BUT if I did do it cut down to:
 

function getboardtemp() {
        if [ -f /etc/armbianmonitor/datasources/soctemp ]; then
                # Allwinner legacy kernels output degree C
                board_temp=$(awk '{printf("%.2f",$1/1000)}' </etc/armbianmonitor/datasources/s$

        elif [ -f /etc/armbianmonitor/datasources/pmictemp ]; then
                # fallback to PMIC temperature
                board_temp=$(awk '{printf("%d",$1/1000)}' </etc/armbianmonitor/datasources/pmi$
        fi
} # getboardtemp

I do get a CPU-temp line at the Welcome-Message after the login-screen.
For me it looks like that the mainline-kernel also output degree C (not only legacy like in the commecnt-line).

 

My NanoPi Duo as Information:
System diagnosis information will now be uploaded to http://ix.io/15r6

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.