-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreceive.html
37 lines (35 loc) · 1.53 KB
/
receive.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script type="text/javascript">
RED.nodes.registerType('Gotify-Receive',{
category: 'Networking',
color: '#3FADB5',
defaults: {
name: {value:""},
token: {value:"", type:"string",required:true},
server: {value:"https://push.tydids.com/",type:"string",required:true}
},
inputs:1,
outputs:1,
icon: "bridge.svg",
label: function() {
return this.name||"Gotify-Receive";
}
});
</script>
<script type="text/html" data-template-name="Gotify-Receive">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-token"><i class="fa fa-user-o"></i> Client Token</label>
<input type="text" id="node-input-token" placeholder="(your app token)">
</div>
<div class="form-tips"><b>Tip:</b> Register at <a target="_blank" href="https://push.tydids.com/">https://push.tydids.com/</a> and add an App to your account. This will give you a token.</div>
<div class="form-row">
<label for="node-input-server"><i class="fa fa-user-o"></i> Gotify-Server</label>
<input type="url" id="node-input-server" placeholder="(like: https://push.tydids.com/ )">
</div>
</script>
<script type="text/html" data-help-name="Gotify-Receive">
<p>Will emit a msg as msg.payload. Re-Check of pending messages might be foreced via input node.</p>
</script>