Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on issues #493

Merged
merged 33 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f994dd1
example added
mStirner Sep 11, 2024
03c14ac
fix #491
mStirner Sep 12, 2024
371d21d
Merge branch 'dev' of github.com:mStirner/backend into dev
mStirner Sep 12, 2024
710c68c
fix #488
mStirner Sep 12, 2024
ceeabe1
comments added
mStirner Sep 14, 2024
ecaf8b8
fix #488
mStirner Sep 23, 2024
49411b8
fix #484
mStirner Sep 23, 2024
658059e
Merge branch 'dev' of github.com:mStirner/backend into dev
mStirner Sep 23, 2024
467ca35
fix #491
mStirner Sep 23, 2024
ee1c658
use `iface.stream` instead `iface.write`
mStirner Sep 23, 2024
56287bc
`iface` property added
mStirner Sep 23, 2024
8bcc89c
impelmented `bridge()` requests
mStirner Sep 23, 2024
ffb84bb
comment added
mStirner Sep 24, 2024
f7ae29c
logging added & timeout configurable
mStirner Sep 24, 2024
d19cd28
fix #340
mStirner Sep 24, 2024
d4d4ff8
added, fix #487
mStirner Oct 4, 2024
3c80dfb
added state value trigger
mStirner Oct 4, 2024
11ff6ea
destory handling improved
mStirner Oct 6, 2024
8b6aeb0
fix #499
mStirner Oct 7, 2024
d48027c
fix #502
mStirner Oct 7, 2024
6139b50
`.toString()` aded for chunk response test
mStirner Oct 7, 2024
ac64790
minor bug fix of destructing property on error event
mStirner Oct 7, 2024
fed7075
operator added/documented
mStirner Oct 9, 2024
e2e0348
fix/implement #503
mStirner Oct 14, 2024
3364093
fix #502
mStirner Oct 14, 2024
b29379b
timestamps added/fix #496
mStirner Oct 15, 2024
e46bd36
fix #506
mStirner Oct 15, 2024
74a0340
fix #507
mStirner Oct 15, 2024
fa90361
states array added
mStirner Oct 15, 2024
8f0b4d5
debounced call to `timestamps` update
mStirner Oct 15, 2024
5dbbfdf
added task "Open Gnome Terminal"
mStirner Oct 17, 2024
16a1730
comment added
mStirner Oct 17, 2024
961ee38
fix #510
mStirner Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Open Gnome Terminal with Tabs",
"type": "shell",
"command": "gnome-terminal",
"args": [
"--tab", "--working-directory", "~/projects/OpenHaus/backend",
"--tab", "--working-directory", "~/projects/OpenHaus/connector",
"--tab", "--working-directory", "~/projects/OpenHaus/frontend",
],
"problemMatcher": [],
"presentation": {
"close": true
}
}
]
}
6 changes: 4 additions & 2 deletions components/devices/class.device.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Interface = require("./class.interface.js");
const Item = require("../../system/component/class.item.js");

const mixins = require("../../helper/mixins.js");
const injectMethod = require("../../helper/injectMethod.js");
//const injectMethod = require("../../helper/injectMethod.js");

//const { parse, calculateChecksum } = require("./net-helper.js");

Expand All @@ -28,7 +28,7 @@ const injectMethod = require("../../helper/injectMethod.js");
* @see interfaceStream components/devices/class.interfaceStream.js
*/
module.exports = class Device extends Item {
constructor(props, scope) {
constructor(props) {

super(props);

Expand Down Expand Up @@ -64,13 +64,15 @@ module.exports = class Device extends Item {
// NOTE: remove "device" for bridging requests (only needed in connector)?
// > See: https://github.com/OpenHausIO/connector/issues/54
// > When done, "device" property can be removed, and the `.bridge()` method can be moved into Interface class
/*
injectMethod(iface, "bridge", (cb) => {
return Interface._bridge({
events: scope.events,
interface: iface,
device: this._id
}, cb);
});
*/


// "hide" stream behind iface object
Expand Down
Loading