Maybe there is an exim4 package for the router? Then you could send emails.
Br
Surroot
Search found 31 matches
- Friday 27 September 2019 17:19
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
- Wednesday 08 August 2018 7:18
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Which state does device_present have?
When it stops there, it means, that it has no update to send to the server.
Can you run without issues?
And does it list your MAC address when you connect to one of your networks?
When it stops there, it means, that it has no update to send to the server.
Can you run
Code: Select all
wl -i eth2 assoclist | awk '{print $2}'
And does it list your MAC address when you connect to one of your networks?
- Sunday 05 August 2018 12:07
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
#! /bin/sh cru a PRESENCE "*/1 * * * * /jffs/presence_detection C4:9F:4C:EE:F1:B7 623" cru a PRESENCE "*/1 * * * * /jffs/presence_detection C4:9F:4C:EF:E9:8A 624" cru a PRESENCE "*/1 * * * * /jffs/presence_detection 58:48:22:A4:4E:D2 625" Besides: I think the path in your cru script is wrong. The ...
- Sunday 05 August 2018 10:57
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
#!/bin/sh mac=$1 idx=$2 device_present=Off domoticz_status=`curl -s "http://192.168.0.141:8080/json.htm?type=devices&rid=$idx" | grep Status | awk '{print $3}' | sed 's/[",]//g'` When I run ./presence_detection 58:48:22:A4:4E:D2 625 The output are [code]root@unknown:/jffs/scripts# ./presence ...
- Saturday 10 March 2018 14:45
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
je ne comprends pas, j'ai tout essayé. je suis désésperé. I do not understand, I have tried everything. I am desperate. :cry: :cry: :cry: :cry: clic on thumbail https://i62.servimg.com/u/f62/17/98/85/70/th/test210.png https://i62.servimg.com/u/f62/17/98/85/70/th/test110.png https://i62.servimg.com/u ...
- Friday 09 March 2018 15:40
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
@vulbas
Please delete your script and create it again - and don't edit it!
Please delete your script and create it again - and don't edit it!
- Sunday 25 February 2018 16:41
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
you forgot to replace $idx with the ID of your switch
- Saturday 24 February 2018 19:29
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
curl -s "http://vulbas:[email protected]:8080/json.htm? type=command¶m=switchlight&idx=$idx&switchcmd=On" <html><head><title>Bad Request</title></head><body><h1>400 Bad Request</h1></body></html>admin@RT-AC88U-2648:/jffs/scripts# There is still a space symbol between json.htm? and type=
- Saturday 24 February 2018 18:17
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
remove "\ " in between htm? and type=
- Saturday 24 February 2018 18:03
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
You could try setting the status manually by executing:
curl -s "http://domoticzUser:domoticzPassword@domoticzIP:domoticzPort/json.htm?\ type=command¶m=switchlight&idx=3692&switchcmd=On"
- Saturday 24 February 2018 17:39
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Ah sorry, I see. "IDX" was intended to be replaced by only a number, not by IDX+number.
So your commands have to look like this:
cru a PRESENCE "*/1 * * * * /jffs/scripts/presence_detection 74:23:44:F7:2C:9B 3692"
Best regards.
So your commands have to look like this:
cru a PRESENCE "*/1 * * * * /jffs/scripts/presence_detection 74:23:44:F7:2C:9B 3692"
Best regards.
- Saturday 24 February 2018 16:17
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
- Tuesday 20 February 2018 19:47
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Hi!
It seems like a mistake happened when you copied the script.
Try copy and paste again and replace the script on your router.
Good luck
It seems like a mistake happened when you copied the script.
Try copy and paste again and replace the script on your router.
Good luck
- Monday 29 January 2018 19:18
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Hey @surroot, when you flashed with Merlin, were all the settings retained or did you have to reconfigure the router from scratch? I have so many reserved IPs, reconfiguring scares me shitless ;-). Hey @heggink, sorry I don't know it anymore, but I think that you have to reconfigure your router ...
- Sunday 31 December 2017 13:30
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
I've created an icon for my presence switches and thought I'd share them with you all. Presence48_On.png for 'On' and Presence48_Off.png for 'Off'. You can insert them into your domoticz by uploading Presence.zip in your menu 'Settings' -> 'More options' -> 'Custom Icons'. Thank you very much! I ...
- Tuesday 20 June 2017 14:17
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
I am a little bit of a noob with Linux. I installed dd wrt on my router but when I try to install this script my router keeps forgetting the jffs folder. Does anybody have this script working on a dd wrt router? Hey there! Maybe this page has an answer for you. Especially the " Directions for ...
- Sunday 19 March 2017 8:20
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Hi. I am new to Domoticz and I have got stuck. I think I´ve tried "everything" but I always get the message: admin@RT-AC66U-9A08:/jffs/scripts# ./presence_detection 34:A3:95:7B:1D:84 127 [: Off: unknown operand This is my "presence_detection". What is wrong? Hey! I'm sorry, I can't find an error in ...
- Wednesday 22 February 2017 20:23
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Hey! OK, but I actually didn't criticize your method . I'm sorry, I didn't want to sound that rude... :? What I did criticize was Apple, for once introducing the non-configurable "go-to-sleep" feature, that was forced upon the users. Well, I never had the problem, that my iPhone went to sleep when ...
- Tuesday 21 February 2017 17:54
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
No matter what solution you try to implement, don't ever expect your iPhone to constantly "stay awake". It simply won't, unless you have it plugged into a charger at all times. The decision to put the interface to sleep after a pre-defined time, is sadly not yours. Apple has already made the ...
- Sunday 12 February 2017 17:41
- Forum: LUA
- Topic: Yet another presence detection method
- Replies: 135
- Views: 39013
Re: Yet another presence detection method
Sorry I'm a beginner and have big problems with programming lua, but most copying and pasting. My question is simply this, could this be implemented of Domoticz. Or is that too complicated? You choose your router from a list, then downloading something _ which one can instalera on the router. It ...