/ambient-messaging

ambient-messaging

Primary LanguagePython

ambient-messaging

ambient-messaging

Installation on RPi

curl https://get.pimoroni.com/inky | bash
git clone https://github.com/adriencater/ambient-messaging.git
cd ambient-messaging
pip3 install -r requirements.txt

Usage: Plain Python

Use the core component in the python interpreter:

$ python3
>>> from ambientmessage import core
>>> core.display_text('Hello\nWorld')

Usage: HTTP Service

Run the web service:

python3 -m ambientmessage.web

Usage: MQTT Service

You need to setup an MQTT Broker, eg. mosquitto. Run the mqtt subscriber:

python3 ambientmessage/mqtt.py <client-id> <mqtt-broker-user> <mqtt-broker-password>

The client-id is the identifier of the epaper.

Send message with:

python3 ambientmessage/mqtt-test.py <mqtt-broker-user> <mqtt-broker-password> <client-id> "Hello World!"

The client-id is the identifier of the epaper.