Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valloric/picture-commander
Picture viewer webapp for second screens
https://github.com/valloric/picture-commander
Last synced: 30 days ago
JSON representation
Picture viewer webapp for second screens
- Host: GitHub
- URL: https://github.com/valloric/picture-commander
- Owner: Valloric
- License: apache-2.0
- Created: 2014-11-01T03:15:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T20:11:22.000Z (over 7 years ago)
- Last Synced: 2024-10-13T10:21:04.578Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 4.18 MB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Picture Commander
=================![Picture Commander screenshot](http://i.imgur.com/VHwKSt0.png)
This is a quickly hacked together webapp that makes it possible to click an
image in a gallery in one browser tab and have that image automatically
server-pushed (via [Server-Sent Events]) and displayed in a different tab.
Subsequent image clicks in the gallery replace the displayed image in the
viewer tab.Super-useful when projecting one browser tab to a different screen with say a
[Chromecast][] since the gallery tab can then control the projected one.There's one "admin" view (`/gallery` handler) and one "display" view (`/viewer`
handler). Provide a path to an image folder on server startup. The server will
recursively collect all images in that folder hierarchy.You can also have multiple viewer devices/browsers connected at the same time
and they'll all be updated.Install the server dependencies with `pip install -r requirements.txt`. Python
2.7 required.How to run the server:
```shell
./server.py --images_folder=./test_images --port=8080 --host=localhost
```Then go to for the admin view and to
for the viewer page.Tested with latest Chrome, Firefox and Safari across desktop, Nexus 5/7/9
and iPad. For the love of god, don't expose this server to the Internet.This code is provided on a "works for me" basis and an Apache v2 license.
[chromecast]: http://www.google.com/chrome/devices/chromecast/
[Server-Sent Events]: https://html.spec.whatwg.org/multipage/comms.html#server-sent-events