All I got was the headphones icon. If you put the image address into a browser the artwork comes back fine. So wondering what I need to do from here? Thanks
Try a configuration like this (note I put “blank” in the On). To toggle the update you would just need to select on with webCoRE or RM (or some other external trigger).
Thanks, I tried this out tonight. It got me almost there. Everything worked fine when I was testing on my desktop - using Safari on the Mac. However, on my touchscreens running Fully Kiosk I couldn’t get the image to update unless I change pages. I took a quick look at the options in fully but none of the cache options (that I found) solved this. I am sure that there is an option that I am missing in the settings. Any thoughts? Thanks.
I am using Fully Kiosk 1.43-fire, and 1.43.1. Both are doing the same thing. There are literally 500 switches in Fully Kiosk so it’s quite possible that I have the wrong switch set?
I am triggering the change remotely through my connection to homeseer - which is where the images are being created. So upon image write, click ON button in Hubitat device. However, I have also tried manually pushing the ON button in hubitat and same behavior.
Some of the Fully Kiosk Versions may have a setting for determining how to handle mixed content. FKB Settings > Advanced Web Settings > Mixed Content Mode. Setting this to ‘Always Allow Mixed Content’ should allow HTTP images on an HTTPS page.
(1) Disable the “Enable Switch To act like Momentary button” and save. Then (2) select “ON”, wait until you see the headphones in the tile (since ‘blank’ is not something it expects and you should see ‘blank’ in trackData), then (3) select “OFF” and the image should appear after the trackData update.
If that works - we can slow down the momentary bounce.
Thanks - I am testing in Safari in a Mac and it is working fine. So I loaded up Chrome and it didn’t work. I checked the console and got the following - not sure if that is helpful - but it is not displaying the image at all in chrome.
Perhaps I should store these files and serve them up with a https connection? I have never done that but I am sure I can figure it out?
I tried changing the setting as suggested in fully kiosk and it didn’t make any difference.
That would probably work and you would need to get a SSL cert to move to https. Doing the self-cert route might still be probablematic on Chrome since they often flag this as well.
On FKB, update your Settings → Advanced Web Settings to allow mixed Content (Josh thought this might work in a comment above).
Sorry, I should have mentioned that. I did try the mixed content settings on Fully and it didn’t work. I also tried playing the cache settings - telling it to never cache in the hopes that it would load the picture each time. Didn’t work.
I am not using chrome - only using that for testing. In fully I don’t know what the issue is - I am assuming it is the mixed mode as reported by chrome.
So I just got my Synology NAS online using Apache. Certificate is installed. FQDN is setup. So tonight I hope to start testing with this in the hopes that it will work. Stay tuned and thanks for the help!
ok, I got my https server up and running on my NAS - works fine - but image refresh still doesn’t work.
Below is a link to the file I am testing with if it gives any clues? Ironically the whole time I was writing the post the image was updating in Safari!
I set Mixed Content Mode to always allow mixed content, I also played around with the cache settings and it didn’t make any difference.
I am not getting any errors in Chrome console that I can see.
I saw that you are storing static images in Hubitat storage. Is there a way I could write these images to that location dynamically or some other location? Would that make a difference? Thanks.
Holy cow, it works! Doing the happy dance here. Tested in Chrome and Fully. I am even getting fancy and inserting this animated GIF in the on position so it displays while the image is changing.
That was more for experimenting but it worked well so will I will be playing around with that. Now I need to update my homeseer scripts to write out all of the images to my NAS and we will be good to go.
The SSL on the NAS turned out to be a lot easier than I thought. After wasting $20 with my domain registrar to get a personal certificate I discovered that Synology offers a free service to do this. Check it out:
Awesome, wow that was a drill. Not sure why I didn’t have the cache problem the first time around. I updated the DTH to have a preference to put the random=X in the URI. With this change, you really do not need to enable the ‘on’ since it is changing the image which will trigger the tile update. However, I do like your transition GIF! Curious to see how you go.
@Bloodtick_Jones Been playing around with this and everything is working nicely. A question about the single tap and double tap. When I place images in the single tap and double tap and then single tap or double tap on the tile - for single tap I get a play transport icon but no image change; and double tap shows a pause transport icon and no image change. What is it supposed to do here? Thanks.
If you have the “Toggle Switch when Tile…” is enable you would get the images in the ‘on’ and ‘off’.
If that is ‘off’ and you have the “Enable image and text update…” enabled it should show the image that is showing in the “Image when Tile is single/double tapped” fields.
Honestly, I built this for an entirely different purpose to show real time images from a DTH and SmartApp for Fully Kiosk Browser that will update images captured real time when triggered like a motion sensor. These settings are there for anyone that needs them.
I do know the ‘double tap’ does not work on a iPhone, but didn’t chase it down why.
Post your preference configuration (hide the URLs) and I can troubleshoot if things are acting funny.
Thanks - everything is working fine for my application. I am manually controlling the on/off state so I can include the interim image. I was just curious about the other options and the other controls - mute, play, pause, etc. I am working on developing tiles that (in addition to displaying the coverart) also include audio controls for each channel, etc.
This DTH was really ‘trickery’ around how SmartTools will real time update images. That requires the use of the capability "Music Player" which includes all the other controls, but have no logic behind them. If you can describe your use case, there could be some ways to solve, but normally that would be done with the physical device DTH and not a virtual DTH.
My use case is likely a little atypical so I wouldn’t want to head too far down a rabbit hole. My issue is that my audio setup is not using Hubitat physical devices. Currently all of my whole house audio is managed through my homeseer system. I am using Nuvo Essentia equipment through RS-232 control. And all source inputs are controlled through RS-232 or IP.
In this case, I don’t know that there is much need to convert this over to Hubitat as there are no native controls so I have taken the approach of setting up virtual controls in Hubitat that mirror the functionality and using that to bring into Sharptools.
So I take advantage of a lot of the virtual devices to get my work done. The complicated way is to create a virtual switch for each function - play, stop, etc. and trigger rules/events based on this. The more graceful way is to use more complex devices that provide multiple functions at once.
In my particular implementation I have 6 channels throughout the house and have functionality to display cover art (which is working nicely thanks to your device) - then of course transport controls - play, stop, etc. Then the ability to select from presets, playlists, etc. Since these same six channels are in all rooms, the controls remain the same throughout the house. The only thing that varies by room is the local volume, selection of the channel, etc.
So my goal is to combine all channel specific functionality in one device. I have created a separate device for each channel. And that is when I started noticing the other default buttons and thinking I could use those as well. All I need to do is expose them in Sharptools - that part I am still learning how to do.