O
OpenDeck•4mo ago
Vahyard

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 advance
24 Replies
Terrorwolf
Terrorwolf•4mo ago
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.
Vahyard
VahyardOP•4mo ago
I tired out linux media but it straight up just doesn't work, thanks for the redirect though !
Terrorwolf
Terrorwolf•4mo ago
anything in the logs?
Vahyard
VahyardOP•4mo ago
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
Terrorwolf
Terrorwolf•4mo ago
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.
nekename
nekename•4mo ago
@Terrorwolf I think this is different
Vahyard
VahyardOP•4mo ago
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
nekename
nekename•4mo ago
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
Vahyard
VahyardOP•4mo ago
do you provide some documentation to write a plugin that could do that ?
nekename
nekename•4mo ago
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
Vahyard
VahyardOP•4mo ago
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?
nekename
nekename•4mo ago
uhhh, what do you mean initialise a project?
Vahyard
VahyardOP•4mo ago
running streamdeck create
nekename
nekename•4mo ago
ah, are you using the Node SDK?
Vahyard
VahyardOP•4mo ago
yeah
nekename
nekename•4mo ago
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
Vahyard
VahyardOP•4mo ago
it works fine-ish it's just i want to do something like that:
No description
nekename
nekename•4mo ago
it just does it to the active media player, so I think the name behaviour as pressing a play/pause button on your keyboard
Vahyard
VahyardOP•4mo ago
with the cover art updating
nekename
nekename•4mo ago
right, i see
Vahyard
VahyardOP•4mo ago
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
nekename
nekename•4mo ago
no worries, the media plugin is open source if you want to have a look at how it's done there
Vahyard
VahyardOP•4mo ago
gives me a reason to finally learn rust then i guess 😭
nekename
nekename•2w ago
welcome to the cult, hope you enjoy your stay @Vahyard you'll be able to do this in 2.6.0

Did you find this page helpful?