Missing "analysis_token" environment variable: External Analysis Togo-SDK
Hi Folks! I am trying to run external analysis from a Tago SDK on Python, but I'm encountering an issue: 'Missing "analysis_token" environment variable' even though I've set the token parameter. Connected to TagoIO, Getting analysis information... Analysis
Linking to blueprint device dashboard with an internal link
Hi everyone, Last week I worked on creating a blueprint overview dashboard to show the last known locations of every tracker and storing that in a dummy device with a mutable bucket (following this post here). Now I wanted to add a link to the device
How to access Device query using listDevice ?
Hi, I am trying to use filter in listDevice to access device query but the function is returning query object of other device. Expected Device ID and returned device ID does not match. I have used filter in Java script works fine but in python script
minimum value Y axis auto-scale not working
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?
Change Variable if Date is today
Hello, is there a sample how I can change a value of a variable of an Device when the date is the same from antoher variable of the Date? Thanks Fabian
Is it possible to use python librairy (like NumPy)?
I am currently making an analysis who read the data collected throught device, interpolate them and save the data as a png who will be used in a custom widget. In order to interpolate my data, I intended to use the interpolation function of NumPy since
immutable to mutable bucket
We recently had to add an additional variable to be used for our solution. The initial setup is using an immutable bucket with a retention of 1 year. However, with the additional variable we need to change strategy. The 2 variables need to have different
Unique ID
I have a dynamic Table, and I want to generate for every entry an unique ID. Its also possible to generate it with an extra button in the Table Control. I dont know how I can get the date in my Analysis to handle to automated generation. Maybe somebody
Send Email by Analysis
Hey guys! I have this analysis that is being used to trigger an email and an SMS according to the established condition. It happens that the analysis runs without any errors, but the email or SMS does not arrive. I have already enabled permissions in
Analysis: device.sendData() requiring mqtt_topic
Hello! I have been testing the analysis code below and it is outputting this error: [2024-03-06 12:18:46] Error when inserting: Function Parse Error: TypeError: Cannot read properties of undefined (reading 'mqtt_topic') /* * Analysis Example * Operate
How to use Device Value in Hidden Field Form
Hello, how I can use a value from my device Source in a hidden field in a form? Is there any Chance... I want to insert a pre defiened Number from another Form, to add it to a table.. Thanks Fabian
Access the device token through the device_id
Hey guys. I'm trying to develop an analysis that captures all the devices I have at once. I was able to get the ID of all of them, but to access the variables, I need access to the token. But I'm not finding a way to access the token by ID. Is it possible
Multi Select User for Notification
Is it possible to select multiple Users for the Notification? This would be helpful to add :D
How do you use action tag in an analysis
I am currently facing a problem. I have an Analysis named "Get_Station_Meteo_Data" and it work perfectly. My problem is that I have several simular utilisation of this Analysis. - I use the Analysis Hourly and I also run it Daily. - I also collect the
Analysis Error Handling
Hi I handle my local errors like this async function Night(context, scope) { try { // ... (your existing Night function code) } catch (error) { context.log('Error in Night function:', error.message); } } // The function myAnalysis will run when you execute
Authorization Denied - Sending Email Through Analysis
For some reason I cannot send an email through analysis. Here is my code where I create a user and then want to send them a welcome email. I have an access policy where this analysis is allowed to send emails but I still get authorization denied. Any
Downlink Analysis Problem
Hello, i wrote this script for sending a downlink to an blueprint device: const { Account, Resources, Analysis, Device, Utils, Services } = require("@tago-io/sdk"); async function updateTag(context, scope) { // Requires scope to know what device and what
filter variable by date
Estou com dificuldade para filtrar as variáveis de um determinado período, neste caso, quero saber seu valor acumulado mensalmente, mês a mês, e quando a análise for executada, aparece apenas os dados mais recentes inseridos. Aqui está a análise: const
Adding timestamp to email export
The 'Email export' analysis provided by Tago is a simple way to automate export of data from a sensor for a defined period of time. However, the export file only contains the value without a timestamp. This makes the data practically useless. Is there
Deprecated account.devices
Noticed that account.devices is now deprecated. What can i do? Was using it for updating tags, creation and deletion of devices... const device_info = await account.devices.info(origin); account.devices.edit(origin, { tags }); const result = await account.devices
Cannot read properties of undefined (reading 'value') and Cannot read properties of undefined (reading ' metadata')
My current payload is this: [ { "variable": "segundo", "value": 9, "minuto": 45, "hora": 13, "dia": 4, "mes": 12, "ano": 23, "valor": 6486, "metadata": { "mqtt_topic": "mensagem/json" } } ] When I use emulator to send it so I can get the variables of
Multi variable Custom Widget
Looking for a developer to create a custom widget to show temperature plus the device name temperature is associated with we have on data stream with data from multiple devices providing temp, humidity , etc what I require is a temp widget that shows
Alert on missing data?
@Graeme Rae Is there a simple way to send an alert (email/sms/dash notification/other?) if data to a bucket hasn’t been received in a given time? I’d like to get an alert if a bucket hasn’t been updated within the last 6 hours. I can see the date stamp
Como enviar setpoint recebido em dashboard para tópico MQTT ?
Tenho uma aplicação utilizando o ESP32, o mesmo irá fazer o controle de um ar condicionado via infravermelho. Quero enviar o setpoint de temperatura via dashboard utilizando tópico MQTT. Alguem pode me ajudar
How would you trigger an alert for a boolean status over a period of time
for example: if water is flowing: flowrate = 1 if water is not flowing : flowrate = 0 how would i use this to trigger an alert if flowrate = 1 for (x) amount of time then send email etc...
generate pdf
I can't even run the pdf generator example, authorization denied appears, has anyone experienced this?
Trouble passing device_id from action
Hello, I'd like to pass the device_id of the device that triggers the analysis. This analysis is setup to trigger on mqtt topic. It then posts data to an http endpoint. I successfully get the payload, but am not able to pass the device_id through. Any
Best location to host external analysis
Hello, I am running my analysis in AWS. I believe many of the Tago services are also hosted in AWS. I want to host my analysis in the same region to reduce latency with API requests. What region would you recommend? Caio
Capture User on Custom Widget
Hello community, We are currently exploring Tago.io platform for integration into our projects, and so far, the experience has been quite positive. However, we are facing some challenges in implementing the Custom Widget, especially regarding the registration
(New SDK) - Authorization Denied sendDeviceData
Hello everyone, I'm facing a problem when trying to send data using the TagoIO SDK. Every time I try to send data I get an error message saying "Authorization Denied". I've already checked my access tokens and they appear to be correct. Here's an example
Upload image with form widget and send by email
Hello, I have a blueprint dashboard with a form widget. There is an upload file field and I want to trigger an analysis with submit button that send this file by email. I have this: const attachment = scope.find(x=> x.variable === 'attachment') await
Histogram Widget: Sort by value
I'm sure this is a simple setting, but I can find it. How can you sort a histogram by value, not by series or time? Thanks, Vincent
Analysis to send MQTT message
@Adams Zeidler Hello I´m working on an analysis to send a MQTT message to my device under topic “button”; I Have a variable called “push_payload” that is updated when a form is updated. I have already tested an action triggered by the variable update
Running Analysis using API
Is it possible to run an analysis using the API. I can't find any documentation about the analysis API, I just tried it but keep getting authorization errors. Using Postman: POST: https://api.tago.io/analysis/<analysis_id>/run Headers: Whatever I tried,
Multithreading with external Python Analysis
I have been looking at options to allow for an external script to be called in a non-blocking way. In my case I have a script that post processes data from a sensor when it is parsed and placed in a bucket. However, since I have many devices, processing
Account info for sending emails and sms from analysis
I am setting up an application for a hardware device that users will create their own tago run account and register the device with. One thing I am working through is creating email/sms notifications for certain conditions which will be handled by an
Generating user tokens for login
Hello. I see when I click the "login as user" button, a token is generated. https://floracloud.florainstruments.com/auth/login?bytoken={mytoken} Is there a way to create and manage your own tokens using the API? I want to make a token for a run user where
Passing Parameters from Action to Analysis
As per https://help.tago.io/portal/en/community/topic/passing-parameters-to-analysis-ex-device-token I want to run the same analysis against each device as it provides an update. The above topic no longer seems accurate, as the Account class seems to
Download data by analysis
I'm making an application and I would like to download and save the bucket data as .CSV. I'm currently using analize to generate the .CSV and save in the Files, but I haven't found any function that allows me to download the .CSV to the machine. Is there
Query data between range of values
Hello, I have data in a bucket ranging with values between 100-150. In my analysis I would like to query the largest data point between two time periods, BUT I only want the largest data values between 100-120 not 100-150. For example; if the max value
Next Page