4 Commits
Author SHA1 Message Date
Dennis Keitzel a655504f78 Make command timeout for workers configurable (#62) 2019-03-10 09:51:50 +01:00
Dennis Keitzel c9a634870f Improved logging mechanism (and a few minor goodies) (#54)
* Improved logging mechanism

* Allow for suppression of any errors regarding failed device updates
2019-03-03 19:46:38 +01:00
Adam Strojek c6a068f811 blescanmulti - improve scanners options (#56)
* Helpful utils that will allow to reduce common code

* Update config with new options for blescanmulti

* Default values for blescanmulti if not provided by config file

* Allow to configure scan behavior

* Allow to configure returned payload

* Initial version of saving last state

* Support class that will remember last status of device

* Add docs for available options

* Move scanner to instance, this will prevent recreating it each time it is required to scan

* Use items instead of values. We require here to have pair of key and value, not just value

* Make sure that mac address is in lower case

* Optimize searching for devices, use hash maps

* Remove unused method

* Because YAML is already doing some conversions this change will allow to always get proper value

* Fix issue. Mac address and name was provided in wrong order

* Use worker to format topic

* Send also RSSI info
2019-03-03 09:12:00 +01:00
Elvio Sebastianelli 345b200113 New worker: ble devices scanner (#46)
* Worker for ble devices scanning

Added a worker that scan for ble devices and notify, by mqtt, presence of mac addresses and rssi.

Configuration section example:

....
workers:
    blescanmulti:
      args:
        devices:
          nut: xx:xx:xx:xx:xx:xx
          ionic: xx:xx:xx:xx:xx:xx
        topic_prefix: blescan
      update_interval: 60
...

* Update README.md 

blescanmulti worker added

* Update config.yaml.example

Added configuration section for blescanmulti worker

* Converted blescanmulti.py indentation to 2 spaces

* changed mqtt message syntax

* Update README.md

Added contributor repos url

* Update .gitignore

Removed .vscode/

* Delete settings.json

* Changes by pull request review 11/01/2019
 On branch master
	modified:   workers/blescanmulti.py
2019-01-11 22:02:49 +01:00