-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Is it possible to automatically cycle through art every X seconds? #61
Comments
@continue47 There are four ways you can achieve this: 1) a simple one that wouldn't loop forever but is easy to test, 2) one where you can loop forever, the UI can be improved a bit, 3) more python code than 2) for silent remote updates, 4) if you just want to cycle arts and don't care about arttime's other functions just use artprint instead (it centers too).
The cycling would end when the last character is encountered (
Don't end the name with _Xs (you can but don't), and control the delays from python to insert even random delays if you want... Pressing Ctrl-c (or equivalent interrupt keybinding for your computer) ends SCRIPT mode of arttime, and the control will be transferred to your computer again. You can restart the cycle again from within arttime by pressing k, and then passing the path to same file/fifo. I would recommended reading the section ORCHESTRATING too and seeing a GIF in the release notes that shows how arttime can be used to display dynamic information from external feeder programs (weather data in this case): https://github.com/poetaman/arttime/releases/tag/v2.3.0
Side note: to learn/test key how arttime makes meaning of sequences, the easiest is to pipe it into arttime:
|
I took your advice and used artprint --random from python. It has all the options I needed including setting the colors for the art and title, centering the art, and setting a max width, great stuff! Thank you for such a detailed reply! |
@continue47 You are welcome! Please feel free to share an image or video of your raspberry-pi + CRT + arttime setup. If it's a nice shot, I might consider pinning it in the wiki. |
@continue47 You might want to update to the latest commit 2ef1545. It should be visibly faster on slow machines like raspberry pi. |
I have an old crt that I would like to use to display random ASCII art, I hooked it up to a raspberry pi and while I found that I can start arttime with --random I couldn't figure out a way to make it automatically change the art at a specific interval.
I ended up writing a python script to kind of do this - just reads from the arttime directory where the actual ascii files are stored and refreshes at an interval - but it's not ideal since it doesn't nicely center them as arttime.
Is there a way to achieve something like this with arttime?
Thanks.
The text was updated successfully, but these errors were encountered: