py3status http monitor show the status of http endpoints
Project description
py3status-http-monitor
Python module for monitoring http services in your py3status bar.
Screenshot
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file py3status-http-monitor-0.1.3.tar.gz
.
File metadata
- Download URL: py3status-http-monitor-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.7 Linux/5.14.12-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7755958878c37e5d9a13caece0f94b21a0a28a62707900422d5a7a5f5927083e |
|
MD5 | 781bf0e383ac3dd101e153a50447fb56 |
|
BLAKE2b-256 | 7b829434d515f5a84bc1b308e8722b1cbce1365cb857d509137eab9fe4722486 |
File details
Details for the file py3status_http_monitor-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: py3status_http_monitor-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.7 Linux/5.14.12-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38843da0891b2ce23185698648b3d9ec50da6dd91e7e43be77df24c8eae5954b |
|
MD5 | c6c20d6e60d0931effaa61427d9c78bd |
|
BLAKE2b-256 | c6110cb7d16cfc158afdd81e44c4be70d7cca1770eadcf993ba878d497b3fe22 |