Skip to content

Commit

Permalink
Simple setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Dec 5, 2024
1 parent 9827e8a commit 8fa0dff
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ dist

# Webstorm
.idea
/test/hbConfig/accessories
/test/hbConfig/backups
/test/hbConfig/persist
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [140],
"editor.rulers": [
140
],
"eslint.enable": true
}
}
4 changes: 2 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
],
"ext": "ts",
"ignore": [],
"exec": "tsc && homebridge -I -D",
"exec": "tsc && homebridge -U ./test/hbConfig -I -D",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
}
}
}
1 change: 1 addition & 0 deletions test/hbConfig/.uix-dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"component":"HomebridgeStatusWidgetComponent","x":0,"y":7,"cols":5,"rows":7,"mobileOrder":10,"hidePort":true,"hideOnMobile":false,"draggable":true},{"component":"ChildBridgeWidgetComponent","x":15,"y":9,"cols":5,"rows":5,"mobileOrder":35,"hideOnMobile":false,"draggable":true},{"component":"CpuWidgetComponent","x":5,"y":8,"cols":5,"rows":3,"mobileOrder":40,"hideOnMobile":false,"draggable":true},{"component":"MemoryWidgetComponent","x":5,"y":11,"cols":5,"rows":3,"mobileOrder":50,"hideOnMobile":false,"draggable":true},{"component":"NetworkWidgetComponent","x":10,"y":11,"cols":5,"rows":3,"mobileOrder":55,"hideOnMobile":false,"draggable":true},{"component":"UptimeWidgetComponent","x":10,"y":8,"cols":5,"rows":3,"mobileOrder":60,"hideOnMobile":false,"draggable":true},{"component":"SystemInfoWidgetComponent","x":15,"y":0,"cols":5,"rows":9,"mobileOrder":70,"hideOnMobile":false,"draggable":true},{"component":"HapQrcodeWidgetComponent","x":0,"y":0,"cols":5,"rows":7,"mobileOrder":100,"hideOnMobile":false,"draggable":true},{"component":"HomebridgeLogsWidgetComponent","x":5,"y":0,"cols":10,"rows":8,"mobileOrder":1000,"hideOnMobile":true,"draggable":true}]
1 change: 1 addition & 0 deletions test/hbConfig/.uix-secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"secretKey":"de1a0f965770285a6dec91739fc725a91d6e0cb91a4aaae8116e8f140d44edc3"}
10 changes: 10 additions & 0 deletions test/hbConfig/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"id": 1,
"username": "test",
"name": "test",
"hashedPassword": "df121e72b850a058bd68f3d05b1f94dc985821a3885b5da38e263654f29843f98bb6d8e594f6042ff871a424602a9bff50dffa97f258bdc1dca4c79e87bac20c",
"salt": "64085e70da64670349f042d4c3d3cac75b20233ffeb71db68399973f60da077d",
"admin": true
}
]
31 changes: 31 additions & 0 deletions test/hbConfig/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"bridge": {
"name": "Heisenberg",
"username": "AA:BB:CC:DD:FF:FF",
"port": 51826,
"pin": "031-45-154"
},
"description": "HomeBridge HTTP Status Control",
"plugins": [
"homebridge-plugin-name",
"homebridge-config-ui-x"
],
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "none",
"theme": "auto",
"tempUnits": "c",
"lang": "auto",
"sudo": false,
"platform": "config",
"debug": false
},
{
"name": "homebridge-plugin-name",
"platform": "ExampleHomebridgePlugin"
}
],
"accessories": []
}

0 comments on commit 8fa0dff

Please sign in to comment.