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

Feature: Input parameters for support scripts #1909

Open
lawik opened this issue Feb 18, 2025 · 1 comment
Open

Feature: Input parameters for support scripts #1909

lawik opened this issue Feb 18, 2025 · 1 comment
Labels
enhancement New feature or request needs more thought

Comments

@lawik
Copy link
Contributor

lawik commented Feb 18, 2025

Interest from multiple commercial users of NervesHub.

Raises several interesting questions:

  • How to make it as really safe (not just used by devs)
  • How to make a good UI for using them (limit number and types of inputs?)
  • How to make a good UI for defining them

But the need is to be able to pass custom values into a script.

@lawik lawik added enhancement New feature or request needs more thought labels Feb 18, 2025
@oussamabonnor1
Copy link

oussamabonnor1 commented Feb 18, 2025

A very interesting example of how Teltonika RMS handles this feature:

Image

You can decide which values to input before running a custom script (or task, as they call it).

This is how they allow for adding these variables:

Image

Image

In this case, lets say I want my device to tell me all the HDDs connected to it and I can pick which one to format. Or, lets say I want to make my device send an API request to link itself with a project from our DB. That project ID could be inputed by the user running a script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs more thought
Projects
None yet
Development

No branches or pull requests

2 participants