ioBroker / ioBroker.node-red

Instantiate the server with node-red
Apache License 2.0
52 stars 27 forks source link

Give NodeRED command at startup? #316

Open Typ1er opened 1 year ago

Typ1er commented 1 year ago

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.

Apollon77 commented 1 year ago

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)

Typ1er commented 1 year ago

crashes at startup

Bildschirmfoto 2022-07-31 um 14 00 44
Apollon77 commented 1 year ago

Oohh ... one } too much at the end

redProcess = spawn('node', args, { env: { ...process.env, NRCHKB_EXPERIMENTAL: 'true' } });
Typ1er commented 1 year ago

Thank you, it works 👍

stale[bot] commented 1 year ago

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.