Search found 12 matches

by rudder66
Wednesday 08 January 2020 22:02
Forum: Bash / PowerShell / Batch etc.
Topic: Play sound in Domoticz (Linux/Ubuntu)
Replies: 7
Views: 2596

Re: Play sound in Domoticz (Linux/Ubuntu)

It does not work in both cases. I checked all the paths to the utilities - they are correct.
by rudder66
Wednesday 08 January 2020 14:44
Forum: Bash / PowerShell / Batch etc.
Topic: Play sound in Domoticz (Linux/Ubuntu)
Replies: 7
Views: 2596

Re: Play sound in Domoticz (Linux/Ubuntu)

No, it does not work, I tried. I do not know why but pactl does not work in Domoticz. As a solution: I created a dummy volume selector and use separate volume control. It works! Example for 70% #!/bin/bash amixer set Master 100% > /dev/null 2>&1 & amixer set PCM 70% > /dev/null 2>&1 & amixer set ...
by rudder66
Wednesday 08 January 2020 0:38
Forum: Bash / PowerShell / Batch etc.
Topic: Play sound in Domoticz (Linux/Ubuntu)
Replies: 7
Views: 2596

Re: Play sound in Domoticz (Linux/Ubuntu)

I use absolute full paths. script:///home/rudder/audio/playmp3.sh The Domoticz service is started as a daemon with the root user. 1129 root 20 0 1070232 47860 16900 S 0,7 1,7 0:12.93 domoticz All bash scripts have root owner. All scripts have 777 permission. -rwxrwxrwx 1 root root 161 янв 8 02:12 pl ...
by rudder66
Tuesday 07 January 2020 23:29
Forum: Bash / PowerShell / Batch etc.
Topic: Play sound in Domoticz (Linux/Ubuntu)
Replies: 7
Views: 2596

Play sound in Domoticz (Linux/Ubuntu)

Hi all! I want to play event sounds in Domoticz on a Linux Mint server. It is important for me to be able to adjust the hardware volume for playing sounds for each event. Sound card integrated. I used several utilities: aplay - only wav plays and there is no way to set the volume. #!/bin/bash aplay ...
by rudder66
Monday 06 January 2020 11:24
Forum: dzVents
Topic: setRGB & dimTo in one function? [Solved]
Replies: 2
Views: 917

Re: setRGB & dimTo in one function? [Solved]

@waaren, you are just power! Everything works as it should!
I also need to go to the wiki page more often to get acquainted with the updates.
My offline dzvents manual did not have such a function. :(
Solved
by rudder66
Monday 06 January 2020 9:51
Forum: dzVents
Topic: setRGB & dimTo in one function? [Solved]
Replies: 2
Views: 917

setRGB & dimTo in one function? [Solved]

Hi all! I use Xiaomi Gateway 2 as a nightlight. To do this, I use a simple dzvents script: return { on = { devices = { 51 } }, execute = function(domoticz, MOTION) local RGB = domoticz.devices(1) local LUXMETER = domoticz.devices(50) if (MOTION.state == 'On' and domoticz.time.matchesRule('between 21 ...
by rudder66
Thursday 02 January 2020 22:12
Forum: dzVents
Topic: Switch events triggers via Dzvents [Solved]
Replies: 2
Views: 935

Re: Switch events triggers via Dzvents [Solved]

Thank you waaren! Solved.
by rudder66
Wednesday 01 January 2020 12:01
Forum: dzVents
Topic: Switch events triggers via Dzvents [Solved]
Replies: 2
Views: 935

Switch events triggers via Dzvents [Solved]

Hi all!
I want to use dzvents to switch triggers of other events.
Is it possible? Tnx.
by rudder66
Monday 09 December 2019 11:15
Forum: dzVents
Topic: JSON request syntax in Domoticz - [Solved] [Solved]
Replies: 6
Views: 2435

Re: JSON request syntax in Domoticz [Solved]

Working!
Many thanks! ;)
by rudder66
Sunday 08 December 2019 12:32
Forum: dzVents
Topic: JSON request syntax in Domoticz - [Solved] [Solved]
Replies: 6
Views: 2435

Re: JSON request syntax in Domoticz [Solved]

waaren wrote: Sunday 08 December 2019 10:14 I don't think this is possible. Can't you leave out data completely ?
What would it look like when using curl ?
see below
Снимок экрана от 2019-12-08 14-29-45.png
Снимок экрана от 2019-12-08 14-29-45.png (83.36 KiB) Viewed 2331 times
by rudder66
Sunday 08 December 2019 8:10
Forum: dzVents
Topic: JSON request syntax in Domoticz - [Solved] [Solved]
Replies: 6
Views: 2435

Re: JSON request syntax in Domoticz [Solved]

Can you try this ? Great, it works! :!: How can I send this to the topic .... / zeroconf / info: { "deviceid": "100000140e", "data": { } } If I write like this: return { on = { timer = { 'every minute' } }, logging = { level = domoticz.LOG_DEBUG }, execute = function(dz) _G.logMarker = _G ...
by rudder66
Saturday 07 December 2019 20:30
Forum: dzVents
Topic: JSON request syntax in Domoticz - [Solved] [Solved]
Replies: 6
Views: 2435

JSON request syntax in Domoticz - [Solved] [Solved]

Dear friends, Help deal with JSON in dzvents. Through the CURL system utility, everything works fine. curl -H "Content-Type: application/json" http://192.168.100.32:8081/zeroconf/switch -X POST --data '{"deviceid":"10008fce77","data":{"switch": "off"}}' Through dzvents - does not work. return { on ...