Super... ![]()
Hat es schon jemand erfolgreich gemacht?
Ich habe es versucht, scheitere aber bei dem Punkt:
Install vcgencmd Script:
"pigpio provides a hook to execute a shell command remotely. homebridge-rpi uses this hook to run a little shell script, vcgencmd, that calls vcgencmd to get the Pi's CPU temperature, frequency, voltage, and throttling information. This script needs to be installed to /opt/pigio/cgi by:"
-> sollte wohl: /opt/pigpio/cgi heißen ![]()
Befehl:
bringt
habe geschaut wo den vcgencmd ist...
liegt unter /usr/bin
Aber mir ist nicht klar was gemacht werden soll. Habe eine Datei "vcgencmd.sh" angelegt mit dem Inhalt (siehe link):
Bash
#!/bin/bash
# homebridge-rpi/opt/pigpio/cgi/vcgencmd
# Copyright © 2019 Erik Baauw. All rights reserved.
#
# Homebridge plugin for Raspberry Pi.
umask 022
exec 2> /opt/pigpio/vcgencmd.err
exec > /opt/pigpio/vcgencmd.out
echo -n "{"
echo -n "\"date\":\"$(date -uIseconds)\","
echo -n "\"load\":$(uptime | sed -e "s/.*load average: \([^ ]*\),.*/\1/"),"
echo -n "\"temp\":$(vcgencmd measure_temp | sed -e "s/temp=\(.*\)'C/\1/"),"
echo -n "\"freq\":$(vcgencmd measure_clock arm | cut -f 2 -d =),"
echo -n "\"volt\":$(vcgencmd measure_volts | sed -e "s/volt=\(.*\)V/\1/"),"
echo -n "\"throttled\":\"$(vcgencmd get_throttled | cut -f 2 -d =)\""
echo -n "}"
Alles anzeigen
... komme aber nicht weiter!?
... kann ein Profi helfen?!
Danke vorab