For example:
Of course, database file btlog.db must already exist (the command for DB initialisation is in my first post).Code:sqlite3 btlog.db 'insert into devices (mac, name, enabled) values ("11:22:33:44:55:66", "MyDeviceName", 1)'
For example:
Of course, database file btlog.db must already exist (the command for DB initialisation is in my first post).Code:sqlite3 btlog.db 'insert into devices (mac, name, enabled) values ("11:22:33:44:55:66", "MyDeviceName", 1)'
New version:
- additionally to multiple probing ('treshold' times) of device before considering it as away, there is another (i think better) function - OUT events are written after 'writedelay' successive unsuccessful probes, but with time of first unsuccessful probe. Status is updated immediately
- Reduced disk writes by storing absolute time when a device became unavailable instead of counting cycles of being away.
I have also added a simple script for sending OBEX notes to mobile phones (tested on several Nokias). It is used in example of script run on IN event to send welcome message to the incoming phone.
Last edited by taylor729; 10-11-2009 at 18:05.
./S99local: line 30: syntax error: "(" unexpected (expecting "fi")
in btproximity_0.3
nice sh /opt/btproximity/blueproximity.sh" >/dev/null 2>&1 &
I think must be
nice sh /opt/btproximity/blueproximity.sh >/dev/null 2>&1 &
Last edited by derrij; 10-11-2009 at 15:14.
WL500gP v2 + USB WD 160Gb + HTC Shift USB Extension kit + QuickCam Pro 4000 + LOGITECH S-150 DIGITAL USB SPEAKERS + Mini Bluetooth Dongle
installed: rtorrent, ados, samba3, lighttpd, palantir ,cron, rrd, mpd, mcabber
Sorry, I'm using slightly different version of S99local init script and I forgot to remove one quote, when creating package for this forum. File in attachment in the post above is now correct.
Thanks for the script.Works fine.
P.S. In btproximity_0.3.tgz attachment btlog.php incorrect path in $dbname.
Last edited by derrij; 10-11-2009 at 17:56.
WL500gP v2 + USB WD 160Gb + HTC Shift USB Extension kit + QuickCam Pro 4000 + LOGITECH S-150 DIGITAL USB SPEAKERS + Mini Bluetooth Dongle
installed: rtorrent, ados, samba3, lighttpd, palantir ,cron, rrd, mpd, mcabber