Skip to main content

py3status-http-monitor

Python module for monitoring http services in your py3status bar.

Downloads

Screenshot

Status Bar with py3status_http_monitor

Prerequisites

This is an i3 / py3status module, so you'll need those first off.

Installation

From Git

git clone https://github.com/mcgillij/py3status-http-monitor.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s <PATH_TO_CLONED_REPO>/src/py3status-http-monitor/http_monitor.py ./

With Pip, Pipenv or Poetry

pip install py3status-http-monitor
pipenv install py3status-http-monitor
poetry add py3status-http-monitor && poetry install

With yay

yay -S py3status-http-monitor

Building Arch package w/PKGBUILD

git clone https://aur.archlinux.org/py3status-http-monitor.git
cd py3status-http-monitor.git
makechrootpkg -c -r $HOME/$CHROOT

Installing built Arch package

sudo pacman -U --asdeps py3status-http-monitor-*-any.pkg.tar.zst

Configuration

Next you will need to add the services you want to monitor, and optionally choose some appropriate emoji's. You can also configure actions to open up your browser when you click on the icon, which I find pretty handy.

~/.config/i3/i3status.conf

...
general {
        colors = true
        interval = 15
}

order += "http_monitor apache"
order += "http_monitor medusa"
order += "http_monitor pihole"
order += "http_monitor nextcloud"
order += "http_monitor plex"
order += "http_monitor virtualbox"
order += "http_monitor airsonic"
order += "clock"
order += "mail"
...

http_monitor  'nextcloud' {
   service_location = "http://yourserver:8181"
   service_name = '⛅'
   on_click 1 = "exec xdg-open http://yourserver:8181"
}

http_monitor  'virtualbox' {
   service_location = "http://yourserver:81/vb/"
   service_name = '💻'
   on_click 1 = "exec xdg-open http://yourserver:81/vb/"
}

http_monitor  'plex' {
   service_location = "http://yourserver:32400/web/index.html#"
   service_name = '🎥'
   on_click 1 = "exec xdg-open http://yourserver:32400/web/index.html#"
}

http_monitor  'airsonic' {
   service_location = "http://yourserver:4040"
   service_name = '🍃'
}

http_monitor  'pihole' {
   service_location = "http://yourserver:80"
   service_name = '🕳️ '
   on_click 1 = "exec xdg-open http://yourserver:80"
}

http_monitor  'apache' {
   service_location = "http://yourserver:81"
   service_name = '🪶'
}

http_monitor  'medusa' {
   service_location = "http://yourserver:8081"
   service_name = '🐍'
}

Configuration Options

You can pass in the following configuration options:

  • service_location
  • service_name
  • timeout
  • cache_timeout

Restart i3

Once the package is installed and configured you just need to restart i3.

Metadata

Release files for py3status-http-monitor 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py3status-http-monitor 0.1.4
File Size Uploaded
py3status-http-monitor-0.1.4.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py3status-http-monitor 0.1.4
File Interpreter ABI Platform
py3status_http_monitor-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / py3status-http-monitor-0.1.4.tar.gz

Download URL py3status-http-monitor-0.1.4.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eb08073afc83bcd5fe67f47a485a20be1976803421198eb365c1ed3db1edc81b
BLAKE2b-256 checksum
How to use checksums
aba3d48bccf62f306b5c511d8d3b4adedc42a4d279d199318e03999f7e4e6ac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.15.7-zen1-1-zen

Release files / py3status_http_monitor-0.1.4-py3-none-any.whl

Download URL py3status_http_monitor-0.1.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b299016cc0c5756903103134b2d0077a9f06ceb3fc7880b551097f072499e592
BLAKE2b-256 checksum
How to use checksums
7c7c034b107f8389144896dbadfb8f7c968f52c13e3f11c61c561b2f76104e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.15.7-zen1-1-zen

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page