Skip to content

Commit

Permalink
add pc card base switch fuction
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemerz committed Mar 26, 2023
1 parent c99d38a commit 4a3d901
Show file tree
Hide file tree
Showing 10 changed files with 323 additions and 285 deletions.
39 changes: 34 additions & 5 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
{
"pluginAlias": "ExampleHomebridgePlugin",
"pluginType": "platform",
"singular": true,
"pluginAlias": "SongguoPCCard",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Example Dynamic Platform"
"default": "电脑",
"placeholder": "电脑卡名称"
},
"username": {
"title": "username",
"type": "string",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true
}
},
"layout": [
{
"key": "name"
},
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"name",
"username",
"password"
]
},
{
"type": "help",
"helpvalue": ""
}
}
]
}
}
170 changes: 156 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"private": true,
"displayName": "Plugin Name",
"name": "homebridge-plugin-name",
"displayName": "Songguo PC Card",
"name": "homebridge-songguo-pc-card",
"version": "1.0.0",
"description": "A short description about what your plugin does.",
"description": "A homebridge plugin for Songguo PC Card",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand All @@ -26,7 +26,9 @@
"keywords": [
"homebridge-plugin"
],
"dependencies": {},
"dependencies": {
"axios": "^1.3.4"
},
"devDependencies": {
"@types/node": "^16.10.9",
"@typescript-eslint/eslint-plugin": "^5.0.0",
Expand Down
Loading

0 comments on commit 4a3d901

Please sign in to comment.