Page 1 of 1

Simple Time Series Data

Posted: Wed Feb 28, 2024 8:52 am
by kongshui
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?

Re: Simple Time Series Data

Posted: Mon Mar 04, 2024 2:51 am
by kongshui
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
}

Re: Simple Time Series Data

Posted: Mon Mar 04, 2024 6:24 pm
by ESP_Piyush
Yes, we discovered this issue related to hyphen in device/param name last week and are working on a fix for it.