u/Duckytube64

▲ 3 r/tasker

I'm completely new to Tasker, and while I can do some programming, I'm overwhelmed with the volume of options at my disposal. I´m willing to dive into it, but would first like a rough idea of the high-level structure my Task would need so I can dive into the right parts.

My goal: play music from a leftover android phone I keep at home for my birds for a set interval each day for when I'm not at home. The phone will be connected to a bluetooth speaker.
To make the music more pleasant for my birds, I'd like to play a personal playlist on shuffle. If possible, I'd also like the volume to gradually increase and decrease at the start and end of the interval.

This is how far I got:
- I have a Youtube playlist, but Youtube (music) doesn't have tasker-actions nor URL-parameters for turning on shuffle
- There is a YT shuffle site (https://shuffle-playlist.vercel.app/) where you can input the playlist ID in the URL. Tasker opens this website in a browser.
- Issue: a 'Play' div needs to be clicked before the first youtube of the playlist video is loaded on the site: not sure how to interact with the site using Tasker
- Once the first video loads in, it still needs to be started. This is solved by choosing firefox as the browser and enabling autoplay.
- Since I'm not actively using the phone while this should trigger, the task must be executable from sleep. To my understanding this is possible if the phone has no password, which it doesn't.

Does this sound reasonable? Maybe there's an easier approach to this?
Would spotify be less hassle perhaps? I read that the API for shuffle is only for premium users. I could use it, but then I can't listen to music myself while the playlist is on.

Thanks in advance for any replies!

reddit.com
u/Duckytube64 — 8 days ago