Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20

Thread: Bluetooth proximity monitor

  1. #16
    it is possible, to make external script executing, only if another device from DB is away(or not).

    for example: run script "run-in" from folder "device1" if device2 is away
    or maybe execute command from "device1/run-in" script if device2 is away.
    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

  2. #17
    Quote Originally Posted by derrij View Post
    it is possible, to make external script executing, only if another device from DB is away(or not).

    for example: run script "run-in" from folder "device1" if device2 is away
    or maybe execute command from "device1/run-in" script if device2 is away.
    I'm sorry for my late response - I didn't get mail notification of new post for some reason.
    Unfortunately it is not possible natively, but you can put sqlite query to `status` table and check for status of any other device.

    You may get inspiration from this function:
    ----------------------
    # get state of device from DB (print it on stdout)
    # $1 = device name
    get_state () {
    sqlite3 "$dbname" << /EOF/
    SELECT status FROM status WHERE name = "$1" AND status IS NOT NULL;
    /EOF/
    }
    -----------------------

    and then, for example, execute this in run-in
    if [ "$(get_state OtherDeviceName)" == "OUT" ] ; then
    .........
    fi

    I hope this will help you.

    Paul

  3. #18
    Quote Originally Posted by taylor729 View Post
    I'm sorry for my late response - I didn't get mail notification of new post for some reason.
    Unfortunately it is not possible natively, but you can put sqlite query to `status` table and check for status of any other device.

    You may get inspiration from this function:
    ----------------------
    # get state of device from DB (print it on stdout)
    # $1 = device name
    get_state () {
    sqlite3 "$dbname" << /EOF/
    SELECT status FROM status WHERE name = "$1" AND status IS NOT NULL;
    /EOF/
    }
    -----------------------

    and then, for example, execute this in run-in
    if [ "$(get_state OtherDeviceName)" == "OUT" ] ; then
    .........
    fi

    I hope this will help you.

    Paul
    Yes,thank you very much. It's works.
    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

  4. #19
    Could someone here explain how to load the kernel modules required for the bluetooth stick to work, and how to install bluez?

    Here I've tried to share my internet connection to my phone using bluetooth, but I can't even get the bluetooth stick to work. So what should I do to get bluetooth working on my WL-500gP?

  5. #20
    I'm using bluez2-libs and bluez2-utils packages (older version than bluez-* ones) and these modules:

    -rwxr-xr-x 1 root root 58788 Jun 21 2009 bluez.o
    -rwxr-xr-x 1 root root 17268 Jun 21 2009 bnep.o
    -rwxr-xr-x 1 root root 4420 Jun 21 2009 crc32.o
    -rwxr-xr-x 1 root root 15924 Jun 21 2009 hci_usb.o
    -rwxr-xr-x 1 root root 30600 Jun 21 2009 l2cap.o
    -rwxr-xr-x 1 root root 50592 Jun 21 2009 rfcomm.o
    -rwxr-xr-x 1 root root 18612 Jun 21 2009 sco.o

    I found the modules somewhere on this forum, but I can't locate it now. You could try files from the attachment if you were unable to get the correct version of modules.

    Paul
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Bluetooth в wl500gP
    By TIk in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 410
    Last Post: 22-02-2011, 23:14
  2. vnstat - Network traffic monitor with log
    By WLAN-Fan in forum German Discussion - Deutsch (DE)
    Replies: 4
    Last Post: 22-09-2008, 12:53
  3. [HOW TO] Bluetooth in wl500g
    By TIk in forum WL-500g/WL-500gx Tutorials
    Replies: 1
    Last Post: 17-09-2008, 21:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •