Skip to content

Commit 05f17db

Browse files
committed
chore: rename repo
1 parent 43f2b3b commit 05f17db

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525

2626
# End of https://www.gitignore.io/api/go
2727

28-
hc-rain-sensor
28+
./hc-motion-sensor
2929

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# hc-rain-sensor
2-
This is a HomeKit rain sensor built with [hc](https://github.com/brutella/hc). It emulates a motion sensor.
1+
# hc-motion-sensor
2+
This is a HomeKit motion sensor built with [hc](https://github.com/brutella/hc).
33

44
### Usage
55
```shell
6-
Usage of hc-rain-sensor:
6+
Usage of hc-motion-sensor:
77
-brokerURI string
88
URI of the MQTT broker (default "mqtt://127.0.0.1:1883")
99
-clientID string
10-
client ID for MQTT (default "hc-rain-sensor")
10+
client ID for MQTT (default "hc-motion-sensor")
1111
-jsonPath string
1212
path to JSON boolean (default "wet")
1313
-manufacturer string
1414
manufacturer of the sensor (default "TZT")
1515
-model string
1616
model number of the sensor (default "FC-37")
1717
-name string
18-
name of the sensor to display in HomeKit (default "hc-rain-sensor")
18+
name of the sensor to display in HomeKit (default "hc-motion-sensor")
1919
-pin string
2020
PIN number to pair the HomeKit accessory (default "00102003")
2121
-port string
2222
Port number for the HomeKit accessory
2323
-serial string
2424
serial number of the sensor (default "0000")
2525
-storagePath string
26-
path to store data (default "hc-rain-sensor-data")
26+
path to store data (default "hc-motion-sensor-data")
2727
-topic string
28-
topic to subscribe in MQTT (default "rain")
28+
topic to subscribe in MQTT (default "motion")
2929
```
3030

3131
### JSON Path

cmd/hc-rain-sensor/main.go renamed to cmd/hc-motion-sensor/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ func connect(clientID string, uri *url.URL) (mqtt.Client, error) {
3434
}
3535

3636
func main() {
37-
var name = flag.String("name", "hc-rain-sensor", "name of the sensor to display in HomeKit")
37+
var name = flag.String("name", "hc-motion-sensor", "name of the sensor to display in HomeKit")
3838
var manufacturer = flag.String("manufacturer", "TZT", "manufacturer of the sensor")
3939
var model = flag.String("model", "FC-37", "model number of the sensor")
4040
var serial = flag.String("serial", "0000", "serial number of the sensor")
4141
var pin = flag.String("pin", "00102003", "PIN number to pair the HomeKit accessory")
4242
var port = flag.String("port", "", "Port number for the HomeKit accessory")
43-
var storagePath = flag.String("storagePath", "hc-rain-sensor-data", "path to store data")
43+
var storagePath = flag.String("storagePath", "hc-motion-sensor-data", "path to store data")
4444

4545
var brokerURI = flag.String("brokerURI", "mqtt://127.0.0.1:1883", "URI of the MQTT broker")
46-
var clientID = flag.String("clientID", "hc-rain-sensor", "client ID for MQTT")
46+
var clientID = flag.String("clientID", "hc-motion-sensor", "client ID for MQTT")
4747

48-
var topic = flag.String("topic", "rain", "topic to subscribe in MQTT")
48+
var topic = flag.String("topic", "motion", "topic to subscribe in MQTT")
4949
var jsonPath = flag.String("jsonPath", "wet", "path to JSON boolean")
5050

5151
flag.Parse()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/duncanleo/hc-rain-sensor
1+
module github.com/duncanleo/hc-motion-sensor
22

33
go 1.13
44

0 commit comments

Comments
 (0)