-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #363 Updated version of the package ffmpeg-static (5.2.0) Updated version of the package eufy-security-client (2.8.0) Further details can be found in the changelog of eufy-security-client (2.8.0) Updated project to latest create-adapter version (2.5.0)
- Loading branch information
Showing
38 changed files
with
5,834 additions
and
13,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Devcontainer readme | ||
This directory allows you to develop your adapter in a dedicated Docker container. To get started and for requirements, please read the getting started section at https://code.visualstudio.com/docs/remote/containers#_getting-started | ||
|
||
Once you're done with that, VSCode will prompt you to reopen the adapter directory in a container. This takes a while, afterwards you can access the admin UI at http://localhost:8082. To change that port, edit `nginx.conf` in the `nginx` subdirectory. | ||
Once you're done with that, VSCode will prompt you to reopen the adapter directory in a container. This takes a while, afterwards you can access the admin UI at http://localhost:8082. To change that port, edit `docker-compose.yml` to have a different `ports` configuration for `nginx`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM buanet/iobroker:latest-v8 | ||
FROM iobroker/iobroker:latest | ||
RUN ln -s /opt/iobroker/node_modules/ /root/.node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build/ | ||
**/.eslintrc.js | ||
admin/words.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"eslint.enable": true, | ||
"files.eol": "\n" | ||
"files.eol": "\n", | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ | ||
"io-package.json" | ||
], | ||
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.js-controller/master/schemas/io-package.json" | ||
}, | ||
{ | ||
"fileMatch": [ | ||
"admin/jsonConfig.json", | ||
"admin/jsonCustom.json", | ||
"admin/jsonTab.json" | ||
], | ||
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
declare let systemDictionary: Record<string, Record<string, string>>; | ||
|
||
declare let load: (settings: Record<string, unknown>, onChange: (hasChanges: boolean) => void) => void; | ||
declare let save: (callback: (settings: Record<string, unknown>) => void) => void; | ||
|
||
// make load and save exist on the window object | ||
interface Window { | ||
load: typeof load; | ||
save: typeof save; | ||
} | ||
|
||
declare const instance: number; | ||
declare const adapter: string; | ||
/** Translates text */ | ||
declare function _(text: string, arg1?: string, arg2?: string, arg3?: string): string; | ||
declare const socket: ioBrokerSocket; | ||
declare function sendTo( | ||
instance: any | null, | ||
command: string, | ||
message: any, | ||
callback: (result: SendToResult) => void | Promise<void>, | ||
): void; | ||
|
||
interface SendToResult { | ||
error?: string | Error; | ||
result?: any; | ||
} | ||
|
||
// tslint:disable-next-line:class-name | ||
interface ioBrokerSocket { | ||
emit( | ||
command: "subscribeObjects", | ||
pattern: string, | ||
callback?: (err?: string) => void | Promise<void>, | ||
): void; | ||
emit( | ||
command: "subscribeStates", | ||
pattern: string, | ||
callback?: (err?: string) => void | Promise<void>, | ||
): void; | ||
emit( | ||
command: "unsubscribeObjects", | ||
pattern: string, | ||
callback?: (err?: string) => void | Promise<void>, | ||
): void; | ||
emit( | ||
command: "unsubscribeStates", | ||
pattern: string, | ||
callback?: (err?: string) => void | Promise<void>, | ||
): void; | ||
|
||
emit( | ||
event: "getObjectView", | ||
view: "system", | ||
type: "device", | ||
options: ioBroker.GetObjectViewParams, | ||
callback: ( | ||
err: string | undefined, | ||
result?: any, | ||
) => void | Promise<void>, | ||
): void; | ||
emit( | ||
event: "getStates", | ||
callback: ( | ||
err: string | undefined, | ||
result?: Record<string, any>, | ||
) => void, | ||
): void; | ||
emit( | ||
event: "getState", | ||
id: string, | ||
callback: (err: string | undefined, result?: ioBroker.State) => void, | ||
): void; | ||
emit( | ||
event: "setState", | ||
id: string, | ||
state: unknown, | ||
callback: (err: string | undefined, result?: any) => void, | ||
): void; | ||
|
||
on(event: "objectChange", handler: ioBroker.ObjectChangeHandler): void; | ||
on(event: "stateChange", handler: ioBroker.StateChangeHandler): void; | ||
removeEventHandler( | ||
event: "objectChange", | ||
handler: ioBroker.ObjectChangeHandler, | ||
): void; | ||
removeEventHandler( | ||
event: "stateChange", | ||
handler: ioBroker.StateChangeHandler, | ||
): void; | ||
|
||
// TODO: other events | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"./admin.d.ts", | ||
"./**/*.js", | ||
// Include the adapter-config definition if it exists. | ||
// It should be at either on of these paths: | ||
"../lib/adapter-config.d.ts", // JS | ||
"../src/lib/adapter-config.d.ts", // TS | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.