Dynamic Refreshing Image URL

Posted on
Tue Jul 13, 2021 4:32 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic Refreshing Image URL

Okay, there were a few issues going on here. First, there was a minor bug/upgrade that needed to be made to the Variable URL Redirect web server plugin. I've updated the download here. I also updated the Installation instructions on that page. Note for Indigo 2021.1 the installation folder path has changed. The Indigo 2021.1 installer probably copied your old plugin to the correct location, so you should find the old version there. Replace it with the new version.

However, there was also a more general bug in Indigo 2021.1's new internal Web Server that caused that plugin to fail to load and start correctly. I have that fixed in 2021.1.1, but we haven't built an installer for it yet. If we end up building an internal beta installer before we release it I'll send it to you so you can try it out. Go ahead and install the new Variable URL Redirect plugin now though, then all you will need is the new installer once it is available and it should start working.

Image

Posted on
Tue Jul 13, 2021 10:44 pm
EagleDTW offline
Posts: 69
Joined: Apr 30, 2020

Re: Dynamic Refreshing Image URL

Thanks, Matt. I’ll give it a try and wait for a new installer.

Much appreciated,
Daniel

Posted on
Thu Jul 15, 2021 5:16 pm
EagleDTW offline
Posts: 69
Joined: Apr 30, 2020

Re: Dynamic Refreshing Image URL

Hi Matt,

That fixed it and the Web Assets reference has the images in the right public folder now after converting. Seems to be fully functional, for my implementation at least (haven't tried a restart though, if there is an error on load I wouldn't catch it yet).

Thank you for the update to the documentation and new plugin.

Best regards,
Daniel

Posted on
Thu Jul 15, 2021 8:31 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic Refreshing Image URL

Great, thanks for the report. I thought you would need the bug fix in Indigo's Web server, but it sounds like you aren't hitting that particular issue.

Image

Posted on
Sun Jul 25, 2021 2:14 pm
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

I’m having a similar issue with the URL Redirect plugin after updating from 7.5 to 2021.1.
The URL format I used in the control pages was:

http://USER:PASSWORD@localhost:8176/variable_url_redirect/redirect?name=Satellite_Image_1

But that gave me the following error:

Error (client) control page image URL failed to load: https://xxxx:xxxx@localhost:8176/variab ... te_Image_1
Error (client) An SSL error has occurred and a secure connection to the server cannot be made.

So I changed http: for https: like so:

https://USER:PASSWORD@localhost:8176/variable_url_redirect/redirect?name=Satellite_Image_1

But now I get the following error:

Web Server https://localhost:8176/variable_url_red ... te_Image_3 load error: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:727)>

I have downloaded the plugin again, reinstalled and restarted the Indigo Server, but issue remains the same.
Any help?
Thanks.

Posted on
Sun Jul 25, 2021 2:52 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

The web server doesn't support SSL directly (only via the reflector).

Is the URL in your variable an HTTPS url, and is it pointing to a valid HTTPS server?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Jul 27, 2021 2:50 pm
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

All was working perfectly until I updated to 2021.1.
In version 2021.1, with the original URL redirection:

http://USER:PSWRD@localhost:8176/variable_url_redirect/redirect?name=Satellite_Image_1

I get this error:

Error (client) control page image URL failed to load: http://USER:PSWRD@localhost:8176/variab ... te_Image_1
Error (client) The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.


The URL in the variable is (for instance):

https://estaticos.smn.gob.ar/vmsr/satel ... 00022Z.jpg

And as you could check, it is a valid one.


UPDATE

Don´t know why, but re-edited the Control Page with the issue, and altho while editing I still get the above mentioned error messages, once saved, the page works properly and now loads the images correctly, with no error messages in the Indigo log.

Posted on
Tue Jul 27, 2021 3:25 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

Ah - ok, I think we understand the issue now. We'll look into the issue, but it is a Mac Client error so it should work when hitting it from iOS or a browser.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Jul 27, 2021 3:30 pm
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

Thanks anyway.
FYI, now is working well under iOS (Indigo Touch iPhone and iPad) and on macOS, Safari and Chrome.

Posted on
Thu Apr 27, 2023 1:26 pm
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

Hi there.

Since I installed the latest version of Indigo (2022.2.2), the URL redirect to load images from the web isn't working anymore.
I get the following error on the Indigo log for each image URL i'm trying to load:

Web Server Warning undefined page for request /variable_url_redirect/redirect from 127.0.0.1
Web Server Error /web/refreshingimage: file not found or unavailable at 'http://localhost:8176/variable_url_redirect/redirect?name=Satellite_Image_1'


The variable containing the URL hasn't been changed in any way from the previous version and the URL itself is valid.

Did I miss to do something after installing the last version of Indigo?

Thanks for your help.

Posted on
Thu Apr 27, 2023 1:58 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

The URL you are specifying (/variable_url_redirect/redirect) is for an old IWS plugin, which no longer work in Indigo 2022.2 and later.

Can you describe your use-case to us to see what alternatives there are? Where are you getting the URL that's being populated into the variable? How often does it change, etc?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Apr 29, 2023 2:14 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Dynamic Refreshing Image URL

Ahh of course, that would explain why I was having problems with this too like @betacruxis. Is there any plans to reinstate this functionality in the new web services? I use it to cycle between multiple camera views on various control pages. I’ve not been using the tablets for the last few months as I’ve been in the process of refurbishing parts of the house, so I thought I’d done something when setting them back up again!


Sent from my iPhone using Tapatalk Pro

Computer says no.

Posted on
Sat Apr 29, 2023 7:10 am
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

Thanks for your answer Jay.

In my case , the URL populated into the variable, is an image from a weather service:

https://estaticos.smn.gob.ar/vmsr/satelite/TOP_C13_SA_ALTA_20230429_123020Z.jpg

Note that if you try this URL, it might be not available, due to its time-related validity life.

The string for this URL is generated by a script that tries it on the web to verify its existence, until the "time group" at the end of the string is a valid one.
Once proven valid, this string is populated into the variable Satellite_Image_1 in this case.
Then when it comes to redirect this variable as the source of the image displayed in a control page, the error comes up.

The source image URL might change every 10 minutes or so, and the script runs every 5 minutes to check for that change.

Posted on
Sat Apr 29, 2023 10:08 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

We'll look at this for a future release.

In the meantime, since you have a script that's already hitting the URL, I'd recommend that you have your script download the image locally then use a file:/// URL in the refreshing image field. I believe that would accomplish the same thing.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Apr 29, 2023 10:13 am
Betacruxis offline
Posts: 56
Joined: Apr 03, 2010

Re: Dynamic Refreshing Image URL

Thanks Jay.
I’ll look into that.

Who is online

Users browsing this forum: No registered users and 7 guests