home_assistant-ble 1.1.0.pre.alpha.pre.17 → 1.1.0.pre.alpha.pre.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -2
  3. data/home_assistant-ble.service +13 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b94ff7ab7e0c528102969a869d5f7a99d3c74bd
4
- data.tar.gz: bc8786754532f0a11d508cd140abfa9ce353ad0b
3
+ metadata.gz: bf0d9315d67d5bc134681ef360fa44d5c56c5e05
4
+ data.tar.gz: ce23eaa56ec671b357c07df758169424e20817ce
5
5
  SHA512:
6
- metadata.gz: 5eba5b6c18764030aa517580a5d1ccff92a59113baef945a8fc621ed1c5efe4bf3043b8291d1b29e374c13cb59bfc5935e7a6c7d542146f32aace8ae30948b55
7
- data.tar.gz: 883b46692e7ab0acdafdaba05bc964ae46ed0d74ed87964f058cdcbdeaefcf0c36d7d9690b63f23a4df68be9e3cddc47b9a2fbc258f61c0d1de5b3df11746f45
6
+ metadata.gz: c1551c9f994179b1bb7b1b470df137be02f7cea11b06b8eda44e7fbe574b27602e42d03380b2a91ae11c1036b695de563994910b31f8b9243f48ce5ce32bf0ea
7
+ data.tar.gz: 8a4fe708c3eea4d0b7a30023123f7daf9a30f5ee9e466e93cbc0538ecf4ffa67bf8b032f4bc73fd1ed90c7506b78b4ca947ecac02840568d14b062231f4abe42
data/README.md CHANGED
@@ -16,8 +16,14 @@ $ `gem install home_assistant-ble`
16
16
 
17
17
  Run `home_assistant-ble [your config file]` binary.
18
18
 
19
- More instruction to launch this as a service with systemd (TODO).
19
+ ### Systemd
20
20
 
21
+ To launch as a systemd service, you can copy `home_assistant-ble.service` file present in this repo.
22
+
23
+ I'll probably build an archlinux package at some point (TODO).
24
+
25
+
26
+ ### Non noot
21
27
  To be able to run with a non-root user, read http://unix.stackexchange.com/questions/96106/bluetooth-le-scan-as-non-root. In short (adapt if using a non-debian distribution):
22
28
 
23
29
  ```
@@ -26,7 +32,7 @@ sudo setcap 'cap_net_raw,cap_net_admin+eip' `readlink -f \`which ruby\``
26
32
  ```
27
33
  **Note**: these instructions are probably not sufficient, see https://github.com/kamaradclimber/home_assistant-ble/issues/1
28
34
 
29
- ## Configuration
35
+ ### Configuration
30
36
 
31
37
  ```
32
38
  interval: 30 # in seconds, interval between device scan
@@ -0,0 +1,13 @@
1
+ [Unit]
2
+ Description=Home assistant BLE
3
+ After=network.target
4
+
5
+ [Service]
6
+ #User=hass
7
+ #Group=hass
8
+
9
+ Environment=RUBYOPT="-w0"
10
+ ExecStart=/usr/bin/home_assistant-ble /var/lib/hass/ble.yml
11
+
12
+ [Install]
13
+ WantedBy=multi-user.target
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: home_assistant-ble
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.alpha.pre.17
4
+ version: 1.1.0.pre.alpha.pre.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux
@@ -112,6 +112,7 @@ files:
112
112
  - bin/home_assistant-ble
113
113
  - example_config.yml
114
114
  - home_assistant-ble.gemspec
115
+ - home_assistant-ble.service
115
116
  - lib/home_assistant/ble.rb
116
117
  - lib/home_assistant/ble/version.rb
117
118
  homepage: https://github.com/kamaradclimber/home_assistant-ble