Page 1 of 1

Dashticz spoils the camera url

Posted: Thursday 20 May 2021 6:11
by Mad6
Hi!

I have 3 cameras in dashticz config file (and the domoticz cam settings).
2 camera works fine, but 1 camera doesn't want to.
The Dashticz put junk in the url like this: "&t=83029"
example:
https://[domoticz IP]/camsnapshot.jpg?idx=2&t=83029
http://[camera IP]/webcapture.jpg?command=snap&t=83431&channel=1&user=admin&password=[campass]

If I connect directly to the other two cameras, they work, but the Domoticz link is always broken.

What have I done wrong? :roll:


the config file:

blocks['cam1'] = {
type: 'camera',
imageUrl: "http://[cam1IP]/web/auto.jpg?-usr=[username]&-pwd=[campass]&",
refresh: 2,
width: 6,
height: 200
}
blocks['cam2'] = {
type: 'camera',
imageUrl: "http://[cam2IP]/web/auto.jpg?-usr=[username]&-pwd=[campass]&",
refresh: 2,
width: 6,
height: 200
}
blocks['cam3'] = {
type: 'camera',
isimage: true,
forcerefresh: 1,
slidedelay : 10,
imageUrl: "https://[domoticz IP]/camsnapshot.jpg?idx=1",
refresh: 2,
width: 6,
height: 200
}

Re: Dashticz spoils the camera url

Posted: Thursday 20 May 2021 6:55
by HansieNL
Can you try with http:// instead of https:// and see of that works?

Re: Dashticz spoils the camera url

Posted: Thursday 20 May 2021 7:08
by Mad6
I tried, and received a new junk.

http://[domoticz IP]/camsnapshot.jpg?idx=1&t=87215

I deleted the configuration detail and copied an example to its location. There is no change.

blocks['kapu_cam'] = {
type: 'camera',
title: 'Voordeur',
isimage: true,
forcerefresh: 1,
slidedelay : 10,
imageUrl: "http://[domoticz IP]/camsnapshot.jpg?idx=1",
refresh: 2,
width: 6,
height: 200
}

Re: Dashticz spoils the camera url

Posted: Thursday 20 May 2021 15:14
by Lokonli
Use forcerefresh:0

With the forcerefresh parameter you can influence the caching prevention methods. With forcerefresh:0 setting no caching prevention method will be applied.


Verstuurd vanaf mijn AC2003 met Tapatalk


Re: Dashticz spoils the camera url

Posted: Thursday 20 May 2021 23:14
by Mad6
It's working, thanks!
But only the direct connect to cameras.
Domoticz link show empty image like this:
empty.PNG
empty.PNG (54.93 KiB) Viewed 751 times
When opened in a new tab, the link will download a snapshot from the camera.

Re: Dashticz spoils the camera url

Posted: Friday 21 May 2021 14:28
by Lokonli
Which Domoticz URL do you use?

Verstuurd vanaf mijn AC2003 met Tapatalk


Re: Dashticz spoils the camera url

Posted: Sunday 23 May 2021 0:43
by Mad6
Lokonli wrote: Friday 21 May 2021 14:28 Which Domoticz URL do you use?

Verstuurd vanaf mijn AC2003 met Tapatalk
imageUrl: "http://[domoticz IP]/camsnapshot.jpg?idx=1",