84 Commits

Author SHA1 Message Date
markusbloch
25f491dfc4 PRESENCE: fixing not working timer, when using set [...] statusRequest (additionally to r7184, thanks to Patrick)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7278 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-12-20 17:30:27 +00:00
markusbloch
90f64f2f32 PRESENCE: fixing not working timer, when using set [...] statusRequest
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7184 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-12-10 20:49:34 +00:00
markusbloch
0c512d2c93 PRESENCE: fixing race condition of failed re-init after removed disabled attribute
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-11-11 21:09:42 +00:00
markusbloch
adcf0fd282 PRESENCE: rerouting STDERR to STDOUT for ping; use char class instead of case-in-sensitive regexp (Forum #27558)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6706 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-10-07 21:24:25 +00:00
markusbloch
0191a3894b PRESENCE: try to fix flapping active state (Forum #27255)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6621 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-09-26 15:11:20 +00:00
markusbloch
3df4f84a92 PRESENCE:
- fixing presence detection in mode fritzbox with new Fritz!OS 6.20 (by Markus M.)
- mode fritzbox supports MAC address (by Markus M.)
- fixing not working internal timer in case of a statusRequest when device is disabled
- minor fixes and docu changes


git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6570 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-09-19 10:20:15 +00:00
markusbloch
15cb68f84f PRESENCE: new state event "error" and "disabled"; minor log improvements
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-08-01 21:56:21 +00:00
markusbloch
fac2cf66f4 PRESENCE: harmonize log output
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-08-01 21:24:14 +00:00
markusbloch
825432afd8 PRESENCE: using AnalyzeCommandChain for new "power" set command instead of perl eval
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6255 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-14 20:58:50 +00:00
markusbloch
b915cbc998 PRESENCE: fixing minor mistakes in german commandref
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-12 22:05:31 +00:00
markusbloch
60a1559e2e PRESENCE: add new set command "powerOn" to startup the device via ppowerOnFn given by attribute "powerOnFn"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6245 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-12 22:00:35 +00:00
markusbloch
c40c699297 PRESENCE: fixing wrong presence state for mode lan-ping when device is unreachable
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5434 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-04-04 15:43:23 +00:00
markusbloch
d05245b818 PRESENCE: using usleep also in PRESENCE_ExecuteFritzBoxCMD() subroutine
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-03-10 23:01:01 +00:00
markusbloch
f12af1bca7 PRESENCE: use getlogin and getpwuid to obtain FHEM username; use usleep instead of sleep.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5188 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-03-10 16:58:36 +00:00
markusbloch
b347a761e2 PRESENCE: don't start a local scan in AttrFn before DefineFn has completed.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5031 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-02-23 21:41:47 +00:00
markusbloch
c0950c18ac PRESENCE: fixing present-check-interval to be equal like regular check-interval if it's not set
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4824 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-02-06 19:33:24 +00:00
markusbloch
15594be1e0 PRESENCE: fixing wrong binary check for ctlmgr_ctl
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4628 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-12 10:16:24 +00:00
markusbloch
ba1ee3ddcc PRESENCE: fixing wrong string operator
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4619 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-11 12:00:42 +00:00
markusbloch
e9c854010f PRESENCE: fixing user detection on FritzBox! , replacing tabulator with white spaces
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4614 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-10 21:26:50 +00:00
markusbloch
e69419b471 PRESENCE: adapting commandref to r4341
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4342 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-08 09:39:25 +00:00
markusbloch
04aff4864a PRESENCE: "statusRequest" command for lan-bluetooth mode
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-07 18:39:02 +00:00
markusbloch
3c96ed0630 PRESENCE: new collectord package
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-07 17:16:21 +00:00
markusbloch
fd32832668 PRESENCE: use "w" parameter when busybox ps is used in mode local-bluetooth
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-03 17:28:44 +00:00
markusbloch
f929347a64 PRESENCE: fixing nonworking initialization in mode "lan-bluetooth"; code cosmetics
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4205 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-11-11 20:42:10 +00:00
markusbloch
b312c8d32d PRESENCE: fixing not working re-initialization in mode lan-bluetooth
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-11-02 19:59:09 +00:00
markusbloch
9cce1d4d2f PRESENCE: added docu for check-interval and present-check-interval
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-10-27 16:55:51 +00:00
markusbloch
2d79300b35 PRESENCE: fixing function/shellscript definitions containing spaces
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4102 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-10-23 15:35:37 +00:00
markusbloch
3e920888d5 PRESENCE: new presenced/collectord .deb packages
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4023 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-10-08 19:03:41 +00:00
markusbloch
3a149de031 PRESENCE: using ping command line utility to check presence on Windows based machines.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3831 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-09-01 09:43:08 +00:00
markusbloch
b6cb8d222a PRESENCE: use windows ping command utility for ping checks
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3810 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-27 17:37:24 +00:00
markusbloch
7eb6b94459 PRESENCE: changing ping method for Windows systems to "tcp"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3800 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-26 21:31:52 +00:00
markusbloch
3cc1817507 PRESENCE: remove loglevel attribute
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3749 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-19 17:05:20 +00:00
markusbloch
794b6ccfab PRESENCE: recognize execution failure of ping-check
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3736 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-18 11:54:05 +00:00
markusbloch
8d58f8cfcf removing deprecated GetLogLevel() and replace it with Log3()
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-17 11:32:09 +00:00
markusbloch
a78d9f5608 73_PRESENCE.pm: new presence deb package
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3703 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-15 10:10:15 +00:00
markusbloch
263ac0c06f FHEM/73_PRESENCE.pm: fixing a mistake in the commandref (thanks to Andrew for reporting)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3677 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-08-12 21:57:24 +00:00
markusbloch
2faef7a95b new collectord package
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-07-30 21:57:25 +00:00
markusbloch
e84824047c changing SVN url to new sf architecture, new presenced packages wich support "now" command for instant testing (module adaptions is on horizon)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3443 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-07-17 20:32:47 +00:00
markusbloch
c9c3dbfea1 optimizing disabled-attribute for some race conditions
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3433 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-07-15 22:09:18 +00:00
markusbloch
01d50a624b preventing dead lock of ctlmgr_ctl calls in case of killed thread
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-05-22 16:09:38 +00:00
markusbloch
dc9468c77d new mode "shellscript" (checked in with Rev 3067), documentation updates
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3200 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-05-20 11:31:38 +00:00
markusbloch
615f07086f preventing multiple ctlmgr_ctl calls in mode fritzbox
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-05-19 16:47:50 +00:00
markusbloch
2bc0a62c76 adding configurable ping count attribute
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3193 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-05-18 11:57:34 +00:00
markusbloch
2eee36163c minor logging optimizations for mode fritzbox
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3178 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-05-14 16:47:09 +00:00
markusbloch
69049d16f8 fixing not properly working redefines
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3125 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-27 11:52:32 +00:00
markusbloch
ad7e2f55c2 new mode "function"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3079 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-16 16:27:27 +00:00
markusbloch
d1579a3c3b revert AbortFnArg to normal value, CHANGED-entries
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3073 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-14 22:07:27 +00:00
markusbloch
6158214d21 minor bugfixes for mode "function"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3069 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-13 09:59:27 +00:00
markusbloch
0ad2a42d72 added new mode shellscript and function to use shell script calls and perl function calls
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3067 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-12 21:31:49 +00:00
markusbloch
57ac3aba89 fixing dead PRESENCE definitions after timeouts (using AbortFn from Blocking.pm)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3061 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-09 21:15:38 +00:00