Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hey there,
First I want to say that I am rather new to this, just learning my way through an existing system. I don't know a ton about APIs or KEPServer. I've been tasked with taking wireless sensors and retrieving their data through Rest API. The sensors are known as Alta Monnit Sensors. Their web portal showcases a way to retrieve data this way.
They also have a guide on how to receive the data utilizing Postman
Now I believe what I want to do is create on IOT Gateway Agent, use "https://www.imonnit.com/json/SensorGet?sensorID=1220966 " as my URL, POST as my method. However from here, if I'm on the right track, I'm not sure how to get the data into tags.
Any advice?
@KL_10673596
Yes, you are on the right track. Here are a few links which might help you started:
CS376106 - Postman example to write tag with Kepware IOT Gateway REST Server Agent (ptc.com)
IoT Gateway Demo Video (youtube.com)
I also recommend opening a support ticket with the Kepware team for additional more detailed instruction catered to your specific architecture. Here is a link to the login page where a ticket can be opened:
Thanks,
*Chris
I've made a support ticket.
As a form of solving my issue, I made a Python Script that sends a POST Request to Monnit, stores that needed data from the reply, then sends a POST message to a REST Server Agent telling it to update simulation device tags.
I would personally like to remove the middle man, the python script, from this process, but it works.
Currently thinking using universal device driver will be the way to go. Working with PTC support to create a device profile to achieve the desired solution. Will post update and solution.
youtube link for universal device driver. Link
@Karson wrote:
Hey there,
First I want to say that I am rather new to this, just learning my way through an existing system. I don't know a ton about APIs or KEPServer. I've been tasked with taking wireless sensors and retrieving their data through Rest API. The sensors are known as Alta Monnit Sensors. Their web portal showcases a way to retrieve data this way.
They also have a guide on how to receive the data utilizing Postman
Now I believe what I want to do is create on IOT Gateway Agent, use "https://www.imonnit.com/json/SensorGet?sensorID=1220966 " as my URL, POST as my method. However from here, if I'm on the right track, I'm not sure how to get the data into tags.
Any advice?
To retrieve data from Alta Monnit Sensors using their REST API, you'll need to familiarize yourself with the API documentation provided on their web portal. Start by understanding the endpoints available for data retrieval and the required authentication methods.