You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I wanted to use a third-party API as a data source, for example, Weather Underground. This API accepts GET requests and produces JSON in return (for the most part). Is there a way I could define a virtual sensor that can connect to an API and accept JSON data? I suppose this might be similar to the CSV Wrapper. Would the HTTP GET wrapper be appropriate for this?
Thanks!
The text was updated successfully, but these errors were encountered:
The closest wrapper to your needs is the HTTP GET wrapper, but it was only written as an example getting data from a webcam. You could implement a new wrapper with almost the same structure but parsing the input stream with for example GSON and setting in the parameters of the wrapper the structure of the output (data fields and types, like in the Direct-Remote-Push wrapper )
You may end up with a pretty static mapping from the fields in Json, but if you succeed to make it generic enough we would be happy to merge your contribution to the master branch of GSN.
Let's say I wanted to use a third-party API as a data source, for example, Weather Underground. This API accepts GET requests and produces JSON in return (for the most part). Is there a way I could define a virtual sensor that can connect to an API and accept JSON data? I suppose this might be similar to the CSV Wrapper. Would the HTTP GET wrapper be appropriate for this?
Thanks!
The text was updated successfully, but these errors were encountered: