Dashticz - Function - Action on status change

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Re: Dashticz - Function - Action on status change

Post by gielie »

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.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Function - Action on status change

Post by EdwinK »

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 (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Function - Action on status change

Post by gielie »

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?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Function - Action on status change

Post by EdwinK »

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 (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Function - Action on status change

Post by gielie »

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
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew »

Is it possible to play one sound for "on" and a different sound for "off"?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by robgeerts »

Not yet, could you add that request to github?
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew »

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 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Dashticz - Function - Action on status change

Post by pvm »

Nice!
That should enable me to go to full screen ip cam upon movement
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
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 »

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: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Function - Action on status change

Post by aiolos »

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 »

aiolos wrote: Tuesday 21 November 2017 10: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: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Function - Action on status change

Post by aiolos »

Regdul wrote: Tuesday 21 November 2017 11:08
aiolos wrote: Tuesday 21 November 2017 10: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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by robgeerts »

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?
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 »

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: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by pvm »

DewGew wrote: Monday 20 November 2017 13: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, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Function - Action on status change

Post by DewGew »

pvm wrote: Wednesday 29 November 2017 22:01
DewGew wrote: Monday 20 November 2017 13: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 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by pvm »

Integrated this evening and working nicely: Dashticz leaves standby mode after slide switch (motion detection on IP Camera in my case)
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
sailmich
Posts: 232
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Re: Dashticz - Function - Action on status change

Post by sailmich »

Any chance to use own mp3 sound files for change of status? Would be cool to get information by voice e.g. all blinds are closed, humidity is to high open the window.......
I have a friend with a very warm voice I would like to record sentences and use them for notifications. :D
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Function - Action on status change

Post by robgeerts »

You can add them to the custom directory, and use something like:

Code: Select all

blocks[110] = {}
blocks[110]['playsound'] = 'custom/warmvoice.mp3';
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest