forked from k-harada413/node-red-contrib-nfcpy-id
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfcpy-id.html
56 lines (54 loc) · 1.8 KB
/
nfcpy-id.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<script type="text/javascript">
RED.nodes.registerType('nfcpy-id',{
category: 'input',
color: '#89c3eb',
defaults: {
waitTime: {value:"1", validate:RED.validators.number()},
name: {value:""}
},
inputs:0,
outputs:1,
align: 'left',
icon: "nfc.png",
label: function() {
return this.name||"nfcpy-id";
},
oneditprepare: function(){
$( "#node-input-waitTime" ).spinner({min:1});
}
});
</script>
<script type="text/x-red" data-template-name="nfcpy-id">
<div class="form-row">
<label for="node-input-waitTime"><i class="fa fa-clock-o"></i> waitTime</label>
<input id="node-input-waitTime" value="1" style="width:50px !important"></input>
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="nfcpy-id">
<p>Read the card ID (Mifare: UID, FeliCa: IDm) with nfcpy-id (a Python module).</p>
<p>Before using, install <code>nfcpy-id</code>(a Python module).</p>
<p>This node can't catch touchend event.</p>
<p><code>waitTime</code> is restart timing after touched nfcCard.</p>
<p><code>type</code>'s list
<ul>
<li>Type 2 -- MIFARE</li>
<li>Type 3 -- FeliCa</li>
<li>Type 4 -- MIFARE DESFire</li>
</ul>
</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">Card Id | string</span>
</dt>
<dt>type
<span class="property-type">Card Type| string</span>
</dt>
<dt>timestamp
<span class="property-type">timestamp | int </span>
</dt>
</script>