Turn on a Simple LED in device with a button in Dashboard

Hello,

I’m trying to turn on a LED on my device which is a Linux box.

I used the guide provided by the Help and the Python template code.

However, when I press the button, following error is reported in Analysis console:

[2023-08-23 16:28:38] Analysis Called.[2023-08-23 16:28:38] Duration: 1s Billed Duration: 1s.[2023-08-23 16:28:38] Analysis finished.[2023-08-23 16:28:38] > TagoIO-SDK: No region or env defined, using fallback as usa-1.[2023-08-23 16:28:38] Traceback (most recent call last): File "<string>", line 18, in <module> File "<string>", line 60, in <module> File "/analysis_python/python_modules/tagoio_sdk/modules/Analysis/Analysis.py", line 26, in init[2023-08-23 16:28:38] self.__runOnTagoIO() File "/analysis_python/python_modules/tagoio_sdk/modules/Analysis/Analysis.py", line 45, in __runOnTagoIO self._analysis(context, data) File "<string>", line 47, in my_analysis File "/analysis_python/python_modules/tagoio_sdk/modules/Services/MQTT.py", line 21, in publish result = self.doRequest( ^^^^^^^^^^^^^^^ File "/analysis_python/python_modules/tagoio_sdk/common/tagoio_module.py", line 30, in doRequest return apiRequest({**params, "url": url, "headers": {"token": self.token}}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/analysis_python/python_modules/tagoio_sdk/infrastructure/api_request.py", line 105, in apiRequest raise TagoIORequestError(resulterror) tagoio_sdk.infrastructure.api_request.TagoIORequestError: Authorization denied[2023-08-23 16:28:37] Starting Analysis...

Hi,

You must give permission for your analysis to be able to perform this operation in Access Management.

Follow the documentation with more information.

https://help.tago.io/portal/en/kb/articles/183-access-management

Thank you, it has been solved.