Dynamic Refreshing Image URL

Posted on
Mon Dec 30, 2019 10:41 am
mundmc offline
User avatar
Posts: 720
Joined: Sep 14, 2012

Re: Dynamic Refreshing Image URL

Huzzah!

Posted on
Mon May 25, 2020 8:24 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Dynamic Refreshing Image URL

It's an old Bump but...

Somethings changed as this now fails.

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

Posted on
Mon May 25, 2020 11:56 am
matt (support) offline
Site Admin
User avatar
Posts: 20080
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic Refreshing Image URL

What is the value of the Indigo Variable CAMERA_CURRENT?

When do you get this error? Where are you accessing the Control Page from (control page editor in Indigo macOS client, Safari on your Mac, Indigo Touch on iOS, etc.)?

Image

Posted on
Mon May 25, 2020 12:53 pm
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Dynamic Refreshing Image URL

Hey Matt

This use to work just fine. Haven't used it for a while so indigo/OS have undoubtedly been updated.
Tried all the variations I could think of for:

CURRENT_CAM is being assigned this.
"http://ss_username:ss_password@192.168.0.4:8000/++image?cameraNum=1&width=320&height=240"

The error occurs when that variable is attempted to be placed in the refreshing URL code of a control page:

"http://localhost:8176/variable_url_redirect/redirect?name=CURRENT_CAM"

I'm guessing (hoping) there's a newer better way to achieve this.

Posted on
Mon May 25, 2020 4:51 pm
matt (support) offline
Site Admin
User avatar
Posts: 20080
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic Refreshing Image URL

Duplicate the Control Page then change the URL to be the current value (http://ss_username:ss_password@192.168. ... height=240), then test that duplicate Control Page. Does that give an error? That is, I'm wondering if the problem is specific to using variable_url_redirect.

Image

Posted on
Tue May 26, 2020 4:11 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Dynamic Refreshing Image URL

Hi Matt

"http://SS_USER:SS_PASS@127.0.0.1:8000/++image?cameraNum=1&width=480&height=480"

Works perfectly. So the problem would appear with the variable_url_redirect

Cheers

Posted on
Tue May 26, 2020 4:03 pm
jay (support) offline
Site Admin
User avatar
Posts: 16306
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

That's really odd that it ever worked: the variable_url_redirect plugin doesn't support authentication before the hostname (as mentioned in the very first post on this topic)...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed May 27, 2020 1:52 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Dynamic Refreshing Image URL

jay (support) wrote:
That's really odd that it ever worked: the variable_url_redirect plugin doesn't support authentication before the hostname (as mentioned in the very first post on this topic)...
Hey

So there’s no way of having a variable with authentication in it and using variable_url_redirect ? . The original post was about cycling ip camera images . So it can’t be done ??

Posted on
Wed May 27, 2020 1:55 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Dynamic Refreshing Image URL

matt (support) wrote:
Instead of having SS upload an image, I'd suggest just directly accessing SS's built-in Web server. An example URL that you would stuff into the variable value would look like:

Code: Select all
http://ss_username:ss_password@192.168.0.4:8000/++image?cameraNum=1&width=320&height=240

(assuming you have authentication enabled on SS you can pass in the username/password as shown above)
This isn’t possible then as a variable ????? ( though it did work )

Posted on
Wed May 27, 2020 1:23 pm
jay (support) offline
Site Admin
User avatar
Posts: 16306
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic Refreshing Image URL

pocster wrote:
The original post was about cycling ip camera images . So it can’t be done ??


Well, no, the original post was about the IWS plugin that would load an image from a URL in a variable...

pocster wrote:
matt (support) wrote:
Instead of having SS upload an image, I'd suggest just directly accessing SS's built-in Web server. An example URL that you would stuff into the variable value would look like:

Code: Select all
http://ss_username:ss_password@192.168.0.4:8000/++image?cameraNum=1&width=320&height=240

(assuming you have authentication enabled on SS you can pass in the username/password as shown above)
This isn’t possible then as a variable ????? ( though it did work )


That particular post wasn't referring to using the plugin, but rather a direct reply about using SecuritySpy since that's what your post that directly preceded it was about.

You can have a separate solution which saves off the SS image to a location, then use the refreshing image URL page element to periodically reload the image. But that has nothing to do with this IWS plugin.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Jul 26, 2020 11:12 am
hamw offline
Posts: 1201
Joined: Mar 31, 2008

Re: Dynamic Refreshing Image URL

See if taking off width and height works.

http://ss_username:ss_password@192.168. ... ameraNum=1

Who is online

Users browsing this forum: No registered users and 1 guest