Dashticz - Function - Action on status change

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

User avatar
gielie
Posts: 182
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Function - Action on status change

Post by gielie » Monday 26 June 2017 14:52

repoman wrote:Hi. The popup for the camera's work very well.

Can you center the camera image on the popup?
(or make the popup adjust to the size of the image?)

Thanks,
Pascal
Id like to know if this is possible, now the popup window is too large.
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Function - Action on status change

Post by EdwinK » Monday 26 June 2017 16:07

i would like to see the popup from the camera. All I got is a greyish-white.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
gielie
Posts: 182
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Function - Action on status change

Post by gielie » Tuesday 04 July 2017 14:26

EdKo66 wrote:i would like to see the popup from the camera. All I got is a greyish-white.
Does the camera popup work when you click on the camera?
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Function - Action on status change

Post by EdwinK » Tuesday 04 July 2017 17:33

In the Cam-setting on Domoticz when I click the 'streaming' button, there is a popup with camera-view.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
gielie
Posts: 182
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Function - Action on status change

Post by gielie » Thursday 06 July 2017 9:41

EdKo66 wrote:In the Cam-setting on Domoticz when I click the 'streaming' button, there is a popup with camera-view.
Can you show me your camera code ur using in dashticz? And also the popup code? Ill take a look if i can make something of it
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
DewGew
Posts: 109
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew » Friday 04 August 2017 11:23

Is it possible to play one sound for "on" and a different sound for "off"?
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Function - Action on status change

Post by robgeerts » Friday 04 August 2017 12:26

Not yet, could you add that request to github?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 109
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew » Monday 20 November 2017 14:07

Function updated in latest beta:

Go to slide
Example: Go to a second or third screen wich if filled with camera when a motionsensor is detected in your yard.

Code: Select all

blocks[110] = {}
blocks[110]['gotoslideOn'] = 2;
Example: Go to a second or third screen wich is filled with status devices when ping device has lost connection to google.

Code: Select all

blocks[110] = {}
blocks[110]['gotoslideOff'] = 2;
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

pvm
Posts: 925
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Dashticz - Function - Action on status change

Post by pvm » Tuesday 21 November 2017 1:26

Nice!
That should enable me to go to full screen ip cam upon movement
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Regdul
Posts: 7
Joined: Friday 28 October 2016 11:24
Target OS: Linux
Domoticz version: 3.8153
Location: Lemmer - Netherlands
Contact:

Re: Dashticz - Function - Action on status change

Post by Regdul » Tuesday 21 November 2017 10:26

hey guys,

nice work ! got it working. the only thing is the playing sound is really delayed. it takes about 10 to 20 seconds before playing sound. is it due to my tablet/network? on the phones using domoticz app for android it comes instantly.

is it possible to save the doorbell sound local on the tablet ?

Code: Select all

blocks[1043] = {}
blocks[1043]['width'] = 4; 
blocks[1043]['title'] = 'Deurbel'; /
blocks[1043]['icon'] = 'fa-bell-o'; 
blocks[1043]['switch'] = true; 
blocks[1043]['hide_data'] = true; 
blocks[1043]['show_lastupdate'] = true; 
blocks[1043]['playsound'] = 'sounds/doorbell.ogg'; 
the tablet is android 4.4 and using 2.4Ghz wifi.

thanks in advance

greetings Regdul

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Function - Action on status change

Post by aiolos » Tuesday 21 November 2017 11:21

Isn't that because dashticz only refreshes every X seconds (depending on you setting in CONFIG.js)? Lowering that should play the sound earlier, but will also make the load on domoticz higher.
Contributor to Dashticz
More on my Github profile

Regdul
Posts: 7
Joined: Friday 28 October 2016 11:24
Target OS: Linux
Domoticz version: 3.8153
Location: Lemmer - Netherlands
Contact:

Re: Dashticz - Function - Action on status change

Post by Regdul » Tuesday 21 November 2017 12:08

aiolos wrote:
Tuesday 21 November 2017 11:21
Isn't that because dashticz only refreshes every X seconds (depending on you setting in CONFIG.js)? Lowering that should play the sound earlier, but will also make the load on domoticz higher.
just gave it a try. changed it from 60 seconds to 30 seconds. no effect :cry: still it takes about 10-20 seconds before playing the sound

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Function - Action on status change

Post by aiolos » Tuesday 21 November 2017 12:26

Regdul wrote:
Tuesday 21 November 2017 12:08
aiolos wrote:
Tuesday 21 November 2017 11:21
Isn't that because dashticz only refreshes every X seconds (depending on you setting in CONFIG.js)? Lowering that should play the sound earlier, but will also make the load on domoticz higher.
just gave it a try. changed it from 60 seconds to 30 seconds. no effect :cry: still it takes about 10-20 seconds before playing the sound
I would say try setting the domoticz refresh to 5 seconds in config, like this:

Code: Select all

config['domoticz_refresh'] = '5';
Then every 5 seconds the devices are fetched from domoticz, and it should only take max 5 seconds before the sound is played. Dashticz does not get a 'push' from domoticz, and the connection is not open all the time, so the status change is only known after a new fetch of data.
Contributor to Dashticz
More on my Github profile

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Function - Action on status change

Post by robgeerts » Tuesday 21 November 2017 12:55

Well, I think you misunderstand each other.
My guess is he does see the status change (visually, because of the domoticz refresh) but it just takes time to load the mp3...
I had the same issue on my (old) tablet. Do you load Dashticz through an internal IP or external?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

Regdul
Posts: 7
Joined: Friday 28 October 2016 11:24
Target OS: Linux
Domoticz version: 3.8153
Location: Lemmer - Netherlands
Contact:

Re: Dashticz - Function - Action on status change

Post by Regdul » Tuesday 21 November 2017 13:40

I load dashticz through internal ip.

Is it possible to save the file on the tablet and load it from there?

It seems to me that it has to "buffer".

The only thing is, when manually push the doorbell button,in the interface of dashticz on the. It plays the sound right away.

When i push the doorbell at the frontdoor it takes time before it plays the sound

pvm
Posts: 925
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by pvm » Wednesday 29 November 2017 23:01

DewGew wrote:
Monday 20 November 2017 14:07
Function updated in latest beta:

Go to slide
Example: Go to a second or third screen wich if filled with camera when a motionsensor is detected in your yard.

Code: Select all

blocks[110] = {}
blocks[110]['gotoslideOn'] = 2;
Got this function working nicely. It would be more useful to me when this would also exit the standby screen? Is that possible?
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
DewGew
Posts: 109
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew » Friday 01 December 2017 10:42

pvm wrote:
Wednesday 29 November 2017 23:01
DewGew wrote:
Monday 20 November 2017 14:07
Function updated in latest beta:

Go to slide
Example: Go to a second or third screen wich if filled with camera when a motionsensor is detected in your yard.

Code: Select all

blocks[110] = {}
blocks[110]['gotoslideOn'] = 2;
Got this function working nicely. It would be more useful to me when this would also exit the standby screen? Is that possible?
Thanks for the tip. Now you have this function in the latest beta.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

pvm
Posts: 925
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by pvm » Friday 01 December 2017 22:45

Integrated this evening and working nicely: Dashticz leaves standby mode after slide switch (motion detection on IP Camera in my case)
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Post Reply

Who is online

Users browsing this forum: Siopaos and 2 guests