Simple Time Series Data

kongshui
Posts: 13
Joined: Tue May 16, 2023 11:49 am

Simple Time Series Data

Postby kongshui » Wed Feb 28, 2024 8:52 am

esp-idf V5.1
rainmaker master

I use the Swagger UI to obtain historical data for a certain parameter of the device。
I can see through the Swagger UI that the parameter is active and configured correctly.

param info:

Code: Select all

          {
                "data_type": "int",
                "name": "AAA",
                "properties": [
                  "read",
                  "simple_ts"
                ]
              },
But when I used Simple Time Series Data on the Swagger UI, I encountered an error as follows

Code: Select all

	
Failed to fetch.
Possible Reasons:

CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
May I ask if anyone has encountered the same problem?

kongshui
Posts: 13
Joined: Tue May 16, 2023 11:49 am

Re: Simple Time Series Data

Postby kongshui » Mon Mar 04, 2024 2:51 am

Update on the issue, I have resolved it.

The error reported by Swagger UI was because the input for "param_name" also needs to include the device name.
For example:
Device name: light
Param name: temp
In Swagger UI, "param_name" should be entered as light.temp.

At the same time, I have discovered another suspected bug: currently, Rainmaker does not support the '-' character in the device name. It causes the following error when trying to get simple TS data through Swagger UI.

Code: Select all

{
  "status": "failure",
  "description": "Error getting data from DB. Please try after some time",
  "error_code": 136003
}

ESP_Piyush
Posts: 263
Joined: Wed Feb 20, 2019 7:02 am

Re: Simple Time Series Data

Postby ESP_Piyush » Mon Mar 04, 2024 6:24 pm

Yes, we discovered this issue related to hyphen in device/param name last week and are working on a fix for it.

Who is online

Users browsing this forum: No registered users and 46 guests