# Analysis and Actions

**URL:** https://community.tago.io/c/tagoio/analysis-and-actions/12.md

[Latest](https://community.tago.io/latest.md) · [Categories](https://community.tago.io/categories.md) · [Tags](https://community.tago.io/tags.md)

---

## [What the JS libraries available to use in analysis?](https://community.tago.io/t/what-the-js-libraries-available-to-use-in-analysis/1309)

<div class="topic-metadata">

**Author:** [@julihermes.melo](https://community.tago.io/u/julihermes.melo)\
**Replies:** 4\
**Last updated:** [June 25, 2026, 4:29pm UTC](https://community.tago.io/t/what-the-js-libraries-available-to-use-in-analysis/1309 "2026-06-25T16:29:58Z")

</div>

Hi, guys! I know we can use some libraries like axios or dayjs in analysis just call them with “require”. const axios = require("axios"); I just to know all the libraries available to use in analysis, a simple list or…

---

## [Strategy Suggestions Requested for Managing Location Data for Stationary Devices](https://community.tago.io/t/strategy-suggestions-requested-for-managing-location-data-for-stationary-devices/1879)

<div class="topic-metadata">

**Author:** [@marlanw](https://community.tago.io/u/marlanw)\
**Replies:** 9\
**Last updated:** [April 15, 2026, 5:14pm UTC](https://community.tago.io/t/strategy-suggestions-requested-for-managing-location-data-for-stationary-devices/1879 "2026-04-15T17:14:49Z")

</div>

Team, I’d like to be able to show the location of stationary devices on a map widget for a large ranch. There could be 100s of these devices, but they will not move. What do all of you think the best strategy would be? …

---

## [Alerts Versus Analysis/Parameters](https://community.tago.io/t/alerts-versus-analysis-parameters/1880)

<div class="topic-metadata">

**Author:** [@marlanw](https://community.tago.io/u/marlanw)\
**Replies:** 1\
**Last updated:** [April 13, 2026, 2:38pm UTC](https://community.tago.io/t/alerts-versus-analysis-parameters/1880 "2026-04-13T14:38:16Z")

</div>

Team, When a system needs to scale, you might add a bunch of devices that each have a different “normal” (say a water level), a different “too low” level, and a different “too high” level - each of the too low and too h…

---

## [Source Control Best Practices](https://community.tago.io/t/source-control-best-practices/1860)

<div class="topic-metadata">

**Author:** [@info1](https://community.tago.io/u/info1)\
**Replies:** 1\
**Last updated:** [February 19, 2026, 2:50pm UTC](https://community.tago.io/t/source-control-best-practices/1860 "2026-02-19T14:50:01Z")

</div>

Greetings, My TagoIO implementation involves numerous custom payload parsers, analysis scripts and custom widgets. In all of these cases, code is cut & pasted from an external source into the respective Tago editors and…

---

## [Analysis deprecated](https://community.tago.io/t/analysis-deprecated/1856)

<div class="topic-metadata">

**Author:** [@alexd](https://community.tago.io/u/alexd)\
**Replies:** 1\
**Last updated:** [February 11, 2026, 8:45pm UTC](https://community.tago.io/t/analysis-deprecated/1856 "2026-02-11T20:45:32Z")

</div>

Hi, I have some old analyses still running with old runtime Node.js or Python. I’m seeing new options when selecting the analysis runtime. I am uncertain if I should start over with all my analyses or if the depreca…

---

## [In Analysis when using sendData how do you write a floating value](https://community.tago.io/t/in-analysis-when-using-senddata-how-do-you-write-a-floating-value/1780)

<div class="topic-metadata">

**Author:** [@marlanw](https://community.tago.io/u/marlanw)\
**Replies:** 1\
**Last updated:** [November 17, 2025, 12:48pm UTC](https://community.tago.io/t/in-analysis-when-using-senddata-how-do-you-write-a-floating-value/1780 "2025-11-17T12:48:18Z")

</div>

I couldn’t find an example of this. Here is my sendData filter: const pulses\_per = { variable: "gallons\_per\_sample", value: num\_pulses\_per\_sample/pulses\_per\_gallon, unit: "gallons" }; Will it write a floatin…

---

## [Pushing new variable values from an Analysis script](https://community.tago.io/t/pushing-new-variable-values-from-an-analysis-script/1777)

<div class="topic-metadata">

**Author:** [@info1](https://community.tago.io/u/info1)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 5:27am UTC](https://community.tago.io/t/pushing-new-variable-values-from-an-analysis-script/1777 "2025-11-05T05:27:42Z")

</div>

I have a device variable that is calculated and pushed by a payload parser script. This script calculates the variable based on a formula that uses ingested data and device parameter values. The parameter values can be …

---

## [Blueprint Widget Header Button Scope](https://community.tago.io/t/blueprint-widget-header-button-scope/1771)

<div class="topic-metadata">

**Author:** [@info1](https://community.tago.io/u/info1)\
**Replies:** 6\
**Last updated:** [October 22, 2025, 4:38am UTC](https://community.tago.io/t/blueprint-widget-header-button-scope/1771 "2025-10-22T04:38:11Z")

</div>

Greetings, I have a Blueprint widget where I would like to call an analysis when a header button is clicked. My analysis looks for a deviceID as follows: async function runAnalysis(context, scope) { const deviceID…

---

## [Cannot send downlink in analysis using the python SDK](https://community.tago.io/t/cannot-send-downlink-in-analysis-using-the-python-sdk/1765)

<div class="topic-metadata">

**Author:** [@charlesp](https://community.tago.io/u/charlesp)\
**Replies:** 2\
**Last updated:** [October 1, 2025, 8:16pm UTC](https://community.tago.io/t/cannot-send-downlink-in-analysis-using-the-python-sdk/1765 "2025-10-01T20:16:35Z")

</div>

Hi, I am currently running an external analysis on my work laptop using the latest tagoio\_sdk on pip and the sendDownlink function doesn’t seem to work. Here is a snippet of code including how I import it and use it: f…

---

## [Minimum value Y axis auto-scale not working](https://community.tago.io/t/minimum-value-y-axis-auto-scale-not-working/1480)

<div class="topic-metadata">

**Author:** [@damien.maher](https://community.tago.io/u/damien.maher)\
**Replies:** 6\
**Last updated:** [September 17, 2025, 1:10pm UTC](https://community.tago.io/t/minimum-value-y-axis-auto-scale-not-working/1480 "2025-09-17T13:10:50Z")

</div>

Hi we are recently finding that setting ‘Dynamic’ scaling option for the Y-axis only works for the upper limit and set the minimum to zero. Is there any fix for this?

---

## [Analysis with Blueprint dashboards](https://community.tago.io/t/analysis-with-blueprint-dashboards/1732)

<div class="topic-metadata">

**Author:** [@info1](https://community.tago.io/u/info1)\
**Replies:** 6\
**Last updated:** [July 18, 2025, 3:59pm UTC](https://community.tago.io/t/analysis-with-blueprint-dashboards/1732 "2025-07-18T15:59:34Z")

</div>

Greetings: I’m attempting to implement a very simple analysis that reads a device parameter, acts on it, and writes a new parameter back to the device. This is exactly what the “Operate data from devices” example snippe…

---

## [Need to fix the chart it is not showing up the graphs](https://community.tago.io/t/need-to-fix-the-chart-it-is-not-showing-up-the-graphs/1744)

<div class="topic-metadata">

**Author:** [@shahran.asim](https://community.tago.io/u/shahran.asim)\
**Replies:** 4\
**Last updated:** [August 31, 2025, 7:05pm UTC](https://community.tago.io/t/need-to-fix-the-chart-it-is-not-showing-up-the-graphs/1744 "2025-08-31T19:05:02Z")

</div>

Hello Folks, I have create this sample script to visualize the last 20 readings in a chart. I am unable view it on the chart. Please see the attached code and report output.

---

## [ModBus TCP Communication](https://community.tago.io/t/modbus-tcp-communication/1740)

<div class="topic-metadata">

**Author:** [@ferriautomacao](https://community.tago.io/u/ferriautomacao)\
**Replies:** 1\
**Last updated:** [August 11, 2025, 6:09pm UTC](https://community.tago.io/t/modbus-tcp-communication/1740 "2025-08-11T18:09:33Z")

</div>

Is it possible to perform ModBus TCP communication directly with TagoIO?

---

## [Translations in a custom widget](https://community.tago.io/t/translations-in-a-custom-widget/1444)

<div class="topic-metadata">

**Author:** [@vincent.raaijmakers](https://community.tago.io/u/vincent.raaijmakers)\
**Replies:** 5\
**Last updated:** [August 11, 2025, 12:24pm UTC](https://community.tago.io/t/translations-in-a-custom-widget/1444 "2025-08-11T12:24:15Z")

</div>

Hi, is it possible to use dictionaries for translating text in a custom widget. We obviously tried something like: button.innerHTML = '#CWDGT.BUTTON\_TEXT#'; but that didn’t work. Any guidance would be highly apprecia…

---

## [Trigger update on device parameter change](https://community.tago.io/t/trigger-update-on-device-parameter-change/1738)

<div class="topic-metadata">

**Author:** [@info1](https://community.tago.io/u/info1)\
**Replies:** 2\
**Last updated:** [July 28, 2025, 8:11pm UTC](https://community.tago.io/t/trigger-update-on-device-parameter-change/1738 "2025-07-28T20:11:04Z")

</div>

Greetings, On our Blueprint Dashboard, a user can change a device parameter via the Device List widget. We use device parameters in combination with variables to visualize device and system info. Is there a mechanism t…

---

## [Action/Analysis to delete data by group id](https://community.tago.io/t/action-analysis-to-delete-data-by-group-id/1699)

<div class="topic-metadata">

**Author:** [@eddie](https://community.tago.io/u/eddie)\
**Replies:** 2\
**Last updated:** [July 16, 2025, 8:20pm UTC](https://community.tago.io/t/action-analysis-to-delete-data-by-group-id/1699 "2025-07-16T20:20:28Z")

</div>

I have a sensor that reboots if it doesn’t receive a response back from the network. When it does reboot it sends all zeros for the data on fPort4. When this happens it falsly triggers alerts. I tried to write the pa…

---

## [Action "Post data to HTTP End-Point" JSON format](https://community.tago.io/t/action-post-data-to-http-end-point-json-format/1716)

<div class="topic-metadata">

**Author:** [@rodrigo.moraes](https://community.tago.io/u/rodrigo.moraes)\
**Replies:** 3\
**Last updated:** [July 9, 2025, 12:56pm UTC](https://community.tago.io/t/action-post-data-to-http-end-point-json-format/1716 "2025-07-09T12:56:14Z")

</div>

I tried searching in the documentation, but I could not find what is the exact format of the JSON that the “Post data to HTTP End-Point” Action sends. Here it mentions it is “as defined by the variable in the Trigger”. T…

---

## [Is it possible to get data to sum (add) data within the preset time period?](https://community.tago.io/t/is-it-possible-to-get-data-to-sum-add-data-within-the-preset-time-period/1052)

<div class="topic-metadata">

**Author:** [@sevils](https://community.tago.io/u/sevils)\
**Replies:** 5\
**Last updated:** [July 1, 2025, 2:03pm UTC](https://community.tago.io/t/is-it-possible-to-get-data-to-sum-add-data-within-the-preset-time-period/1052 "2025-07-01T14:03:03Z")

</div>

Hi everyone, just wondering if it’s possible to get a widget to give me the sum of data within the preset time intervals, and refresh once the new time interval is selected? I’m trying to do it for a rain gauge, where I…

---

## [Input validation session\_id](https://community.tago.io/t/input-validation-session-id/1731)

<div class="topic-metadata">

**Author:** [@jay.steinman](https://community.tago.io/u/jay.steinman)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 1:20pm UTC](https://community.tago.io/t/input-validation-session-id/1731 "2025-06-30T13:20:19Z")

</div>

I’d like to make use of the session\_id for input validation. Where do I pull the user’s session ID from? I do not see it in either the scope or context when my analysis runs.

---

## [Automatic Static Table Widget Creation](https://community.tago.io/t/automatic-static-table-widget-creation/1728)

<div class="topic-metadata">

**Author:** [@christian](https://community.tago.io/u/christian)\
**Replies:** 1\
**Last updated:** [June 13, 2025, 9:07pm UTC](https://community.tago.io/t/automatic-static-table-widget-creation/1728 "2025-06-13T21:07:18Z")

</div>

Hello, I’m wondering if it’s possible to automatically create a static table widget whenever a new device is added, with the table dynamically adjusting the number of rows based on the number of variables in the device. …

---

## [Environment Variables and Profile Token](https://community.tago.io/t/environment-variables-and-profile-token/1719)

<div class="topic-metadata">

**Author:** [@digital.agro](https://community.tago.io/u/digital.agro)\
**Replies:** 1\
**Last updated:** [May 8, 2025, 2:14pm UTC](https://community.tago.io/t/environment-variables-and-profile-token/1719 "2025-05-08T14:14:26Z")

</div>

Hi, It would be great if you help me with these question. How can I edit the environment variables of an analysis using the TagoIO API? I’m currently using this method to edit other properties, can environment variab…

---

## [How does the dashboard ordering system work in Tago Run?](https://community.tago.io/t/how-does-the-dashboard-ordering-system-work-in-tago-run/1717)

<div class="topic-metadata">

**Author:** [@geovane.silva](https://community.tago.io/u/geovane.silva)\
**Replies:** 1\
**Last updated:** [May 8, 2025, 1:18pm UTC](https://community.tago.io/t/how-does-the-dashboard-ordering-system-work-in-tago-run/1717 "2025-05-08T13:18:30Z")

</div>

Hello, good morning! I’ve been having trouble with the ordering of dashboards in Tago Run. For example, I’d like users to see the “cad” dashboard first when they log into the application. However, I have a dashboard nam…

---

## [Entity filter not working in SDK](https://community.tago.io/t/entity-filter-not-working-in-sdk/1709)

<div class="topic-metadata">

**Author:** [@julihermes.melo](https://community.tago.io/u/julihermes.melo)\
**Replies:** 2\
**Last updated:** [February 18, 2025, 8:57pm UTC](https://community.tago.io/t/entity-filter-not-working-in-sdk/1709 "2025-02-18T20:57:57Z")

</div>

Hi!! I am trying filter entities data in SDK but no working, that\`s my code: const openedDoors = await Resources.entities.getEntityData(env.entity\_id, { filters: { opened: '1', }, }); This code alway…

---

## [\[Analysis\] Add default support for Zod package](https://community.tago.io/t/analysis-add-default-support-for-zod-package/1701)

<div class="topic-metadata">

**Author:** [@douglas.zuqueto](https://community.tago.io/u/douglas.zuqueto)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 12:24pm UTC](https://community.tago.io/t/analysis-add-default-support-for-zod-package/1701 "2025-01-27T12:24:52Z")

</div>

Hello TagoIO team. Working with the development of Analysis, I am having the need to perform a deeper validation on the input and output data, as well as to have better support for typing with Typescript. What is your …

---

## [BCC on Sendgrid Emails?](https://community.tago.io/t/bcc-on-sendgrid-emails/1698)

<div class="topic-metadata">

**Author:** [@christian](https://community.tago.io/u/christian)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 9:07pm UTC](https://community.tago.io/t/bcc-on-sendgrid-emails/1698 "2025-01-13T21:07:46Z")

</div>

Hello, I see this example in the SDK but see no example with BCC? Is CC, or BCC possible?

---

## [Tago API listing devices with filter](https://community.tago.io/t/tago-api-listing-devices-with-filter/1695)

<div class="topic-metadata">

**Author:** [@ischacht](https://community.tago.io/u/ischacht)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 8:40pm UTC](https://community.tago.io/t/tago-api-listing-devices-with-filter/1695 "2025-01-08T20:40:56Z")

</div>

Hi all, I’m doing an external integration for a client, so I’m using the Rest API documentation, specificially the GET method for https://api.tago.io/device. I need to retrieve and filter all the devices with a specifi…

---

## [External email service integration](https://community.tago.io/t/external-email-service-integration/1693)

<div class="topic-metadata">

**Author:** [@tony.raftis](https://community.tago.io/u/tony.raftis)\
**Replies:** 4\
**Last updated:** [December 27, 2024, 3:39pm UTC](https://community.tago.io/t/external-email-service-integration/1693 "2024-12-27T15:39:44Z")

</div>

Hello, good morning. I was reading the Tago documentation about setting up an external email service since, starting January 1st, Tago will no longer provide native support for email sending. I came across some question…

---

## [Custom pin in the map widget](https://community.tago.io/t/custom-pin-in-the-map-widget/1433)

<div class="topic-metadata">

**Author:** [@sensors2net](https://community.tago.io/u/sensors2net)\
**Replies:** 1\
**Last updated:** [December 23, 2024, 12:48pm UTC](https://community.tago.io/t/custom-pin-in-the-map-widget/1433 "2024-12-23T12:48:28Z")

</div>

Is it possible to set a custom image for the pin in the map widget and I don’t mean the Infobox image but the pin itself.

---

## [Sending downlink with the dashboard](https://community.tago.io/t/sending-downlink-with-the-dashboard/1689)

<div class="topic-metadata">

**Author:** [@acorales](https://community.tago.io/u/acorales)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 1:24pm UTC](https://community.tago.io/t/sending-downlink-with-the-dashboard/1689 "2024-12-02T13:24:56Z")

</div>

Olá, tudo bem? Estou tentando criar uma análise para enviar um downlink quando eu aperto o botão no dashboard. Tenho um dispositivo Dragino RS-485 LN que está conectado a uma placa de relé também RS-485, mas quando tente…

---

## [Detecting Applied Filters in Map Widget](https://community.tago.io/t/detecting-applied-filters-in-map-widget/1683)

<div class="topic-metadata">

**Author:** [@nemanja.ilic](https://community.tago.io/u/nemanja.ilic)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 12:08pm UTC](https://community.tago.io/t/detecting-applied-filters-in-map-widget/1683 "2024-10-29T12:08:23Z")

</div>

Hi. I am using filters within the Map widget. Is there a way to detect which filter has been applied in the observed widget by using TagoIO analysis and SDK methods? For example, the goal is for the user to trigger an …

[Next page](https://community.tago.io/c/tagoio/analysis-and-actions/12.md?page=1)
