mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
add to mdns/discovery pre-reqs in readme
This commit is contained in:
parent
5780b2a5c3
commit
03c4426189
@ -4,7 +4,7 @@ node-red-node-discovery
|
||||
A <a href="http://nodered.org" target="_new">Node-RED</a> node that uses Bonjour
|
||||
/ Avahi to discover local network services such as iTunes libraries, printers, etc.
|
||||
|
||||
Now also supports announcing new services.
|
||||
It also supports announcing new services.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
@ -13,7 +13,7 @@ please read the [install instructions](https://www.npmjs.com/package/mdns) for t
|
||||
|
||||
For Debian / Ubuntu this requires installing
|
||||
|
||||
sudo apt-get install libavahi-compat-libdnssd-dev
|
||||
sudo apt-get install libavahi-compat-libdnssd-dev libudev-dev
|
||||
|
||||
Install
|
||||
-------
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="discovery">
|
||||
<script type="text/html" data-template-name="discovery">
|
||||
<div class="form-row">
|
||||
<label for="node-input-service"><i class="fa fa-gear"></i> Service</label>
|
||||
<input type="text" id="node-input-service" placeholder="_http._tcp">
|
||||
@ -15,7 +15,7 @@
|
||||
<div class="form-tips">The service <i>must</i> start with an underscore _ and end ._tcp or ._udp</div>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="discovery">
|
||||
<script type="text/html" data-help-name="discovery">
|
||||
<p>Provides a Bonjour / Avahi / Zeroconf discovery node.</p>
|
||||
<p><code>msg.payload</code> contains the service object on both arrival and leaving.</p>
|
||||
<p><code>msg.payload.state</code> contains boolean <i>true</i> or <i>false</i> depending
|
||||
@ -51,7 +51,7 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-template-name="announce">
|
||||
<script type="text/html" data-template-name="announce">
|
||||
<div class="form-row">
|
||||
<label for="node-input-service"><i class="fa fa-gear"></i> Service</label>
|
||||
<input type="text" id="node-input-service" placeholder="_http._tcp">
|
||||
@ -71,7 +71,7 @@
|
||||
<div class="form-tips">%h in the name will be replaced by the machine hostname.</div>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="announce">
|
||||
<script type="text/html" data-help-name="announce">
|
||||
<p>Provides a Bonjour / Avahi / Zeroconf announcement node.</p>
|
||||
<p>If <code>msg.payload</code> is <code>false</code> - the announcement is stopped. Any other value starts the announcement process.</p>
|
||||
<p>The announcement can be customised by the msg if not configured in the edit panel.</p>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version" : "0.0.21",
|
||||
"description" : "A Node-RED node that uses Bonjour / Avahi to discover nearby services.",
|
||||
"dependencies" : {
|
||||
"mdns" : "^2.4.0"
|
||||
"mdns" : "^2.4.1"
|
||||
},
|
||||
"repository" : {
|
||||
"type":"git",
|
||||
|
Loading…
Reference in New Issue
Block a user