Skip to content

This is an easy example of the usage of Server-Sent Events available on HTML5. It is intended to serve as a screen for displaying data on a large TV in a waiting room.

License

Notifications You must be signed in to change notification settings

Loksly/RemoteScreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RemoteScreen

This is an easy example of the usage of Server-Sent Events available on HTML5. It is intended to serve as a screen for displaying data on a large TV in a waiting room.

You may use the same installation for several screens, each one with the same or different information.

Usage

Deploy both files (screen.html and notify.php) on an web server with PHP support.

Let's say it's url is:

http://127.0.0.1/screen.html

another screen may use another channel:

http://127.0.0.1/screen.html?channel=waitroom

Open the url using your browser (only chromium has been tested) on the screen at the waiting room. Now using another computer, whenever you want to send a message to that screen you can use the notify url:

http://127.0.0.1/notify.php?channel=waitroom

Then on the Message box type something like this: <span style='color:red'>123456</span><br /><span style='font-size:smaller'>BOX 5</span>

on the audio box type: beep.mp3

Then press the submit button and the message with be broadcasted to each screen that has that URL opened.

Changing the channel parameter you may use the same code for all your screens, each one with the same or different information.

About

This is an easy example of the usage of Server-Sent Events available on HTML5. It is intended to serve as a screen for displaying data on a large TV in a waiting room.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published