Closed NW-Lab closed 3 months ago
@NW-Lab – this looks reasonable. Before merging, would you consider the suggestion here? Thank you.
@phoddie san I saw Suggestion. This is OK. I thought about it myself. This part runs on the MCU, but I couldn't understand it because I didn't know how to set the environment variables inside the MCU. Will the PC's environment variables be inherited?
Thank you.
because I didn't know how to set the environment variables inside the MCU. Will the PC's environment variables be inherited?
The PC's environment won't work reliably on the MCU. But, each Node-RED flow has environment variables. They are available on the MCU (nodered2mcu
includes them in the generated JavaScript). Here's an example of setting an environment variable in the Node-RED Editor.
https://github.com/phoddie/node-red-mcu/assets/6856458/a3d37a59-71c9-4c42-9766-70d1e6a94824
(You can also use Groups in the Node-RED Editor to set environment variables for a set of nodes, but that isn't useful for this case....)
@phoddie Thank you for teaching me how to set environment variables. This is the first time I learned that it can be set for each Flow.
thank you.
Merged. Please close this PR. Thank you,
Thank you for merging.
Hello
sorry. I've recreated my repository, so I'll post it again.
https://github.com/phoddie/node-red-mcu/discussions/123
This is a pull request that retrieves data from the manifest.
sample flows.json
Sorry for the Japanese article. https://qiita.com/NWLab/private/c50766ff7dbb5b122425
Thank you.