Raspberry Pi 4 or 3 or 2 or 1 temperature monitor via HTTP

OMG the raspberry pi 4 gets hot, and that’s even with the new “cooler” firmware. At idle I’m measuring a temperature of 55°C. Im now quite glad I installed the monitor so I can keep an eye on it as its randomly crashed quite a few times.

So the install source is: https://xavierberger.github.io/RPi-Monitor-docs/11_installation.html

sudo apt-get install dirmngr
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
sudo wget http://goo.gl/vewCLL -O /etc/apt/sources.list.d/rpimonitor.list
sudo apt-get update
sudo apt-get install rpimonitor

http://raspberrypi.local:8888/

my address is http://Daz-Pi-4.local:8888 yours might be different depending on your settings. Or just use the IP address:8888

The Man Page

man(1) rpimonitord man page man(1)

NAME
rpimonitord

USAGE
rpimonitord [-a address][ -b pidfile][[-c configuration_file]…]
[-d delay][-h][-k][-l logfile][-n][-p port][-s][-t timeout]
[-v[v[…]]][-V]

DESCRIPTION
rpimonitord is designed to extract data from Raspberry Pi system and
store statistic into RRD. rpimonitord embed a web server allowing
to display current status and statistics.

OPTIONS
-a, –addr Web server bind address (Default: 0.0.0.0)
-b, –background Define the pid file when run in background
-c, –conf Define the configuration file
Default: /etc/rpimonitor/data.conf
/etc/rpimonitor/daemon.conf
-d, –delay Delay between check ins seconds (Default: 10)
Note: If you want to change the default delay, the
rrd file will have to be deleted rpimonitord will
recreate them at next startup with the new time
slice.
-h, –help Shows this help and exit
-i, –interactive Interactive configuration helper
-k, –keep Keep log file (Default: logfile is delete at each start)
-l, –logfile Logfile directory and prefix (ex: /var/log/rpimonitor)
-n, –noserver Don’t start embeded server
-p, –port Web server port (Default: 8888)
-s, –show Show configuration as loaded and exit
-t, –timeout KPI read timeout in seconds (Default: 5)
-v, –verbose Write debug info on screen
-V, –Version Show version and exit

CONFIGURATION
Configuration can be defined into etc/rpimonitor/daemon.conf and
/etc/rpimonitor/data.conf or in a list of files specified by -c parameter.
In /etc/rpimonitor/template/*.conf provided at installation you can
see how to customize rpimonitord.
Configuration defined inside a configuration file always overwrite
default values.
Configuration given as option of the command line always overwrite
the one defined into a file.
** Warning: Be sure to use Linux filefeed format with line ending
with LF (and not CR/LF like in Windows) **

RAW DATA ACCESS
Once RPi-Monitor is started the data representing the current status
are available in json format and can be downloaded from the root of
the web interface (ex: http://RpiAddress:8888/static.json)
static.json: Static information extracted at startup
dynamic.json: Current values of dynamic information extracted
periodically
menu.json: Description of menus when multiple pages are
configured

The web interface configuration can also be downloaded in json format:
statistics.json: Description of statistics page
status.json: Description of status page
friends.json: List of friends
addons.json: List of addons

Statistic information are stored into RRD file available in the
directory /var/lib/rpimonitor/stat/

AUTHOR
Xavier Berger
http://rpi-experiences.blogspot.fr