Skip to main content

No project description provided

Project description

Pi Status Board (psb)

GitHub Workflow Status GitHub issues GitHub PyPI - Python Version PyPI - Downloads

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psb-0.17.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

psb-0.17.0-py3-none-any.whl (21.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page