Query metrics from Proficloud database from PLCnext (TSD REST API)

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? :slight_smile: Thanks Robin

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.

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