A small Python script for displaying hardware metrics. Metrics are pulled from LibreHardwareMonitor, and requires it to be installed on your PC and in server mode. It is designed to be run on a small computer with a small display. I intend to use a Raspberry Pi, but you could likely use something else.
Installation
PiLibre relies on rich and httpx on the display machine, and LibreHardwareMonitor on the machine from which you want to see metrics.
rich: For terminal display of the hardware metricshttps: To pull the JSON data served byLibreHardwareMonitorLibreHardwareMonitor: For getting the hardware metrics of your computer.
Host Machine Setup
The host machine only needs to have LibreHardwareMonitor installed. The project can be found here: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor and downloaded from here: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/releases.
Once installed:
- Open the HTTP server via
Options -> HTTP Server. - Take note of the IP address. This is the IP address of the local machine.
- If you'd like to change the default port, do so here.
Display Machine Setup
The machine you want to display metrics on needs to have the PiLibre application installed. The easiest way is to use pipx, but manual instructions are also included.
pipx
pipx is recommended for the simplest installation. This will install PiLibre into its own virtual environment, along with any dependencies.
Install pipx from here: https://github.com/pypa/pipx#install-pipx.
pipx install git+https://github.com/acbuie/pilibre.git
Manually
If you know what you're doing, you can install the package via Git and run it manually, with python -m src/pilibre. As always, a virtual environment is recommended, so the requirements don't get installed into the system python. Runtime dependencies can be installed with python -m pip install requirements.txt.
First, clone the project into a new directory.
mkdir pilibre
cd pilibre
git clone https://github.com/acbuie/pilibre.git
Once installed, create and activate a python virtual environment. Read about python virtual environments here: https://docs.python.org/3/tutorial/venv.html.
Then, install the dependencies.
python -m pip install requirements.txt
Usage
Usage is very simple. Once the HTTP server is running on the host machine, simply specify the IP address and port in the config file and run the project.
Metadata
Release files for pilibre 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pilibre-0.1.0.tar.gz | 9.8 kB | Without provenance | Details for pilibre-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pilibre-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pilibre-0.1.0-py3-none-any.whl |
Total release size: 20.5 kB
Release files / pilibre-0.1.0.tar.gz
| Download URL | pilibre-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da491253eb8390e417ff21a72b78729a5c9c36e1f397bf91bb8cd0e85646a2a3
|
|
BLAKE2b-256 checksum How to use checksums |
fb3116e3b3894046ff01dadb48ba62ad457bdb14b44dda6f8f6339f2f8b50e8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.8 Darwin/21.5.0
|
Release files / pilibre-0.1.0-py3-none-any.whl
| Download URL | pilibre-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fa7b93fa1b4b565bd8fe94957eea7cb184b0acb4acca5e7abddeb80b49429d2
|
|
BLAKE2b-256 checksum How to use checksums |
906ab9f56f53b10831af6c6ea0141369aa9a57c48c0941f234ee3b94bb1e8fb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.10.8 Darwin/21.5.0
|
Security for pilibre 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.