UNPKG

node-red-contrib-socketcan

Version:
61 lines (54 loc) 2.25 kB
<!-- /////////////////////////////////////////////////////////////////////////// // config.html // // socketcan config node. // // This file is part of the VSCP (https://www.vscp.org) // // The MIT License (MIT) // // Copyright © 2020-2024 Ake Hedman, Grodans Paradis AB // <info@grodansparadis.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // --> <script type="text/x-red" data-template-name="socketcan-config"> <div class="form-row"> <label for="node-config-input-interface"><i class="fa fa-random"></i> Interface</label> <input type="text" id="node-config-input-interface" placeholder="vcan0"> </div> </script> <script type="text/x-red" data-help-name="socketcan-config"> <p>Set the socketcan interface.</p> <p>This should be an interface that exists (vcan0, can0 etc).</p> <p>Interface setup instuctions can be found [here](https://elinux.org/Bringing_CAN_interface_up). </script> <script type="text/javascript"> RED.nodes.registerType('socketcan-config',{ category: 'config', defaults: { interface: {value:"vcan0",required:true}, }, label: function() { return this.interface || "interface"; }, }); </script>