Skip to main content

Display hardware metrics from LibreHardwareMonitor, intended to be run on a small screen on a RaspberryPi.

Project description

PiLibre

PyPI PyPI - Python Version GitHub

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 metrics
  • https: To pull the JSON data served by LibreHardwareMonitor
  • LibreHardwareMonitor: 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pilibre-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

pilibre-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pilibre-0.1.0.tar.gz.

File metadata

  • Download URL: pilibre-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Darwin/21.5.0

File hashes

Hashes for pilibre-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da491253eb8390e417ff21a72b78729a5c9c36e1f397bf91bb8cd0e85646a2a3
MD5 1353df86494e2c1a3fd17841ffc4b572
BLAKE2b-256 fb3116e3b3894046ff01dadb48ba62ad457bdb14b44dda6f8f6339f2f8b50e8a

See more details on using hashes here.

File details

Details for the file pilibre-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pilibre-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Darwin/21.5.0

File hashes

Hashes for pilibre-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa7b93fa1b4b565bd8fe94957eea7cb184b0acb4acca5e7abddeb80b49429d2
MD5 7564bd10669fde4a44a944e170f85390
BLAKE2b-256 906ab9f56f53b10831af6c6ea0141369aa9a57c48c0941f234ee3b94bb1e8fb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page