Skip to main content
13-Aquamarine
March 30, 2024
Solved

How can I Fetch specific property data from QueryPropertyHistory and show in a line chart graph.

  • March 30, 2024
  • 1 reply
  • 1650 views

Hello,

 

I want to fetch a specific property data from QueryPropertyHistory service.

consider like I have a thing and have a humidity and Temperature property. So I want to only fetch Temperature property data from QueryPropertyHistory. How can we do that?

 

Thanks.

Best answer by Velkumar

Hi @Pratik_Aswale 

 

In Select Entity you can select your Thing Name

 

Select Service QueryNamedPropertyHistory service in service category

 

After that, pass your thing name to EntityName

 

Velkumar_0-1712040215367.png

 

 

/VR

1 reply

19-Tanzanite
April 1, 2024

Hi @Pratik_Aswale 

 

You can use QueryNamedPropertyHistory service to get specific property value from Value Stream

 

/VR

13-Aquamarine
April 1, 2024

Hi @Velkumar 

 

Thanks for the response...

 yes its works.

But In my use case I have 3 different Things which has some property data I log and store in valuestream .Now In mashup I have dropdown widget and line chart widget.

How can we get data after selection from dropdown 1 thing and data will shown in linechart of that 1 thing?

19-Tanzanite
April 1, 2024

Hi @Pratik_Aswale

 

Pass Thing Name from Drop down to service dynamically. It should work.

Velkumar_0-1711974778206.png

 

Pass thing name from drop down 

Velkumar_1-1711974856320.png

 

 

/VR