Search found 14 matches
- Monday 29 January 2024 21:31
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
I take a look at this. Thanks.
- Sunday 28 January 2024 22:29
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
This is working. I messed up somwherehabahabahaba wrote: ↑Sunday 28 January 2024 18:36 TryCode: Select all
os.execute('curl -X POST -H "Content-Type: application/json" -d \'{\"text\": \"Test Message\"}\' http://192.168.2.34/api/notify')

Thanks for the help.
- Sunday 28 January 2024 21:38
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
Same result. No error in domoticz, but command not execute. 
From command line

From command line
curl: (3) unmatched close brace/bracket in URL position 13:
Test Message}'
- Sunday 28 January 2024 21:26
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
This works in command line, but not in lua. No error in domotiicz, but command not execute.
Any other easy way to send json to http api in lua?
Code: Select all
curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"Test Message\"}" http://192.168.2.34/api/notify
- Sunday 28 January 2024 20:35
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
Debian bookworm.
Still no luck. No error in domoticz and command not execute.
If I change -d '{\"text\": \"Test Message\"}' to -d "{\"text\": \"Test Message\"}" the command will not work and no error in domoticz,
Still no luck. No error in domoticz and command not execute.
If I change -d '{\"text\": \"Test Message\"}' to -d "{\"text\": \"Test Message\"}" the command will not work and no error in domoticz,
- Sunday 28 January 2024 20:02
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Re: Help with os.execute in lua script
Thanks for the response. No error in domoticz, but command did not execute.
I've tried different ways, but I may be missing something.
I've tried different ways, but I may be missing something.
- Sunday 28 January 2024 16:16
- Forum: LUA
- Topic: Help with os.execute in lua script
- Replies: 12
- Views: 2560
Help with os.execute in lua script
This command work for me in command line: curl -X POST -H "Content-Type: application/json" -d '{"text": "Test Message"}' http://192.168.2.34/api/notify How can I get this command to run in lua? This does not work. os.execute ('curl -X POST -H "Content-Type: application/json" -d '{"text": "Test ...
- Thursday 28 January 2016 12:47
- Forum: LUA
- Topic: Pushnotification when dishwasher/washing machine is ready?
- Replies: 105
- Views: 40363
Re: Pushnotification when dishwasher/washing machine is read
Thanks for the scripts. Working great for my washing machine after some script modifications. My clothes dryer have some issues and sometimes it's stopping before the dry program is finished. So I wanted to know how long the dryer been running before it stopped. Created a simple function that gives ...
- Wednesday 13 January 2016 14:56
- Forum: Suggestions
- Topic: Domoticz uptime on the dashboard.
- Replies: 15
- Views: 5971
Re: Domoticz uptime on the dashboard.
I want to know about this to.
UptimeInMinutes or similar would be a nice feature.
UptimeInMinutes or similar would be a nice feature.
- Saturday 09 January 2016 11:05
- Forum: PHP and all others
- Topic: better hue integration?
- Replies: 30
- Views: 11664
Re: better hue integration?
I read this thread and love the workaround for status update and I want to take the challenge even one step further... How would one be able to use coca switches to trigger a Hue and set a dim state? Background; I would like to reuse my already mounted wireless 433mhz coca wall switches to trigger ...
- Thursday 07 January 2016 12:19
- Forum: LUA
- Topic: Lua script, do i miss something?
- Replies: 9
- Views: 2353
Re: Lua script, do i miss something?
You can change Doorbell Command in Setup -> Settings -> Other
- Monday 28 December 2015 17:48
- Forum: PHP and all others
- Topic: better hue integration?
- Replies: 30
- Views: 11664
Re: better hue integration?
@Kjakan: can you share the script you use with Curl? Sure. I'm still learning lua and programming so it could be better ways to do this. You need to download dkjson.lua from http://dkolf.de/src/dkjson-lua.fsl/home and put it in " /usr/local/lib/lua/5.2 " folder. local HueBridgeIP = "192.168.XX.XX ...
- Tuesday 22 December 2015 9:49
- Forum: PHP and all others
- Topic: better hue integration?
- Replies: 30
- Views: 11664
Re: better hue integration?
I have got this kind of integration as well. The problem is that when I switch lights using non-Domoticz Apps, like Philips Hue app or Hue-TAP, I would like the status in Domoticz to be changed. The status changes, but it seems only visual, not in the database. This makes it unable to use the state ...
- Saturday 12 December 2015 9:14
- Forum: Other questions and discussions
- Topic: Philips Hue blocks 3rd party bulbs in latest app update
- Replies: 2
- Views: 5847
Philips Hue blocks 3rd party bulbs in latest app update
https://www.reddit.com/r/Hue/comments/3 ... ulbs_with/
I don't use 3rd party bulbs for my Philips Hue, but maybe others in this forum do.
I don't use 3rd party bulbs for my Philips Hue, but maybe others in this forum do.