Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. rcyr
  2. Proficloud
  3. Friday, 27 November 2020

Hello,

Is there an example on how to GET metrics value with TSD REST API from the PLCnext?

I want to read a value of a metric at a specific timestamp from the Proficloud database.

I was thinking of using a python script (with Requests package) or node-red flow for this task.

I'm not sure about the url I must use. 

Any advise? :)

Thanks

Robin

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Robin,

I've moved this to the "Proficloud" topic, I hope that's OK.

If I understand correctly, you want to log data to the Proficloud TSD service, from either this PLC and/or other PLC(s). Then, you want to read back some data that is logged in the Proficloud database, using a client running on the PLC, using the REST interface on the Proficloud TSD database. Is that a fair summary?

I understand that it is possible for the Proficloud team to set up REST access to a customer's Proficloud database, on request. I guess you have requested this already.

Since the REST interface is enabled on a case-by-case basis, and is not a generally available feature, I will ask someone from the Proficloud team to contact you directly with information on how to use that REST interface.

Regards,
Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. Proficloud
  3. # 1
rcyr Accepted Answer Pending Moderation
0
Votes
Undo

Hi Martin,

Thanks for the quick feedback.

That's exactly what I want to do.

I already have the API Access password. It's for the account ''pxcanada''

Thank you for your help!

Best regards

Robin

  1. more than a month ago
  2. Proficloud
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.