Search found 27 matches
- Friday 22 January 2021 14:16
- Forum: Examples & Solutions
- Topic: Notification via nextcloud
- Replies: 1
- Views: 654
Notification via nextcloud
Hello, Based on this topic https://www.domoticz.com/forum/viewtopic.php?f=31&t=35252 I have made simple script to use Nextcloud as notification server. Thx again @waaren ;) return { on = { customEvents = { "notification" }, }, logging = { level = domoticz.LOG_DEBUG, marker = notification, }, execute ...
- Wednesday 20 January 2021 15:53
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
I am afraid I have to wait until the build issue will be solved. If you have a windows system in your network you could test this now. Installing domoticz on windows can be done in a couple of minutes. Only other thing needed would then be curl Ok I have tried install last beta on windows and it ...
- Tuesday 19 January 2021 17:21
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
I don't really understand.Could it be something with a string that needs url encoding?
I am afraid I have to wait until the build issue will be solved.Anyway can you test this one? ( After updating to a later version )
https://github.com/domoticz/domoticz/issues/4546
- Tuesday 19 January 2021 16:47
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
Well the "script" is so far just openUrl function. I wanted to figure it out before I move forward. Below version should give some more info.. Here is output: [/code] 2021-01-19 16:38:00.321 Status: dzVents: Info: nextCloud: ------ Start internal script: notifikace:, trigger: "every minute" 2021-01 ...
- Tuesday 19 January 2021 14:46
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
Of course you are right! Sorry. But anyway the result is not same as posted curl command >> It doesn't work :( What is you domoticz version? The Header section does not look right. Can you send me your script so I can help you adding a response section? It might help in identifying what happens ...
- Tuesday 19 January 2021 14:25
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
The "-d" is missing in postData. The -d is no data but a control switch for curl. -d, --data <data> HTTP POST data --data-ascii <data> HTTP POST ASCII data --data-binary <data> HTTP POST binary data --data-raw <data> HTTP POST data, '@' allowed --data-urlencode <data> HTTP POST data url encoded ...
- Tuesday 19 January 2021 14:10
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
Please can anyone help me how to configure domoticz.openURL function to act like this command? curl -H "OCS-APIREQUEST: true" -X POST https://ADMIN:TOKEN@URL/ocs/v2.php/apps/admin_notifications/api/v1/notifications/USER -d "shortMessage=test" Something like domoticz.openURL({ url = 'https://ADMIN ...
- Tuesday 19 January 2021 13:26
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Re: Push notifications via Nextcloud
Please can anyone help me how to configure domoticz.openURL function to act like this command? curl -H "OCS-APIREQUEST: true" -X POST https://ADMIN:TOKEN@URL/ocs/v2.php/apps/admin_notifications/api/v1/notifications/USER -d "shortMessage=test" At least I am trying to make DzVents script for ...
- Monday 18 January 2021 11:45
- Forum: Suggestions
- Topic: Push notifications via Nextcloud
- Replies: 14
- Views: 1542
Push notifications via Nextcloud
Hi,
I think that a lot of users has installed Nextcloud server along with Domoticz and would be nice to use a Nextcloud as push notification server for Domoticz. Unfortunately I don't have enough skills to write plug-in for that.
I think that a lot of users has installed Nextcloud server along with Domoticz and would be nice to use a Nextcloud as push notification server for Domoticz. Unfortunately I don't have enough skills to write plug-in for that.
Re: setColor [SOLVED]
Now it works even without changes in EventHelpers.lua! https://redandblack.cz/index.php/apps/files_sharing/publicpreview/kqNPTgYrWZ5Jatg?x=2560&y=916&a=true&file=Sn%25C3%25ADmek%2520obrazovky_2020-05-27_11-59-54.png&scalingup=0 It looks like the spaces caused the error. But on previous machine with ...
Re: setColor [SOLVED]
it doesn't works:
Error: Error opening url: http://localhost:8080/json.htm?type=com ... g":0,"b":0}
Re: setColor [SOLVED]
Domoticz runs on Debian Buster and it is installed by
No special configuration...
Code: Select all
curl -L https://install.domoticz.com | bash
Re: setColor [SOLVED]
Couldn't be problem that the domoticz runs on IPv6? Status: WebServer(HTTP) started on address: :: with port 8080 edit: If I update thru IPv6 it is OK: curl -s 'http://:::8080/json.htm?type=command¶m=setcolbrightnessvalue&idx=233&brightness=100&color={"m":2,"t":150,"cw":0,"ww":0,"r":0,"g":0,"b ...
Re: setColor [SOLVED]
... Result is the same. What do you see when you give that command from the commandline of the domoticz system (using curl)? curl -s 'http://127.0.0.1:8080/json.htm?type=command¶m=setcolbrightnessvalue&idx=233&brightness=25&color={"m":2,"t":50,"cw":0,"ww":0,"r":0,"g":0,"b":0}' 401 Unauthorized
Re: setColor [SOLVED]
If I try: return { on = { customEvents = { 'zkouska' }, }, execute = function(domoticz, dz, device, triggeredItem) local URL = 'http://127.0.0.1:8080/json.htm?type=command¶m=setcolbrightnessvalue&idx=233&brightness=25&color={"m":2,"t":50,"cw":0,"ww":0,"r":0,"g":0,"b":0}' domoticz.openURL(URL ...
Re: setColor [SOLVED]
Of course:
setColor [SOLVED]
Hello, After few upgrades ago, error with setColor started occurs... script: return { on = { devices = { 'chodba-switch2-new' } }, execute = function(domoticz, device, roomSwitch) if domoticz.devices'chodba-switch2-new'.level == 30 then domoticz.devices'chodba-switch2-new'.switchOff().silent ...
- Monday 18 May 2020 9:54
- Forum: dzVents
- Topic: bash output pass to dzvents [Solved]
- Replies: 6
- Views: 1927
Re: bash output pass to dzvents [Solved]
now it works perfectly! Thank you so much!
- Monday 18 May 2020 7:52
- Forum: dzVents
- Topic: bash output pass to dzvents [Solved]
- Replies: 6
- Views: 1927
Re: bash output pass to dzvents [Solved]
Hello Waaren, Thanks for tip with ups plugin, I will look at it but I would like to solve this issue anyway. Unfortunately still no luck: 2020-05-18 07:45:00.084 Status: dzVents: Info: get UPS: ------ Start internal script: ups:, trigger: "every minute" 2020-05-18 07:45:00.550 Status: dzVents: Info ...
- Friday 15 May 2020 11:57
- Forum: dzVents
- Topic: bash output pass to dzvents [Solved]
- Replies: 6
- Views: 1927
Re: bash output pass to dzvents [Solved]
Waaren, thank you for your reply. As I wrote previously, it is copy&pasted code from this forum and it is hard for me to understand it. I assume the result of the command is 240.0 ? That is what printed. Yes you are right. It kinda works, but there is in output also the empty line. I want to use ...