homebridge-petlibro-feeder 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +16 -1
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Release notes for the `homebridge-petlibro-feeder`, one `## [X.Y.Z] - YYYY-MM-DD` section per tag.
|
|
4
|
+
The `release` job copies the tag's section into the GitLab release description. The Homebridge UI only fetches
|
|
5
|
+
release notes and changelogs from GitHub, so it cannot show them for this package, which is hosted on GitLab.
|
|
6
|
+
|
|
7
|
+
## [1.0.1] - 2026-12-05
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Added tests
|
|
11
|
+
- Setup releases
|
|
12
|
+
|
|
13
|
+
## [1.0.0] - 2026-12-05
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Initial release
|
package/README.md
CHANGED
|
@@ -118,12 +118,27 @@ If the feeder dispenses, the plugin should work. You can also try other values,
|
|
|
118
118
|
corepack enable
|
|
119
119
|
yarn install
|
|
120
120
|
yarn build # compile TypeScript to dist/
|
|
121
|
+
yarn test # build and run unit tests
|
|
122
|
+
yarn test:device # validate device-check settings (does not dispense)
|
|
121
123
|
yarn watch # compile on change
|
|
122
124
|
yarn lint # ESLint
|
|
123
125
|
yarn format # Prettier (write)
|
|
124
|
-
yarn check # format check + lint + build
|
|
126
|
+
yarn check # format check + lint + tests (including build)
|
|
125
127
|
```
|
|
126
128
|
|
|
129
|
+
To check a real feeder without Homebridge, set `PETLIBRO_HOST` and
|
|
130
|
+
`PETLIBRO_PASSWORD` (optionally `PETLIBRO_USERNAME` and `PETLIBRO_PORTIONS`),
|
|
131
|
+
then run `yarn test:device`. This validates the settings without contacting or
|
|
132
|
+
dispensing from the feeder. Add `--dispense` to send the dispense command:
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
PETLIBRO_HOST=192.168.1.217 PETLIBRO_PASSWORD='your-password' yarn test:device --dispense
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The device check defaults to one portion and accepts 1-10. Telnet is unencrypted;
|
|
139
|
+
use it only on a trusted local network. Avoid putting the password directly in
|
|
140
|
+
shell history; exporting it in your shell session is an alternative.
|
|
141
|
+
|
|
127
142
|
To test without publishing, pack the plugin and install it into your Homebridge storage directory:
|
|
128
143
|
|
|
129
144
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-petlibro-feeder",
|
|
3
3
|
"displayName": "Petlibro Feeder (Telnet)",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
"supaflyster"
|
|
7
7
|
],
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc",
|
|
39
|
+
"test": "yarn build && node --test",
|
|
40
|
+
"test:device": "yarn build && node scripts/device-check.js",
|
|
39
41
|
"watch": "tsc --watch",
|
|
40
42
|
"clean": "rm -rf dist",
|
|
41
43
|
"prepublishOnly": "yarn clean && yarn build",
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
"lint:fix": "eslint . --fix",
|
|
44
46
|
"format": "prettier --write .",
|
|
45
47
|
"format:check": "prettier --check .",
|
|
46
|
-
"check": "yarn format:check && yarn lint && yarn
|
|
48
|
+
"check": "yarn format:check && yarn lint && yarn test"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
51
|
"@eslint/js": "^10.0.1",
|