Search found 26 matches

by void
Wednesday 31 January 2018 9:21
Forum: Bash / PowerShell / Batch etc.
Topic: pfSense Internet Usage and Bandwidth
Replies: 28
Views: 15037

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... :)
by void
Saturday 27 January 2018 19:53
Forum: dzVents
Topic: [Solved] Script for turning on a charger at specific time
Replies: 3
Views: 701

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 :D

Thanks!
by void
Saturday 27 January 2018 19:39
Forum: dzVents
Topic: [Solved] Script for turning on a charger at specific time
Replies: 3
Views: 701

[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 keep ...
by void
Monday 06 November 2017 11:03
Forum: Bash / PowerShell / Batch etc.
Topic: pfSense Internet Usage and Bandwidth
Replies: 28
Views: 15037

Re: pfSense Internet Usage and Bandwidth

Anyone tried with the 2.4 branch? Some things got a major update, such as the login screen.
by void
Saturday 04 November 2017 13:24
Forum: LUA
Topic: Can't find what is wrong with this LUA
Replies: 7
Views: 1270

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 :D
by void
Saturday 04 November 2017 13:04
Forum: LUA
Topic: Can't find what is wrong with this LUA
Replies: 7
Views: 1270

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 ...
by void
Saturday 04 November 2017 12:06
Forum: LUA
Topic: Can't find what is wrong with this LUA
Replies: 7
Views: 1270

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 12 ...
by void
Saturday 04 November 2017 11:12
Forum: LUA
Topic: Can't find what is wrong with this LUA
Replies: 7
Views: 1270

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 ...
by void
Sunday 08 January 2017 19:26
Forum: Other questions and discussions
Topic: FA21RF (/2) can't be controlled from Domoticz?
Replies: 2
Views: 1007

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&param=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: no ...
by void
Sunday 08 January 2017 17:18
Forum: Other questions and discussions
Topic: FA21RF (/2) can't be controlled from Domoticz?
Replies: 2
Views: 1007

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 are ...
by void
Saturday 26 December 2015 18:20
Forum: Suggestions
Topic: [667] Ability to execute script:/// from Blocky
Replies: 29
Views: 16490

[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 ...
by void
Saturday 26 December 2015 18:08
Forum: Other questions and discussions
Topic: Advise for smoke and carbon monoxide (rook en koolstofmon.)
Replies: 0
Views: 673

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 ...
by void
Thursday 24 December 2015 14:01
Forum: Blockly
Topic: Execute bash from Blocky
Replies: 9
Views: 4736

Re: Execute bash from Blocky

Really? Nobody ever encountered such issues?
by void
Sunday 20 December 2015 21:46
Forum: Blockly
Topic: Execute bash from Blocky
Replies: 9
Views: 4736

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_TG ...
by void
Wednesday 16 December 2015 16:08
Forum: Suggestions
Topic: [132] Plugwise Support
Replies: 5
Views: 5814

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 would ...
by void
Thursday 03 December 2015 11:56
Forum: PHP and all others
Topic: Running time script every 30 secs
Replies: 10
Views: 4201

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 ...
by void
Thursday 03 December 2015 8:44
Forum: PHP and all others
Topic: Running time script every 30 secs
Replies: 10
Views: 4201

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 ...
by void
Wednesday 02 December 2015 10:21
Forum: PHP and all others
Topic: Running time script every 30 secs
Replies: 10
Views: 4201

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...
by void
Tuesday 01 December 2015 8:53
Forum: PHP and all others
Topic: Running time script every 30 secs
Replies: 10
Views: 4201

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.
by void
Monday 30 November 2015 20:50
Forum: PHP and all others
Topic: Running time script every 30 secs
Replies: 10
Views: 4201

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.