Page 1 of 1

Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 5:36 am
by pocster
Hey all,

I've searched around and can't see how this would be done.

I have a control page with a refreshing camera image ; I wish it to alternate between 2 different cameras (say staying on each for a few seconds; then looping back).

So I have for the dynamic URL :

http://user:password@127.0.0.1:8000/++i ... height=180

If the URL could come from a variable (rather than hard coded) I *assume* I could write a schedule that simply populates this variable with any camera/stream I wish and just cycle around.
Seems a nice simple solution; but can't see how/if the control pages allow that.

Any ideas?

Ta

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 6:01 am
by pocster
Looking through all similar posts this seems like a common request.
Is the only way to somehow have a fixed URL to a xxx.jpg then have a script of some sort rename the camera file name to xxx.jpg each time
That the best and only method??

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 7:34 am
by ckeyes888
+1. Been wanting that a very long time.

Carl

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 7:43 am
by FlyingDiver
Did you try putting a substitution string (%%v:XXXXXXXX%%) in the URL field?

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 8:03 am
by Different Computers
Commenting here because if substitution strings work in URLs that would be very exciting.

Also, to the OP: Have you looked at the Security Camera plugin? It can manipulate serving of images that are resident as a file, rather than coming from a camera. Perhaps a bit of overkill for what you're looking to do, but I bet it would work.

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 9:03 am
by pocster
FlyingDiver wrote:
Did you try putting a substitution string (%%v:XXXXXXXX%%) in the URL field?


OOOOOOOOOOOOOOOOOO!; that would be magic if it works! - will try it!!!

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 9:10 am
by mat
just tried and didnt work, but someone else should also check :(

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 9:40 am
by pocster
mat wrote:
just tried and didnt work, but someone else should also check :(


Bummer!. I will try later - I'm guessing it won't work though otherwise why would everyone do the file copying fudge?! :roll:

Re: Refreshing URL as variable?

PostPosted: Fri Jul 28, 2017 10:40 am
by jay (support)