Might be interessting for more people, and the forum search function kind of sucks...
Search found 26 matches
- Wednesday 31 January 2018 9:21
- Forum: Bash / PowerShell / Batch etc.
- Topic: pfSense Internet Usage and Bandwidth
- Replies: 28
- Views: 17642
Re: pfSense Internet Usage and Bandwidth
Did you consider creating a Wiki article for it at http://www.domoticz.com/wiki/Main_Page ?
Might be interessting for more people, and the forum search function kind of sucks...
Might be interessting for more people, and the forum search function kind of sucks...
- Saturday 27 January 2018 19:53
- Forum: dzVents
- Topic: [Solved] Script for turning on a charger at specific time
- Replies: 3
- Views: 798
Re: Script for turning on a charger at specific time
... <voeg hier een aantal scheldwoorden in>
Ik wist wel dat het niet iets groots kon zijn, man man man... en maar haakjes tellen
Thanks!
Ik wist wel dat het niet iets groots kon zijn, man man man... en maar haakjes tellen
Thanks!
- Saturday 27 January 2018 19:39
- Forum: dzVents
- Topic: [Solved] Script for turning on a charger at specific time
- Replies: 3
- Views: 798
[Solved] Script for turning on a charger at specific time
Edit: Solved, at the bottom of this post the working version for anyone that's interested.
Hi all,
I've tried to make this script which will turn on a switch (HomeEasy) at weekdays at 23:15 so the attached devices (phones, tablets, etc) can be charged with the cheaper power at night. However I ...
Hi all,
I've tried to make this script which will turn on a switch (HomeEasy) at weekdays at 23:15 so the attached devices (phones, tablets, etc) can be charged with the cheaper power at night. However I ...
- Monday 06 November 2017 11:03
- Forum: Bash / PowerShell / Batch etc.
- Topic: pfSense Internet Usage and Bandwidth
- Replies: 28
- Views: 17642
Re: pfSense Internet Usage and Bandwidth
Anyone tried with the 2.4 branch? Some things got a major update, such as the login screen.
- Saturday 04 November 2017 13:24
- Forum: LUA
- Topic: Can't find what is wrong with this LUA
- Replies: 7
- Views: 1389
Re: Can't find what is wrong with this LUA
You dear sir, are a hero.
The double if statement makes it a lot more easy to read as well.
Thanks, you made my street a bit safer
The double if statement makes it a lot more easy to read as well.
Thanks, you made my street a bit safer
- Saturday 04 November 2017 13:04
- Forum: LUA
- Topic: Can't find what is wrong with this LUA
- Replies: 7
- Views: 1389
Re: Can't find what is wrong with this LUA
Ah damnit, you're right! I forgot the .sh behind the script name!
Changing bash to sh isn't needed, neither is the & but I do get what you try to accomplish with that.
However, this is actually making it worse. Why is the script reacting on a lightswitch while the devicechanged is defined as ...
Changing bash to sh isn't needed, neither is the & but I do get what you try to accomplish with that.
However, this is actually making it worse. Why is the script reacting on a lightswitch while the devicechanged is defined as ...
- Saturday 04 November 2017 12:06
- Forum: LUA
- Topic: Can't find what is wrong with this LUA
- Replies: 7
- Views: 1389
Re: Can't find what is wrong with this LUA
Thanks Jos! ElseIf did the trick, atleast for the error!
Now to fix why it triggers on a random device switch, such as turning on a lightswitch:
2017-11-04 12:02:44.300 User: Admin initiated a switch command (3/Lamp_3/Off)
2017-11-04 12:02:44.348 LUA: Smoke alarm! Sending out alerts.
2017-11-04 ...
Now to fix why it triggers on a random device switch, such as turning on a lightswitch:
2017-11-04 12:02:44.300 User: Admin initiated a switch command (3/Lamp_3/Off)
2017-11-04 12:02:44.348 LUA: Smoke alarm! Sending out alerts.
2017-11-04 ...
- Saturday 04 November 2017 11:12
- Forum: LUA
- Topic: Can't find what is wrong with this LUA
- Replies: 7
- Views: 1389
Can't find what is wrong with this LUA
Hi all,
I've tried to make an event/lua which sends out a Telegram message to either my own alarm group which only contains some family members or to a different Telegram group which also contains neighbours, depending on the parameter given to the bash script (based on the presence of a resident ...
I've tried to make an event/lua which sends out a Telegram message to either my own alarm group which only contains some family members or to a different Telegram group which also contains neighbours, depending on the parameter given to the bash script (based on the presence of a resident ...
- Sunday 08 January 2017 19:26
- Forum: Other questions and discussions
- Topic: FA21RF (/2) can't be controlled from Domoticz?
- Replies: 2
- Views: 1056
Re: FA21RF (/2) can't be controlled from Domoticz?
EDIT: Tried it with:
/usr/bin/curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=resetsecuritystatus&idx=$SMOKE_IDX&switchcmd=Normal"
and gives back this:
HTTP/1.1 200 OK
Content-Length: 51
Content-Type: application/json;charset=UTF-8
Cache-Control ...
/usr/bin/curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=resetsecuritystatus&idx=$SMOKE_IDX&switchcmd=Normal"
and gives back this:
HTTP/1.1 200 OK
Content-Length: 51
Content-Type: application/json;charset=UTF-8
Cache-Control ...
- Sunday 08 January 2017 17:18
- Forum: Other questions and discussions
- Topic: FA21RF (/2) can't be controlled from Domoticz?
- Replies: 2
- Views: 1056
FA21RF (/2) can't be controlled from Domoticz?
Hi all,
I've bought the FA21RF/2 (a set of two) for two reasons:
- In case of a smoke alarm (Panic status) send me a Telegram message via my Telegram bot.
- In case of a breach (motion or magnet contact detection) make the smoke detectors sound an alarm.
The two FA's are in master/slave mode and ...
I've bought the FA21RF/2 (a set of two) for two reasons:
- In case of a smoke alarm (Panic status) send me a Telegram message via my Telegram bot.
- In case of a breach (motion or magnet contact detection) make the smoke detectors sound an alarm.
The two FA's are in master/slave mode and ...
- Saturday 26 December 2015 18:20
- Forum: Suggestions
- Topic: [667] Ability to execute script:/// from Blocky
- Replies: 29
- Views: 19132
[667] Ability to execute script:/// from Blocky
https://www.domoticz.com/forum/tracker.php?p=2&t=667
As asked in https://www.domoticz.com/forum/viewtopic.php?f=23&t=9489 it would be really nice to be able to run system scripts (bash, python, whatever) from Blocky.
LUA is nice, but putting a sleep in LUA will cause it to run multiple times ...
As asked in https://www.domoticz.com/forum/viewtopic.php?f=23&t=9489 it would be really nice to be able to run system scripts (bash, python, whatever) from Blocky.
LUA is nice, but putting a sleep in LUA will cause it to run multiple times ...
- Saturday 26 December 2015 18:08
- Forum: Other questions and discussions
- Topic: Advise for smoke and carbon monoxide (rook en koolstofmon.)
- Replies: 0
- Views: 704
Advise for smoke and carbon monoxide (rook en koolstofmon.)
Hi,
Can anyone recommend a good and preferable cheep smoke and carbon monoxide detector which is supported in Domoticz?
I've seen Flamingo's and Elro's but most only capable of detecting one, or are quite expensive (90,- or more), or are no longer being sold.
I'm aware smoke and CM are hard to ...
Can anyone recommend a good and preferable cheep smoke and carbon monoxide detector which is supported in Domoticz?
I've seen Flamingo's and Elro's but most only capable of detecting one, or are quite expensive (90,- or more), or are no longer being sold.
I'm aware smoke and CM are hard to ...
- Thursday 24 December 2015 14:01
- Forum: Blockly
- Topic: Execute bash from Blocky
- Replies: 9
- Views: 4885
Re: Execute bash from Blocky
Really? Nobody ever encountered such issues?
- Sunday 20 December 2015 21:46
- Forum: Blockly
- Topic: Execute bash from Blocky
- Replies: 9
- Views: 4885
Execute bash from Blocky
Hi,
TL;DR
I've created several LUA scripts which execute bash scripts on their turn.
It works pretty nice, but I can't add a 'wait' or 'sleep' in it without Domoticz complaining about it.
2015-12-20 21:37:06.709 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_device ...
TL;DR
I've created several LUA scripts which execute bash scripts on their turn.
It works pretty nice, but I can't add a 'wait' or 'sleep' in it without Domoticz complaining about it.
2015-12-20 21:37:06.709 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_device ...
- Wednesday 16 December 2015 16:08
- Forum: Suggestions
- Topic: [132] Plugwise Support
- Replies: 5
- Views: 5903
Re: [132] Plugwise Support
Hi,
Sorry to dig up such an old post, but has there been any real progress on this?
For some reason is ErikCramer's answer been tagged as a solution, but I fail to see how.
I'm thinking about buying a Plugwise Source (USB), but I don't have the time to spent hours and hours on researching.
It ...
Sorry to dig up such an old post, but has there been any real progress on this?
For some reason is ErikCramer's answer been tagged as a solution, but I fail to see how.
I'm thinking about buying a Plugwise Source (USB), but I don't have the time to spent hours and hours on researching.
It ...
- Thursday 03 December 2015 11:56
- Forum: PHP and all others
- Topic: Running time script every 30 secs
- Replies: 10
- Views: 4402
Re: Running time script every 30 secs
It works in basic, but it's running multiple times simultainiously now.
Log:
2015-12-03 11:42:25.233 LUA: SGS6; now:2015-12-03 11:42:24; last seen: 2015-12-03 11:39:23
2015-12-03 11:42:25.235 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_Presence.lua
2015-12-03 11 ...
Log:
2015-12-03 11:42:25.233 LUA: SGS6; now:2015-12-03 11:42:24; last seen: 2015-12-03 11:39:23
2015-12-03 11:42:25.235 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_Presence.lua
2015-12-03 11 ...
- Thursday 03 December 2015 8:44
- Forum: PHP and all others
- Topic: Running time script every 30 secs
- Replies: 10
- Views: 4402
Re: Running time script every 30 secs
I don't know how your presence detection works, but maybe you can convert the script to a 'script_device_presence.lua' instead of a 'script_time_presence.lua' ?
A script_device is ran on EVERY device update, so much faster.
Then in the script, check for your device if it has changed:
if ...
A script_device is ran on EVERY device update, so much faster.
Then in the script, check for your device if it has changed:
if ...
- Wednesday 02 December 2015 10:21
- Forum: PHP and all others
- Topic: Running time script every 30 secs
- Replies: 10
- Views: 4402
Re: Running time script every 30 secs
Do you have an example Jos?
I thought it would be easyer to call a second bash script in the LUA that slept for x-seconds, but LUA is screaming in the logs that the script is running longer then 10 seconds.
Apparently that's a bad thing...
I thought it would be easyer to call a second bash script in the LUA that slept for x-seconds, but LUA is screaming in the logs that the script is running longer then 10 seconds.
Apparently that's a bad thing...
- Tuesday 01 December 2015 8:53
- Forum: PHP and all others
- Topic: Running time script every 30 secs
- Replies: 10
- Views: 4402
Re: Running time script every 30 secs
Oh can LUA scripts be started from the shell as well?
I thought it was an interal domoticz thingy.
I thought it was an interal domoticz thingy.
- Monday 30 November 2015 20:50
- Forum: PHP and all others
- Topic: Running time script every 30 secs
- Replies: 10
- Views: 4402
Running time script every 30 secs
Hi,
Anyone knows if it is possible to run the time based scripts more often?
For instance, twice per minute instead of 'only' one time?
I noticed my presence detection isn't fast enough.
Cheers.
Anyone knows if it is possible to run the time based scripts more often?
For instance, twice per minute instead of 'only' one time?
I noticed my presence detection isn't fast enough.
Cheers.