Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Variable for cron value #77

Open
Awatatah opened this issue Apr 5, 2024 · 2 comments
Open

Environment Variable for cron value #77

Awatatah opened this issue Apr 5, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Awatatah
Copy link

Awatatah commented Apr 5, 2024

Hello, we would like to use an environment variable to set the corn value. Is there currently a way to do this?
Below is where we want to pass the env var.

image

@Steve-Mcl
Copy link
Owner

Just like any other free text field in node-red , you should be able to use ${ENV_VAR}

Docs.

https://nodered.org/docs/user-guide/environment-variables

@Steve-Mcl Steve-Mcl added the question Further information is requested label Apr 5, 2024
@Steve-Mcl
Copy link
Owner

Steve-Mcl commented Apr 5, 2024

Failing that, you can setup schedules dynamically. See the built-in examples: ctrl+i ➡️ examples ➡️ node-red-contrib-cron-plus whereby you could use a change node to grab the env var to form a dynamic Cron schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants