add to mdns/discovery pre-reqs in readme

This commit is contained in:
Dave Conway-Jones 2020-02-04 19:09:53 +00:00
parent 5780b2a5c3
commit 03c4426189
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
3 changed files with 7 additions and 7 deletions

View File

@ -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
-------

View File

@ -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>

View File

@ -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",