Skip to main content

PyPI version

ps2mqtt

Python daemon that gets information from psutil to an mqtt broker for integration with Home Assistant.

Install

You can install ps2mqtt from pypi:

$ pip install ps2mqtt

If you wish to run ps2mqtt through systemd, download the ps2mqtt.service file from this repository and edit according to your system.

Then just copy to systemd path and enable the service before starting:

$ sudo cp ps2mqtt.service /etc/systemd/system/

$ sudo systemctl enable ps2mqtt.service 

$ systemctl start ps2mqtt.service 

Options

ps2mqtt has several command line options you should use when customizing ps2mqtt.service:

  -h, --help                                  show this help message and exit
  --config CONFIG                             configuration file, will be created if non existing
  --period PERIOD                             updates period in seconds
  --mqtt-server MQTT_SERVER                   MQTT server
  --mqtt-port MQTT_PORT                       MQTT port
  --mqtt-username MQTT_USERNAME               MQTT username
  --mqtt-password MQTT_PASSWORD               MQTT password
  --mqtt-base-topic MQTT_BASE_TOPIC           MQTT base topic
  --ha-discover-prefix HA_DISCOVER_PREFIX     HA discover mqtt prefix
  --ha-status-topic HA_STATUS_TOPIC           HA status mqtt topic

You can also store all the options in a file, just run all your options plus the --config /etc/ps2mqtt.yaml to store all your parameters in a config file. Next time you run, just use --config /etc/ps2mqtt.yaml.

Metadata

Release files for ps2mqtt 0.0.8

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

Source distribution (sdist)

Source distribution for ps2mqtt 0.0.8
File Size Uploaded
ps2mqtt-0.0.8.tar.gz 6.0 kB Details

Release files / ps2mqtt-0.0.8.tar.gz

Download URL ps2mqtt-0.0.8.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
31c64a0f600911149409a06b6ff97edc7c221e6d96e2d18beb50f0b191042699
BLAKE2b-256 checksum
How to use checksums
98100800aef1617aa49cfc78f325f443a65515485139ca18b12f594200c50956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

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