Environment Variables

Environment Variables

Environment Variable is a very useful resource to send variables values to the context of your script. You can, for example, add tokens of accounts and devices to be used later in the script when it runs. The Analysis will get these variables as “environment” parameters and used them in the context of your script.

  1. New Environment variable:  add or remove an environment variable.
  2. Variable Key: the variable name
  3. Variable Value: the value of the variable. integer or string
You can have up to 20 environment variables for each Analysis.
If you attempt to add additional items beyond the limit, a notification will appear indicating that the maximum capacity has been reached.

How to use Environment Variables

Environment Variables can be integrated into your Analysis via the context.environment parameter when writing your scripts, which allows you to pass variable values into your script's context.

Do you need to store sensitive information, such as passwords or API keys, as environment variables? You should use Secrets, which are encrypted environment variables designed for this purpose. Learn more about Secrets here.
Check out our SDK documentation.

    • Related Articles

    • Grouping variables

      Grouping variables It is expected that most devices will send more than one variable at a certain time. And when visualizing the data, the user may want to see them synchronized at each sample period. For example, a device sends a GPS location, speed ...
    • Filtered Variables

      Filtered variables is a type of field in the Input Form widget. It enables you to select a single value from a list that can change dynamically based on the values of other fields. For this type of field to work, you need to link it to another field. ...
    • Payload Parser - Context & global variables

      If you are going to create your own parser, you need to understand how context works. When you start writing your own Payload Parser, you can use certain globals variables in your code. Think of these global variables as variables that you can access ...
    • Filtering Out Variables with Parser Code

      When your device sends data from a sensor to TagoIO, a parser code may be added to your device (located in the 'Payload Parser' tab) to extract and create the variables in the Device's data storage using TagoIO format. If you want to save space in ...
    • Secrets

      Secrets are encrypted environment variables that can be used to store sensitive information, such as passwords and API keys. You set a key and a value for your secret: the key serves as the name of the secret, while the value contains your sensitive ...