Skip to content

awong789/WebAPIForward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebAPIForward

Forward simple Get request to Xively API so you can monitor each data stream value. This web application to be hosted separately and act as a message forwarder to Xively API.

 [Device] --> [WebAPIForward] --> [Xively API] --> [Xively Dashboard]

Xively connectivity can be specified in configuration file.

##Usage Example request:

http://{domain}/api/values?longitude=152&latitude=162

This will generate request to Xively API:

PUT https://api.xively.com/v2/feeds/{id}

Header :

X-ApiKey : {value is predefined in web config}

Body:

{
  "version":"1.0.0",
   "datastreams" : [ {
    "id" : "longitude",
      "current_value" : "152"
    },
      "id" : "latitude",
      "current_value" : "162"
    }
  ]
}

##Configuration: Web.Config

    <add key="host" value="api.xively.com"/>
    <add key="requestRoute" value="/v2/feeds/{insert your api route here}"/>
    <add key="apiKey" value="{insert your apiKey here}"/> 

About

Simple webapps that forward GPS IoT data to Xively Server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors