Skip to content

Commit 9488151

Browse files
committed
Update README
1 parent 9785dab commit 9488151

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,42 @@ B ルート対応 Wi-SUN デバイスにシリアル通信で接続し、消費
1515

1616
※ 本アプリケーションは、日本の電波法に準拠しているデバイスで、新たに免許等が必要ないものを接続して、利用する事を想定しています。
1717

18+
### Installation (Ubuntu)
19+
20+
#### Deploy binary
21+
22+
armv7 用のバイナリを使う場合は次のようになります。
23+
24+
```sh
25+
sudo cp ./hems_linux_armv7 /usr/local/bin/
26+
```
27+
28+
#### Deploy service and udev rule
29+
30+
`hems.service` で設定されている以下の項目は適切な値に変更してください。
31+
32+
```
33+
Environment=HEMS_ROUTEB_ID=xxx
34+
Environment=HEMS_PASSWORD=xxx
35+
Environment=HEMS_DEVICE=/dev/udg-1-wsne
36+
ExecStart=/usr/local/bin/hems_linux_armv7
37+
```
38+
39+
```sh
40+
sudo cp ./example/etc/systemd/system/hems.service /etc/systemd/system/hems.service
41+
sudo systemctl daemon-reload
42+
```
43+
44+
`UDG-1-WSNE` 以外を使う場合は `99-hems.rules` を修正する必要があります。
45+
46+
```sh
47+
sudo cp ./example/etc/udev/rules.d/99-hems.rules /etc/udev/rules.d/99-hems.rules
48+
sudo udevadm control --reload
49+
```
50+
51+
USB ドングルを接続すると自動的に hems service が起動します。
52+
USB ドングルを外すと自動的に停止します。
53+
1854
## Build
1955

2056
### Raspberry Pi 4

0 commit comments

Comments
 (0)