No project description provided
Project description
Pi Status Board (psb)
The Pi Status Board (psb) can be used to display text or pre-defined images on an eInk display attached to a Raspberry Pi. It is controlled via AWS IoT Core and uses mqtt.
Requirements
Psb has been designed to work on a Raspberry Pi using and an Inky pHAT display.
Install
Use package manager pip
or pipenv
to install psb:
pip install psb
Usage
Psb is a command line utility. The configuration file should be stored in /etc/psb/conf.ini
. A sample config file can be found within the resources folder.
For a full breakdown of all configuration options please see the configuration documentation.
To run psb, run the following command without any arguments:
psb
Psb will connect to the mqtt broker specified in the configuration file.
To trigger the changing of the display, a message needs to be sent to the configured mqtt topic. There are two types of messages that can be processed.
For a text message the message sent to the topic should be:
{
"type": "text",
"data": "This is a message"
}
For images, the data field should contain the name of the image to display without the extension:
{
"type": "image",
"data": "meeting"
}
Running as a service
If you would like to run psb as a service, copy the example systemd service file to /lib/systemd/system/pi-status-board.service
. You may need to change the path to the location of psb, this can be found by using the whereis
command:
> whereis psb
psb: /etc/psb /home/pi/.local/bin/psb
After creating the file, reload the systemd daemon:
> sudo systemctl daemon-reload
You should now be able to see the status of the service by running:
> sudo systemctl status pi-status-board
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Released under GNU General Public License v3.0.
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 psb-0.17.0.tar.gz
.
File metadata
- Download URL: psb-0.17.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efb70e73122a785c1516b38b9da3bda1dee6928799b3f79c0c8fb7cde20782a4 |
|
MD5 | 10b1390a9508cb7442e0ae35c2ba866f |
|
BLAKE2b-256 | ca6abe18cd5215abe0e36ddf6683d96614dbc647ea27e94e62873b5bd79dd83b |
File details
Details for the file psb-0.17.0-py3-none-any.whl
.
File metadata
- Download URL: psb-0.17.0-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b8f8983b7ef180f692a07b87cabe04588a14de9f6190f5ac168cd6459f2dea |
|
MD5 | 90ac83b8a641446d52171370c60a87e9 |
|
BLAKE2b-256 | 193f9aff6d6f67f51e44b4555303672e5e8a56c0ab19db2f18a4bf834b3fd7ec |