Skip to main content
13-Aquamarine
Mar 30, 2024 6:47 AM UTC
Solved

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

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.

VelkumarAnswer
19-Tanzanite
Apr 2, 2024 6:43 AM UTC

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

5 replies

19-Tanzanite
Apr 1, 2024 10:32 AM UTC

Hi @Pratik_Aswale 

 

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

 

/VR

Translate
13-Aquamarine
Apr 1, 2024 11:26 AM UTC

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?

Translate
19-Tanzanite
Apr 1, 2024 12:34 PM UTC

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

 

Translate