Page 7 of 10

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 15:05
by mojojojo490
clinkadink wrote: Thursday 16 July 2020 14:25 See my comment in post above, check your forcerefresh setting on the block. If this doesn't work, post your block config for the camera.
Hi Clinkadink,
Changing the forcerefresh from 2 to 1, doesn't change anything.
Maybe is the problem in de IDX of the camera.... In Domoticz is the camera right configured. See below:

Image

My code in Dashticz is now:

Code: Select all

var CameraVoor    = 'cam1';

// Camera

blocks['cam1'] = {
	type: 'camera',
	imageUrl: 'http://192.168.1.5:8080/camsnapshot.jpg?idx=2',
    videoUrl: 'http://192.168.1.5:8080/camsnapshot.jpg?idx=2',
	refresh: 1,
	width: 6,
	height: 300,
	forcerefresh: 1,
	key: 'cam1'
}

var columns = {}
columns[3] = {}
columns[3]['blocks'] = ['sunrise', 'garbage', 'cam1']
columns[3]['width'] = 4;

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 15:12
by clinkadink
What does this json URL display:

Code: Select all

http://192.168.1.5:8080/json.htm?type=cameras

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 15:18
by mojojojo490
You are right :D
The id is in the code.

The result is:

Code: Select all

{
	"result" : 
	[
		{
			"Address" : "192.168.1.62",
			"Enabled" : "true",
			"ImageURL" : "/Streaming/channels/1/picture?snapShotImageType=JPEG",
			"Name" : "Achterzijde",
			"Password" : "*********",
			"Port" : 8080,
			"Protocol" : 0,
			"Username" : "admin",
			"idx" : "2"
		},
		{
			"Address" : "192.168.1.61",
			"Enabled" : "true",
			"ImageURL" : "/Streaming/channels/1/picture?snapShotImageType=JPEG",
			"Name" : "Voorzijde",
			"Password" : "*********",
			"Port" : 8080,
			"Protocol" : 0,
			"Username" : "admin",
			"idx" : "3"
		}
	],
	"status" : "OK",
	"title" : "Cameras"
}

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 15:23
by clinkadink
Great, so its working now?

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 15:59
by mojojojo490
clinkadink wrote: Thursday 16 July 2020 15:23 Great, so its working now?
sorry ... no, it still doen't work....
also not on id 3.....

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 16:19
by clinkadink
I can only suggest that there is something different about your configuration, perhaps in your CONFIG.js or at the other end.

This is my complete CONFIG.js, the most basic configuration works using Domoticz camera URLs:
Spoiler: show

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.123:8080';

blocks['camera1'] = {
  type: 'camera',
  imageUrl: 'http://192.168.1.123:8080/camsnapshot.jpg?idx=1',
  refresh: 1,
  width: 4,
  height: 400
}

columns = {}
columns[1] = {}
columns[1]['width'] = 12;
columns[1]['blocks'] = ['camera1']
var screens = {}
screens[1] = {}
screens[1]['columns'] = [1]
This is the result:
Image

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 16:54
by mojojojo490
clinkadink wrote: Thursday 16 July 2020 16:19 I can only suggest that there is something different about your configuration, perhaps in your CONFIG.js or at the other end.
Well, i can tell you, now it works !!! Thanks m8.
I do have some challenges.
1. i work remote, so i have to put the correct DNS in it;
2. the right portnumber of my firewall must be forwarded and open;
3. your json link was really fine to identify the IDx;
4. to check the basics, clear the whole file and put in only the necessary.

The result:
Image

Now i will check my script....
Thanks again!

[update 17:03]
:oops: i did put in the wrong dns.... it was .eu instead .nl :oops:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 17:03
by clinkadink
Great to hear its working :)

Like any problem with Dashticz, its always best to temporarily:
  • Remove everything from your CONFIG.js, and only keep the bare minimum (like mine above)
  • If it works, re-add your settings and blocks one at a time CONFIG.js
  • This will allow you to find the problem

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 17:06
by mojojojo490
clinkadink wrote: Thursday 16 July 2020 17:03 Like any problem with Dashticz, its always best to temporarily:
  • Remove everything from your CONFIG.js, and only keep the bare minimum (like mine above)
True! i will keep this in mind ;)

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Thursday 16 July 2020 17:09
by HansieNL
Tip: Try to load Dashticz in a incognito browser if something doesn’t work right away. Than you don’t have cache issues.

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Friday 17 July 2020 10:35
by geertvercamer
clinkadink wrote: Thursday 16 July 2020 14:23
geertvercamer wrote: Tuesday 14 July 2020 21:16 I have the same problem as repoman: no image of the camera
Block definition:
Spoiler: show

Code: Select all

blocks['camera1'] = {
	type: 'camera',
	imageUrl: 'http://192.168.XXX.XXX:ZZZZ/camsnapshot.jpg?idx=1',
	refresh: 1,
	width: 6,
	height: 300,
	forcerefresh: 2,
	key: 'camera1'
}
Please can you try changing forcerefresh from 2 to 1 as shown below?

Code: Select all

blocks['camera1'] = {
  type: 'camera',
  imageUrl: 'http://192.168.XXX.XXX:ZZZZ/camsnapshot.jpg?idx=1',
  refresh: 1,
  width: 6,
  height: 300,
  forcerefresh: 1,
  key: 'camera1'
}
helaas...

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Friday 17 July 2020 10:38
by clinkadink
geertvercamer wrote: Friday 17 July 2020 10:35 helaas...
Please try this post.
https://www.domoticz.com/forum/viewtopi ... 84#p252524

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Friday 17 July 2020 11:07
by geertvercamer
clinkadink wrote: Friday 17 July 2020 10:38
geertvercamer wrote: Friday 17 July 2020 10:35 helaas...
Please try this post.
https://www.domoticz.com/forum/viewtopi ... 84#p252524
I just did.
This seems to work at first sight. However, Domoticz becomes extremely unresponsive, to a point I have to restart it.

when I use the link to the camera itself instead of the link to the domoticz camera, it seems to be better...

I will now slowly rebuild the config.sys.

Thanks for your help so far.

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Friday 17 July 2020 11:10
by clinkadink
Good news. Let me know how you get on ;)

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Sunday 19 July 2020 15:09
by mojojojo490
HansieNL wrote: Thursday 16 July 2020 17:09 Tip: Try to load Dashticz in a incognito browser if something doesn’t work right away. Than you don’t have cache issues.
A good option too!

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Monday 20 July 2020 11:06
by webrazor
geertvercamer wrote: Friday 17 July 2020 11:07 This seems to work at first sight. However, Domoticz becomes extremely unresponsive, to a point I have to restart it.
I have the same problem, before i used the button.camera with a direct link to the cameras.
Yesterday i haved added all 3 camera's to domoticz, but Domoticz becomes extremely unresponsive.
To a point you cant use it anymore.

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Monday 20 July 2020 11:09
by clinkadink
Do you mean Dashticz or Domoticz?
Please follow guidance here: https://www.domoticz.com/forum/viewtopi ... 29#p252524

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Monday 20 July 2020 11:22
by webrazor
clinkadink wrote: Monday 20 July 2020 11:09 Do you mean Dashticz or Domoticz?
Please follow guidance here: https://www.domoticz.com/forum/viewtopi ... 29#p252524
I thought both but will check tonight, at work right now.

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Monday 20 July 2020 16:48
by heggink
Hey @clinkadink,
I tried to replace the camera button but I struggle to control the height of my cameras. The width control works fine but not the height.
I tried all sorts of settings ranging from 150 - 350 with no difference. Any thoughts?

Code: Select all

blocks['backcam'] = {
   type: 'camera',
   imageUrl: 'http://192.168.1.5:8765/picture/2/current',
   videoUrl: 'http://192.168.1.32:8081/',
   refresh: 1000,
   width: 12,
   height: 300
}
Thanks,

H

Re: Dashticz IP Cameras - Features, Fixes & Updates

Posted: Monday 20 July 2020 22:10
by clinkadink
heggink wrote: Monday 20 July 2020 16:48 I tried to replace the camera button but I struggle to control the height of my cameras. The width control works fine but not the height.
I tried all sorts of settings ranging from 150 - 350 with no difference. Any thoughts?
Spoiler: show

Code: Select all

blocks['backcam'] = {
   type: 'camera',
   imageUrl: 'http://192.168.1.5:8765/picture/2/current',
   videoUrl: 'http://192.168.1.32:8081/',
   refresh: 1000,
   width: 12,
   height: 300
}
I have just created a basic CONFIG.js with your block, with a slight correction. You have refresh set to 1000. It was updated about a month ago to seconds. So just put refresh: 1 for one second updates. With this code below, the height works fine. I first set it to 250, then 500 and now 750. Each time it adjusted accordingly. Try temporarily pasting this into your CONFIG.js and see if it works (changing your IP addresses of course).
Spoiler: show

Code: Select all

var config = {};
config['domoticz_ip'] = 'http://192.168.1.100:8080';

blocks['backcam'] = {
  type: 'camera',
  title: 'Back Camera',
  imageUrl: 'http://192.168.1.61/ISAPI/Streaming/channels/2/picture?auth=xyz',
  videoUrl: 'http://192.168.1.61/ISAPI/Streaming/channels/102/httppreview?auth=xyz',
  refresh: 1,
  width: 12,
  height: 750,
};

columns = {};
columns[1] = {};
columns[1]['width'] = 8;
columns[1]['blocks'] = ['backcam'];
var screens = {};
screens[1] = {};
screens[1]['columns'] = [1];