Update Api

URL:

https://api.vegecloud.com/out/<RouteKey>/<HubKey>/<Channel>/<limit>

Sign into your account to get the RouteKey for your account, and the HubKey for your Hub.

Data Object format

The VegeCloud server will respond with the following JSON array:


	[
		{"t":"datetime1","v":value1},
		{"t":"datetime2","v":value2},
	]

NameDescriptionValue Type
RouteKey (Required) This key is displayed in your account when you log in. <string>
HubKey (Required) This key is essentially the password that allows you to update data to the sensors listed in your account. This value is listed in the Hub List section. <string>
Channel Each sensor hub will have one or more sensor channel slots. This field starts at one (1 based) and is number of the hub slot which is reporting back data. <integer>
limit The maximum number of samples that you want sent back. For example if this is set to 10 you, you will get 10 samples back, assuming 10 samples are available. <integer>

Example

https://api.vegecloud.com/out/34315633/IMESGJB258TNHJBK/1/2


{
	"api_key" : "54JL33XSTYPVU5B3",
	"error_code": 0,
	"sensors": [
		{ "slot": 1,
			"samples": [
				{"t":"2019-01-01 12:00:00","v":1.0},
				{"t":"2019-01-01 12:00:05","v":1.1},
				{"t":"2019-01-01 12:00:10","v":1.2}
			]
		},
		{ "slot": 2,
			"samples": [
				{"t":"2019-01-01 12:00:00","v":2.0},
				{"t":"2019-01-01 12:00:05","v":1.9},
				{"t":"2019-01-01 12:00:10","v":1.8}
			]
		}
	]
}