Dashticz IP Cameras - Features, Fixes & Updates

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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;
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post by clinkadink »

What does this json URL display:

Code: Select all

http://192.168.1.5:8080/json.htm?type=cameras
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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"
}
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post by clinkadink »

Great, so its working now?
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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.....
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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:
Last edited by mojojojo490 on Thursday 16 July 2020 17:04, edited 1 time in total.
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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 ;)
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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.
Blah blah blah
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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...
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post by clinkadink »

geertvercamer wrote: Friday 17 July 2020 10:35 helaas...
Please try this post.
https://www.domoticz.com/forum/viewtopi ... 84#p252524
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post by clinkadink »

Good news. Let me know how you get on ;)
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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!
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post by clinkadink »

Do you mean Dashticz or Domoticz?
Please follow guidance here: https://www.domoticz.com/forum/viewtopi ... 29#p252524
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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.
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz IP Cameras - Features, Fixes & Updates

Post 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];
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest