question

fenix avatar image
fenix asked

RaspberryPi command for voltage that feed the RaspberryPi

Hello

i am running the Victron on a RaspberryPI

two questions:

-Is there a command to see the temperature of the RaspberryPi board

-Is there a command to see the voltage and Amp that feed the RaspberryPi board

VRM
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
laurenceh avatar image
laurenceh answered ·

Knowing about Raspberry pi's, getting the Power supply voltage seems to be a little difficult.

However getting the CPU temperature is fairly straightforward:

#cat /sys/class/thermal/thermal_zone0/temp

returns the temperature in deg C x 100 so a script to sort out the maths would be:


#!/bin/bash
temp=$(</sys/class/thermal/thermal_zone0/temp)
echo "CPU => $((temp/1000))'C"

So relatively easy to add this to a d-bus service to make it available on the bus.


3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

fenix avatar image fenix commented ·

hello

i am new to this.. Could you tell me how to add it to the d-bus?

0 Likes 0 ·
Show more comments