ioBroker.node-red icon indicating copy to clipboard operation
ioBroker.node-red copied to clipboard

Give NodeRED command at startup?

Open Typ1er opened this issue 2 years ago • 5 comments

I have a problem with a plugin in NodeRED. I need a command sent with the startup.

Here is a link to it, maybe someone can tell where to insert it, even if I am almost the only user who will use it.

With the plugin you can create your own characteristics in Homekit. For docker and standalone solution there is the command, where can I add this in iobroker?

https://nrchkb.github.io/wiki/discover-more/experimental/

In order to be able to use experimental features you have to start Node-RED with NRCHKB_EXPERIMENTAL=true environment variable.

Typ1er avatar Jul 30 '22 23:07 Typ1er

Sorry, but without code manipulations right now not possible ...

could work with adjusting this line https://github.com/ioBroker/ioBroker.node-red/blob/master/main.js#L204

to be

redProcess = spawn('node', args, { env: { ...process.env, NRCHKB_EXPERIMENTAL: 'true' } }});

(untested)

Apollon77 avatar Jul 31 '22 09:07 Apollon77

crashes at startup Bildschirmfoto 2022-07-31 um 14 00 44

Typ1er avatar Jul 31 '22 12:07 Typ1er

Oohh ... one } too much at the end

redProcess = spawn('node', args, { env: { ...process.env, NRCHKB_EXPERIMENTAL: 'true' } });

Apollon77 avatar Jul 31 '22 14:07 Apollon77

Thank you, it works 👍

Typ1er avatar Jul 31 '22 17:07 Typ1er

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar May 09 '23 01:05 stale[bot]