node-red-contrib-loewe-tv 0.3.0 → 0.4.0
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/README.md +14 -14
- package/lib/loewe-tv-config.html +33 -33
- package/lib/loewe-tv-config.js +10 -10
- package/lib/loewe.html +26 -26
- package/lib/loewe.js +1337 -1289
- package/package.json +3 -7
- package/test/alive.py +30 -30
- package/test/byebye.py +24 -24
- package/doc/.gitkeep +0 -0
- package/examples/.gitkeep +0 -0
- package/test/.gitkeep +0 -0
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# control Loewe TV with Node-RED
|
|
2
|
-
|
|
3
|
-
Works with Loewe TVs
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
npm i node-red-contrib-loewe-tv
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
Configure TV IP in Config node
|
|
12
|
-
|
|
13
|
-
## Sample Flow
|
|
14
|
-
|
|
1
|
+
# control Loewe TV with Node-RED
|
|
2
|
+
|
|
3
|
+
Works with Loewe TVs
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
npm i node-red-contrib-loewe-tv
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Configure TV IP in Config node
|
|
12
|
+
|
|
13
|
+
## Sample Flow
|
|
14
|
+
|
|
15
15
|
Example: [LoeweTV.json](examples/LoeweTV.json)
|
package/lib/loewe-tv-config.html
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<script type="text/javascript">
|
|
2
|
-
RED.nodes.registerType('loewe-tv-config',{
|
|
3
|
-
category: 'config',
|
|
4
|
-
defaults: {
|
|
5
|
-
name: {value:"", required: true },
|
|
6
|
-
ip: {value:"", required: true },
|
|
7
|
-
fcid: {value:"8761291", validate: RED.validators.number()},
|
|
8
|
-
mac: {value:"", required: false }
|
|
9
|
-
},
|
|
10
|
-
label: function() {
|
|
11
|
-
return this.name;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<script type="text/x-red" data-template-name="loewe-tv-config">
|
|
17
|
-
<div class="form-row">
|
|
18
|
-
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
|
|
19
|
-
<input type="text" id="node-config-input-name" placeholder="LoeweTV">
|
|
20
|
-
</div>
|
|
21
|
-
<div class="form-row">
|
|
22
|
-
<label for="node-input-ip"><i class="icon-tag"></i>IP</label>
|
|
23
|
-
<input type="text" id="node-config-input-ip" placeholder="192.168.0.180">
|
|
24
|
-
</div>
|
|
25
|
-
<div class="form-row">
|
|
26
|
-
<label for="node-input-fcid"><i class="icon-tag"></i>fcid</label>
|
|
27
|
-
<input type="text" id="node-config-input-fcid" placeholder="8761291">
|
|
28
|
-
</div>
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<script type="text/x-red" data-help-name="loewe-tv-config">
|
|
32
|
-
<p>Interface to Loewe TV for Node-Red</p>
|
|
33
|
-
</script>
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
RED.nodes.registerType('loewe-tv-config',{
|
|
3
|
+
category: 'config',
|
|
4
|
+
defaults: {
|
|
5
|
+
name: {value:"", required: true },
|
|
6
|
+
ip: {value:"", required: true },
|
|
7
|
+
fcid: {value:"8761291", validate: RED.validators.number()},
|
|
8
|
+
mac: {value:"", required: false }
|
|
9
|
+
},
|
|
10
|
+
label: function() {
|
|
11
|
+
return this.name;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script type="text/x-red" data-template-name="loewe-tv-config">
|
|
17
|
+
<div class="form-row">
|
|
18
|
+
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
|
|
19
|
+
<input type="text" id="node-config-input-name" placeholder="LoeweTV">
|
|
20
|
+
</div>
|
|
21
|
+
<div class="form-row">
|
|
22
|
+
<label for="node-input-ip"><i class="icon-tag"></i>IP</label>
|
|
23
|
+
<input type="text" id="node-config-input-ip" placeholder="192.168.0.180">
|
|
24
|
+
</div>
|
|
25
|
+
<div class="form-row">
|
|
26
|
+
<label for="node-input-fcid"><i class="icon-tag"></i>fcid</label>
|
|
27
|
+
<input type="text" id="node-config-input-fcid" placeholder="8761291">
|
|
28
|
+
</div>
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<script type="text/x-red" data-help-name="loewe-tv-config">
|
|
32
|
+
<p>Interface to Loewe TV for Node-Red</p>
|
|
33
|
+
</script>
|
package/lib/loewe-tv-config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
module.exports = function(RED) {
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
function loeweSddpServerNode(n) {
|
|
5
|
-
RED.nodes.createNode(this, n);
|
|
6
|
-
this.name = n.name;
|
|
7
|
-
this.ip = n.ip;
|
|
8
|
-
this.fcid = n.fcid;
|
|
9
|
-
};
|
|
10
|
-
RED.nodes.registerType("loewe-tv-config", loeweSddpServerNode);
|
|
1
|
+
module.exports = function(RED) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
function loeweSddpServerNode(n) {
|
|
5
|
+
RED.nodes.createNode(this, n);
|
|
6
|
+
this.name = n.name;
|
|
7
|
+
this.ip = n.ip;
|
|
8
|
+
this.fcid = n.fcid;
|
|
9
|
+
};
|
|
10
|
+
RED.nodes.registerType("loewe-tv-config", loeweSddpServerNode);
|
|
11
11
|
}
|
package/lib/loewe.html
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<script type="text/javascript">
|
|
2
|
-
RED.nodes.registerType('LOEWE-TV', {
|
|
3
|
-
category: 'function',
|
|
4
|
-
color: '#a6bbcf',
|
|
5
|
-
defaults: {
|
|
6
|
-
tv: {type:"loewe-tv-config", required: true }
|
|
7
|
-
},
|
|
8
|
-
inputs:1,
|
|
9
|
-
outputs:1,
|
|
10
|
-
icon: "file.png",
|
|
11
|
-
label: function() {
|
|
12
|
-
return this.name||"LOEWE-TV";
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<script type="text/x-red" data-template-name="LOEWE-TV">
|
|
18
|
-
<div class="form-row">
|
|
19
|
-
<label for="node-input-tv"><i class="fa fa-tag"></i>LOEWE TV</label>
|
|
20
|
-
<input type="text" id="node-input-tv">
|
|
21
|
-
</div>
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<script type="text/x-red" data-help-name="LOEWE-TV">
|
|
25
|
-
<p>Interface to Loewe TV for Node-Red</p>
|
|
26
|
-
</script>
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
RED.nodes.registerType('LOEWE-TV', {
|
|
3
|
+
category: 'function',
|
|
4
|
+
color: '#a6bbcf',
|
|
5
|
+
defaults: {
|
|
6
|
+
tv: {type:"loewe-tv-config", required: true }
|
|
7
|
+
},
|
|
8
|
+
inputs:1,
|
|
9
|
+
outputs:1,
|
|
10
|
+
icon: "file.png",
|
|
11
|
+
label: function() {
|
|
12
|
+
return this.name||"LOEWE-TV";
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<script type="text/x-red" data-template-name="LOEWE-TV">
|
|
18
|
+
<div class="form-row">
|
|
19
|
+
<label for="node-input-tv"><i class="fa fa-tag"></i>LOEWE TV</label>
|
|
20
|
+
<input type="text" id="node-input-tv">
|
|
21
|
+
</div>
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<script type="text/x-red" data-help-name="LOEWE-TV">
|
|
25
|
+
<p>Interface to Loewe TV for Node-Red</p>
|
|
26
|
+
</script>
|