Dashticz spoils the camera url

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Mad6
Posts: 7
Joined: Thursday 13 May 2021 23:45
Target OS: Windows
Domoticz version:
Contact:

Dashticz spoils the camera url

Post 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
}
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post by HansieNL »

Can you try with http:// instead of https:// and see of that works?
Blah blah blah
Mad6
Posts: 7
Joined: Thursday 13 May 2021 23:45
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post 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
}
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post 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

Mad6
Posts: 7
Joined: Thursday 13 May 2021 23:45
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post 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 749 times
When opened in a new tab, the link will download a snapshot from the camera.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post by Lokonli »

Which Domoticz URL do you use?

Verstuurd vanaf mijn AC2003 met Tapatalk

Mad6
Posts: 7
Joined: Thursday 13 May 2021 23:45
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz spoils the camera url

Post 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",
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest