Comment on Display A ‘Song Of The Day’ In MOTD From Navidrome Playlist
non_burglar@lemmy.world 4 hours ago
I would have just baked an api call to navidrome in a shell script with an interpreter like js and some bash variable manipulation and called it directly from motd.
For security, you may want to look at vault for secrets management so you don’t have to expose plaintext secrets in your script.
Yes, you are correct. For what I’ve got surrounding it as far as security wise, I feel fairly secure, not 100%, but more prudence would be much better. Would you have any recommendations maybe in which direction I could go in?
Oh well, see now you’re just showing off. LOL I may do that at some later date. I actually had a good time doing what seems like a simple thing, and I learned a thing or three, so a good time was had all around.
non_burglar@lemmy.world 2 minutes ago
Well, it’s not super difficult. I sort of mash my way through getting data by api by just using curl and then clumsily filtering the output.
You’ve already got the mechanism to get the data, I think your solution is fine. My way to do it is just a relics from my time working with a bunch of devs.