Hello
Sorry to follow up, just checking if there’s any update on having a random folder where we could put lots of photos for a random display…
Thk’s for this project and good luck!
RR
Hello
Sorry to follow up, just checking if there’s any update on having a random folder where we could put lots of photos for a random display…
Thk’s for this project and good luck!
RR
@rruiz, Anthias doesn’t support folders at the moment. You have to upload the images via the web interface. If you prefer to have the images be displayed at random, you could go to the Settings page (via the web interface), enable “Shuffle playlist”, and click “Save Settings”.
Anthias is always open for contributions. Feel free to create an issue or open a pull request
anytime.
Hey how about something from a nextcloud or drive folder ? As url will it work ? I tired it just displays the html page rather than contents of the folder.
@Farru, Anthias does not currently support cloud folders.
Does it support playing media from a local folder ? Maybe I can make a share of network folder add my slides and videos ? Or generally folders of any sort are not yet supported ?
@Farru, playing media from a local folder is currently not supported as well. Open source contributions are always welcome. Should you have any changes to the source code that you’d like to propose, feel free to open a pull request.
I have got round this by creating five assets; then having a bash script copy an image from a local directory over riding the file referenced in the asset.
#!/bin/bash
IMAGE_DIR=“/home/stevef/screenly_assets/images”
DEST=“/home/stevef/screenly_assets/e38b5cdcb6e8453e9cee58c9ab976b1e.jpg”
INDEX_FILE=“.copy_image1_index”
FILES=($(find “$IMAGE_DIR” -maxdepth 1 -type f -printf “%f\n” | sort))
if [ ${#FILES[@]} -eq 0 ]; then
echo “No files found in $IMAGE_DIR”
exit 1
fi
if [ -f “$INDEX_FILE” ]; then
INDEX=$(cat “$INDEX_FILE”)
else
INDEX=0
fi
if [ “$INDEX” -ge “${#FILES[@]}” ]; then
INDEX=0
fi
SOURCE=“${FILES[$INDEX]}”
cp -f “$IMAGE_DIR/$SOURCE” “$DEST”
echo “Copied $IMAGE_DIR/$SOURCE to $DEST”
NEXT_INDEX=$((INDEX + 1))
echo “$NEXT_INDEX” > “$INDEX_FILE”
@backfour94, thanks for sharing your workaround.
Hello,
I’m interested in your solution to work around the issue of not having a random folder.
Is your script installed on the Raspberry Pi? What do you call i t? For example, script.sh ? Is it automatically started every hour using cron?
Thanks for your help!
Hi there. Yes it runs on the Pi. It is on a cron tab for every five minutes.
Hello,
I’m starting to get into it… Quick question… could the copied image come from a network share mounted on the Raspberry Pi ? ![]()
@rruiz, I haven’t tested it using that setup, but you could try updating the script to copy images from a shared network mount.
Certainly possible, the script could be altered to copy images from anywhere, even using ftp. I just wanted to keep it all local.