Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
/ totem Public archive

Let's show some tweets on a totem in the hackerspace

Notifications You must be signed in to change notification settings

fixme-lausanne/totem

Repository files navigation

Totem

Let's show messages in the Hackerspace!

Installation

dispatcher.py

Web Manager

See Web Manager README

How to Run

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

Service

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

JSON for the Web Manager

Required

  • text String : Text
  • tags Array : Tags that will be handle, filter, dispatch by the Web Manager.

Optional

  • 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.

Example

{
	"title": "@_fixme",
	"text": "The space is open! Feel free to come!",
	"tags": [ "Twitter", "@_fixme" ],
	"priority": 2,
	"blink": true,
	"duration": 600
}

JSON for the Dispatcher

Required

  • text String : Text
  • screens Array : Identification number corresponding to LCD screens.

Optional

  • 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.

Example

{
	"title": "@_fixme",
	"text": "The space is open! Feel free to come!",
	"screens": [ 0, 2, 3 ],
	"priority": 2,
	"blink": true,
	"duration": 600
}

How does it works?

Diagram

Totem Diagram

About

Let's show some tweets on a totem in the hackerspace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published