Skip to main content

pcreporter

Telegram BOT as a personal computer reporting service.

Features:

  • system overview reporting
  • temperature reporting
  • USB reporting and monitoring
  • defensive and observative modes
  • remote shutdown and screen lock
  • single chat user allowed to interact with the bot

Setup:

  1. Install the package from the AUR or pypi.
  2. Create a bot on Telegram and get the token.
  3. Create config file in the following format:
CHAT_ID=<chat_id>
IS_DEFENSIVE=false
CMD_LOCKSCRN=swaylock -f -c 000000 <replace with custom command if needed>
TOKEN=<telegram bot token>

To get the CHAT_ID value, run the bot with CHAT_ID of 0 and send a message to it. The CHAT_ID will be reported in the terminal and messaged back to the user on Telegram.

The config file could be placed in the following locations:

  • /etc/pcreporter.conf
  • ~/.config/pcreporter.conf
  • ~/.pcreporter.conf
  • (current working directory)/pcreporter.conf
  1. Run the bot.

Warning Do not run the bot as root. The bot will refuse to run if run as root (intentional design). For poweroff functionality, ensure you can run the command 'poweroff' as the non-root user.

Setup Tip: Using SystemD User Services

To run the bot as a user service, copy the file pcreporter.service form this repository to ~/.config/systemd/user/pcreporter.service and enable it with systemctl --user enable --now pcreporter.service.

If using the AUR package, the service file will be installed to the correct location.

Maintainers:

Used Python Packages:

  • python-telegram-bot
  • psutil
  • requests
  • uptime
  • usb-monitor

Metadata

Release files for pcreporter 20240927

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

Source distribution (sdist)

Source distribution for pcreporter 20240927
File Size Uploaded
pcreporter-20240927.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pcreporter 20240927
File Interpreter ABI Platform
pcreporter-20240927-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / pcreporter-20240927.tar.gz

Download URL pcreporter-20240927.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc4b16469ab6636c6eed02cc8644dd6867f6866754dcd29e84b3ee2ac7f3edd3
BLAKE2b-256 checksum
How to use checksums
972ddeb362dedb1a984aa1a13f6d15569999ea0799dd46e02e0079682b852f83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.2

Release files / pcreporter-20240927-py3-none-any.whl

Download URL pcreporter-20240927-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c42fab8638e33a097636b23843a3299296e4cf7877acd5c990523a524af01644
BLAKE2b-256 checksum
How to use checksums
9537825176501f84224abd919640b762f66c6df2251233edefe38a1e98db3aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.2

Release history Release notifications | RSS feed

This release

20240927 This release

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