Hi, I need your help. I'm working on a project and I want to implement an external API for Marine Traffic. How can I do this?
Should I use the web dev module or directly in scripts?
The final objective is to display this data in perspective.
Can you give us a link so we can check the returned data format?
It is in json format
Edit: If making data available to external source:
Either Web Dev or common database access.
Web Dev if external source needs a process / code within Ignition to execute in order to obtain results.
Web Dev is not required to read from an external API. Use httpClient in scripting (see post below).
If you are reading an API use the system.net.httpClient | Ignition User Manual function. If you are providing an API for others to read then you want to use the WebDev module.
On the httpClient function... you will want to put that in a project library script, create the client at the top of the script file, outside of any functions etc..., and use that in your script.
Also consider the GitHub - Kyvis-Labs/ignition-api-client-module: An Ignition module that provides an easy way to interface with REST APIs without having to write scripts in Ignition. as a very easy to maintain module to replace scripting the system.net.httpClient | Ignition User Manual
If you are using Ignition Maker Edition, the Sepasoft Web Services module is available for free. Sepasoft MES Modules Downloads & Resources | Sepasoft