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:
- Install the package from PyPi.
pipx install pcreporter
- Create a bot on Telegram and get the token.
- 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
- 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.
- (Optional) Tailscale Support: in order to be able to turn the network on and off without root privileges:
sudo tailscale down
sudo tailscale up --operator=$(whoami)
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.
Maintainers:
Used Python Packages:
- python-telegram-bot
- psutil
- requests
- uptime
- usb-monitor
Metadata
Release files for pcreporter 20241004
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pcreporter-20241004.tar.gz | 10.0 kB | Without provenance | Details for pcreporter-20241004.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pcreporter-20241004-py3-none-any.whl | Python 3 | none | any | Details for pcreporter-20241004-py3-none-any.whl |
Total release size: 22.4 kB
Release files / pcreporter-20241004.tar.gz
| Download URL | pcreporter-20241004.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76e542158da14b6e4fab3b4d9b94fd0eb90d07f8416b64c3e9e8632faf1945e3
|
|
BLAKE2b-256 checksum How to use checksums |
2f4cdad00b57403a10517a9d818fd4457e621bea2d4996c68077be679c7eb2ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / pcreporter-20241004-py3-none-any.whl
| Download URL | pcreporter-20241004-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee19d0da923330c1f1d990c2b4c80e6172ba7e0ed8f0d4c7cd6b9e9264b78c3d
|
|
BLAKE2b-256 checksum How to use checksums |
2b83d2ff2f2c4e6e58d29bb02c0ea6467d1a9d5657aff72f6ed3c692f967efca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Security for pcreporter 20241004
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.