Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2c5e3ed
Add vim modelines
xrucka Dec 30, 2017
aa4bab2
Rename packing formats, use tabs for temperature output
xrucka Dec 30, 2017
5436778
Status decoding (instead of flags)
xrucka Dec 30, 2017
3ab2886
Target python3
xrucka Dec 30, 2017
274ea65
Rewrote gatt calls to utilize gatt-python instead of gattlib
xrucka Dec 30, 2017
039e00f
Reuse allready established device and adapter instances
xrucka Dec 30, 2017
c04ec24
Support get/set subcommand chaining
xrucka Dec 30, 2017
d845351
Support setting relevant status controls
xrucka Dec 30, 2017
fbfc453
Allow to turn on otherwise offline adapter
xrucka Dec 30, 2017
efe3aa5
Update readme to reflect changes
xrucka Dec 30, 2017
91c32ee
Explain window open sensitivity
xrucka Dec 30, 2017
a62921c
CometBlue device as subclass of gatt
xrucka Jan 5, 2018
48dce9e
Device operations should wait for completion of previous one
xrucka Jan 5, 2018
c675d02
Split device discovery to candidate probing + candidate discovery
xrucka Jan 5, 2018
b99861b
Rewrite CLI to counteract BUG in gatt https://github.com/getsenic/gat…
xrucka Jan 5, 2018
d15d6de
Implement discovery as cli command set in order to support aborting scan
xrucka Jan 5, 2018
c32e972
FIX: fix typo in status setting (leftover from initial gatt-python im…
xrucka Jan 6, 2018
67c2e31
Do not die on bluez device error upon discovery
xrucka Jan 9, 2018
1791580
Improve error handling
xrucka Jan 19, 2018
5a717b8
FIX: Reset internal connection state after disconnect (broken connect…
xrucka Mar 21, 2018
7f21215
Reformulated description on lcd timer (has nothing to do with timer, …
xrucka Jun 10, 2018
e405d73
Fix: closing bracket missing in cli.py
lukeIam Jun 30, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ From the software point of view, "Comet Blue" is an BLE (Bluetooth Low Energy) d

This project provides python library and command line tool which may be used to control "Comet Blue" from any linux system equipped with Bluetooth adapter (USB Bluetooth 4.0 dongle, for example).

This project is fork of https://github.com/im-0/cometblue rewrited with library https://github.com/getsenic/gatt-python

## Installation
From sources:
```
# Install dependencies
pip install -r requirements.txt
pip3 install -r requirements.txt
# Install cometblue
python setup.py install
python3 setup.py install
```
Using *pip*:
Using *pip* (unsupported):
(currently only original project, this fork is unsupported)
```
pip install cometblue
pip3 install cometblue
```

## Command line tool
Expand All @@ -28,6 +31,8 @@ Usage: cometblue [OPTIONS] COMMAND [ARGS]...

Options:
-a, --adapter TEXT Bluetooth adapter interface [default: hci0]
-p, --poweron Power ON/OFF adapter if needed [default:
False]
-f, --formatter [json|human-readable|shell-var]
Output formatter [default: human-readable]
-L, --log-level TEXT [default: error]
Expand Down Expand Up @@ -86,12 +91,12 @@ Commands:
device_name Get device name
firmware_revision Get firmware revision
firmware_revision2 Get firmware revision #2 (requires PIN)
flags Get flags (requires PIN)
holidays Get configured holidays (requires PIN)
lcd_timer Get LCD timer (requires PIN)
lcd_timeout Get LCD timeout settings (requires PIN)
manufacturer_name Get manufacturer name
model_number Get model number
software_revision Get software revision
status Get status (requires PIN)
temperatures Get temperatures (requires PIN)
```
Usage examples:
Expand All @@ -103,13 +108,13 @@ Usage examples:
2016-03-27 18:32:00

# cometblue device -p 0 E0:E5:CF:D6:98:53 get temperatures
Current temperature: 23.0 °C
Temperature for manual mode: 16.0 °C
Target temperature low: 16.0 °C
Target temperature high: 21.0 °C
Offset temperature: 0.0 °C
Window open detection: 4
Window open minutes: 10
Current temperature: 23.0 °C
Temperature for manual mode: 16.0 °C
Target temperature low: 16.0 °C
Target temperature high: 21.0 °C
Offset temperature: 0.0 °C
Window open sensitivity: 4 (1 = low, 4 = high, 8 = mid)
Window open minutes: 10

# cometblue device E0:E5:CF:D6:98:53 get device_name # no PIN required
Comet Blue
Expand All @@ -134,8 +139,9 @@ Commands:
datetime Set time and date (requires PIN)
day Set periods per days of the week (requires...
holiday Set period and temperature for holiday...
lcd_timer Set LCD timer (requires PIN)
lcd_timeout Set LCD blank timeout (requires PIN)
pin Set PIN (requires PIN)
status Set status (requires PIN)
temperatures Set temperatures (requires PIN)
```
Usage examples:
Expand Down Expand Up @@ -214,10 +220,8 @@ Usage example:
- http://torsten-traenkner.de/wissen/smarthome/heizung.php

## TODO
- Support flags
- Support timer
- Write tests
- Python3

## Notes
Tool and library may not work as expected because it is not well tested. Patches and bugreports are always welcome.
Loading