A cgi-bin python script that picks up a random image from a directory and its subdirectories and show it in a browser.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
lowrussia ae6671fff6 second commit pirms 5 gadiem
cgi-bin second commit pirms 5 gadiem
73361225_10216424132528545_9125637217060913152_n.jpg first commit pirms 5 gadiem
EHgeefUX0AAj51i.jpeg first commit pirms 5 gadiem
README.md second commit pirms 5 gadiem

README.md

Image Roulette

A cgi-bin python script that picks up a random image from a directory and its subdirectories and show it in a browser.

Usage

  1. Place image-roulette.py into a directory named cgi-bin
  2. Navigate to the directory containing the cgi-bin one
  3. Launch a server with the command: $ python3 -m http.server --cgi
  4. Open your browser on: http://0.0.0.0:8000/cgi-bin/image-roulette.py
  5. Press ENTER to load a new image

TODO

  • insert main directory and title of gallery as parameters
  • add automatic mode (reload every x seconds)