ambient-messaging
curl https://get.pimoroni.com/inky | bash
git clone https://github.com/adriencater/ambient-messaging.git
cd ambient-messaging
pip3 install -r requirements.txt
Use the core
component in the python interpreter:
$ python3
>>> from ambientmessage import core
>>> core.display_text('Hello\nWorld')
Run the web service:
python3 -m ambientmessage.web
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.