UNPKG

node-red-contrib-uk-national-rail

Version:

A Node-RED node to provide a list of upcoming train departures.

10 lines (9 loc) 290 B
module.exports = function(RED) { function NationalRailConfigNode(config) { RED.nodes.createNode(this, config); this.name = config.name; } RED.nodes.registerType("natRail-config", NationalRailConfigNode, { credentials: { apiKey: {type:"text"} } }); }