refresh tile
Hello, maybe it's a dumb question since i'm trying to set things up now first time.
But i'm trying to display the currently playing song image using
curl $(playerctl -p spotify metadata mpris:artUrl) --output test.png && magick test.png -crop 3x3@ +repage +adjoin tile_%d.png
running in a cronjob every couple of seconds, i've set the image location on tiles with no command inside them
The image is now displayed fine but it's not updating on the deck even tho the image on the disk is actually changing (even after unplugging and replugging the deck in, is there any way to "tell the streamdeck" to refresh the tiles or to clear the cache that opendeck displays to force update?
Thanks in advance24 Replies
seems more or less like #Images not properly loading . And please try to use the plugin "Linux Media" from the OpenDeck Dev and see if this is what you want.
I tired out linux media but it straight up just doesn't work, thanks for the redirect though !
anything in the logs?
i mean it works like it pauses/resumes but it does that to the browser and not spotify (can't say for other players), also here i'm trying to do a kind of mosaic not just displaying it on one tile like it does with the play/pause button but now i've made some progress thanks to you, when i close and come back to the Profile it updates the image
If yo uthink it could be the same as in #Images not properly loading I would find it helpful if you could report your findings there also and clos this post so we have it in one place. If you think its a different problem then we can continue here.
@Terrorwolf I think this is different
after reading the whole thread i think it's a bit different too, probably the same root cause tho because the file is updated in the filesystem but not on the deck
unfortunately @Vahyard what you're looking for isn't possible by just setting the image, you'll have to have a plugin that actually updates the image
do you provide some documentation to write a plugin that could do that ?
nah, I think in that issue the image is updated in the filesystem by OpenDeck, and the issue is that it doesn't update properly and goes to an exclamation mark
whereas what you're looking for is file watching, where OpenDeck watches every file to see if it changes, but that isn't the nature of the Stream Deck SDK: the images are copied out of their original location when you set them, and are never rerendered unless a plugin triggers it
any documentation for the Stream Deck SDK should work for OpenDeck
well thanks i'll look into that
sorry to annoy you again but how would one develop a plugin on linux? i've tried to use the Stream Deck SDK but I can't even initialize a project since it cannot spawn reg.exe and i see 0 tutorial online about doing that so am I better off just switching back to windows to develop the plugin and then come back to linux to try it out?
uhhh, what do you mean initialise a project?
running
streamdeck create
ah, are you using the Node SDK?
yeah
yeah ok
that's their newfangled thing
Have a look at this
https://openaction.amankhanna.me/#/3-registration
but instead, I think it's better to just troubleshoot the Media plugin
since I've already made that plugin and it should work
oh I see this
it works fine-ish it's just i want to do something like that:

it just does it to the active media player, so I think the name behaviour as pressing a play/pause button on your keyboard
with the cover art updating
right, i see
yep i think it's an issue on my config for that
but thanks a lot, i'll try this out to try and make what i want haha
no worries, the media plugin is open source if you want to have a look at how it's done there
gives me a reason to finally learn rust then i guess ðŸ˜
welcome to the cult, hope you enjoy your stay
@Vahyard you'll be able to do this in 2.6.0