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.
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.