Let's show messages in the Hackerspace!
- Install RPIO: https://pythonhosted.org/RPIO/#installation (the GitHub method seems to work better. You may need python-setuptools)
- Install RPLCD: https://github.com/dbrgn/RPLCD#installing
- Install RPi.GPIO:
pip install RPi.GPIO
First, start the dispatcher with: python /root/totem/dispatcher.py
(we don't live in the past so it's python 3).
And then, start the Web Manager with: cd web-manager
and meteor
.
Note: you may need to change the IP address of the dispatcher in Web Manager global file: web-manager/00_globals.js
Here is an example of service file for the dispatcher if you run systemd.
[Unit]
Description=Launch Totem Dispatcher for Raspberry Pi
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/usr/bin/python /home/totem/dispatcher.py
[Install]
WantedBy=default.target
- text String : Text
- tags Array : Tags that will be handle, filter, dispatch by the Web Manager.
- priority Int : From 0 (lowest) to 5 (highest) (default: 0). Not working yet.
- blink Boolean : Make the screen blink on new messages (default: true). Not working yet.
- duration Int : Duration in seconds. (0 = Forever) (default: 0). Not working yet.
{
"title": "@_fixme",
"text": "The space is open! Feel free to come!",
"tags": [ "Twitter", "@_fixme" ],
"priority": 2,
"blink": true,
"duration": 600
}
- text String : Text
- screens Array : Identification number corresponding to LCD screens.
- priority Int : From 0 (lowest) to 5 (highest) (default: 0). Not working yet.
- blink Boolean : Make the screen blink on new messages (default: true). Not working yet.
- duration Int : Duration in seconds. (0 = Forever) (default: 0). Not working yet.
{
"title": "@_fixme",
"text": "The space is open! Feel free to come!",
"screens": [ 0, 2, 3 ],
"priority": 2,
"blink": true,
"duration": 600
}