Skip to content

Commit

Permalink
Tags werden nicht korrekt an MS gesendet / Lugbuttontexte fehlen
Browse files Browse the repository at this point in the history
-Tags werden nicht korrekt an MS gesendet (Fixes #26)
-Log Statusbuttontexte fehlen (Fixes #27)
  • Loading branch information
Woersty committed Mar 3, 2018
1 parent 65e82c1 commit 9ae9e3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.cfg
Expand Up @@ -10,7 +10,7 @@ NAME=Christian Woerstenfeld
EMAIL=git@loxberry.woerstenfeld.de

[PLUGIN]
VERSION=v2018.2.28
VERSION=v2018.3.3
NAME=BLE-Scanner
FOLDER=ble_scanner
TITLE=BLE-Scanner
Expand Down
6 changes: 3 additions & 3 deletions prerelease.cfg
Expand Up @@ -6,10 +6,10 @@
# If your plugin offers automatic updates, please enable the following option.

# Version of the new release
VERSION=v2018.2.28
VERSION=v2018.3.3

# Download URL of the ZIP Archive
ARCHIVEURL=https://github.com/Woersty/LoxBerry-Plugin-BLE-Scanner/archive/v2018.2.28.zip
ARCHIVEURL=https://github.com/Woersty/LoxBerry-Plugin-BLE-Scanner/archive/v2018.3.3.zip

# URL for further information about this release
INFOURL=https://github.com/Woersty/LoxBerry-Plugin-BLE-Scanner/releases/tag/v2018.2.28
INFOURL=https://github.com/Woersty/LoxBerry-Plugin-BLE-Scanner/releases/tag/v2018.3.3
2 changes: 1 addition & 1 deletion webfrontend/htmlauth/bin/blescan.py
Expand Up @@ -197,7 +197,7 @@ def parse_events(sock, loop_count=10):
rssi, = struct.unpack("b", pkt[report_pkt_offset -1])
conn = sqlite3.connect('/tmp/ble_scanner.dat')
c = conn.cursor()
sql = "REPLACE INTO `ble_scanner` (MAC,rssi,Timestamp) VALUES ('" + packed_bdaddr_to_string(pkt[report_pkt_offset + 3:report_pkt_offset + 9]) + "','" + str(rssi) + "',CURRENT_TIMESTAMP);"
sql = "REPLACE INTO `ble_scanner` (MAC,rssi,Timestamp) VALUES ('" + packed_bdaddr_to_string(pkt[report_pkt_offset + 3:report_pkt_offset + 9]) + "','" + "-" + str(abs(rssi)) + "',CURRENT_TIMESTAMP);"
if (LOGLEVEL >= 6):
sys.stdout = open(logfile, "a")
print str(datetime.datetime.now()) + " [Python] <INFO> SQLite:", sql
Expand Down

0 comments on commit 9ae9e3c

Please sign in to comment.