Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

nwspk/nwspk_board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nwspk_board

The newspeak screens run on flask - using reveal.js to create the slideshow.

This consists of two kinds of machine - one that runs the flask server and the rest that access that server.

There are several difference possible screens, which are chosen randomly (but weighted) when a machine tries to connect.

To send a flash message (or pin a longer message to a screen) use : http://rpi-lounge:5000/message/

This can force one or all screens to display text for a specificed number of seconds. Messages are stored in memory and will not persist if server is reset.

The server restarts at 5 minutes past midnight and the rest at 10 past midnight. (in the sudo crontab).

All monitors will try and kill and restart their browsers once an hour (see crontab - could be adjusted to be less severe)

See setup.txt for instructions on creating a new machine (or just clone existing)

Machine names:

rpi-lounge (currently the server) rpi-drawing rpi-kitchen rpi-pantry-1 rpi-pantry-2

All logic code stored in screen.py

If python and fabric are installed, code can be deployed to the machines using 'fab uploadcore' if changing code or 'fab upload' if changing additional files.

To target a specific machine you can do 'fab target:rpi-lounge uploadcore'.

'fab restart' will restart all machines, similarly can be targeted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published