diff --git a/pages/guide.js b/pages/guide.js index 1905ae6..d00835a 100644 --- a/pages/guide.js +++ b/pages/guide.js @@ -153,10 +153,10 @@ const SENCROP_RAW_DATA_PAYLOAD = `[ ] `; const CURL_SENCROP_DATA_CODE = `# Get hourly aggregated data for two days -curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/data/hourly?beforeDate=2017-10-07T07:34:32.000Z&days=2&measures=WIND_DIRECTION,WIND_MEAN"\ +curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/data/hourly?beforeDate=2017-10-07T07:34:32.000Z&days=7&measures=WIND_DIRECTION,WIND_MEAN"\ -H "Authorization: Bearer xxxxx" # Get daily aggregated data for two days -curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/data/daily?beforeDate=2017-10-07T07:34:32.000Z&days=2&measures=WIND_DIRECTION,WIND_MEAN"\ +curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/data/daily?beforeDate=2017-10-07T07:34:32.000Z&days=90&measures=WIND_DIRECTION,WIND_MEAN"\ -H "Authorization: Bearer xxxxx" `; const SENCROP_DATA_PAYLOAD = `{ @@ -225,7 +225,7 @@ const SENCROP_DATA_PAYLOAD = `{ } `; const CURL_SENCROP_STATISTICS_CODE = `# Get device statistics for two days -curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/statistics?startDate=2017-01-01T00:00:00.000Z&endDate=2017-02-01T00:00:00.000Z&measures=WIND_DIRECTION,WIND_MEAN"\ +curl "https://api.sencrop.com/v1/users/1664/devices/B16BA4/statistics?startDate=2017-01-01T00:00:00.000Z&endDate=2017-02-01T00:00:00.000Z&measures=WIND_DIRECTION,WIND_MEAN&patched=false"\ -H "Authorization: Bearer xxxxx" `; const SENCROP_STATISTICS_PAYLOAD = `{ @@ -457,11 +457,20 @@ const Index = () => ( SENCROP_DEVICES_PAYLOAD }

- The items property indicates - your the collection of devices you can access + The items property tells + you the collection of devices you can access to. While the devices hash allows your to pickup the devices details.

+

+ You may ask why using that format. It allows + our payload to avoid repating the same + informations several times while not + requiring you to use a specific JSON loader. + It also allows us to significantly reduce + our app memory footprint by easing hash + merges accross our various states. +

Reading raw device data

Your devices regularly send meteoroligical @@ -531,6 +540,12 @@ const Index = () => ( { CURL_SENCROP_STATISTICS_CODE } +

+ Note the patched parameter that allows your to retrieve + only not patched data (ie only real device data). Setting + it to true or not specifying it will not return + extrapolated leaking data refills. +

The result will look like this:

{ SENCROP_STATISTICS_PAYLOAD @@ -672,7 +687,7 @@ const Index = () => ( intensive access to the data in the meanwhile.

-

What's next ?

+

What's next ?

So you read it all? Impressive! You are now in the best conditions to use our diff --git a/pages/index.js b/pages/index.js index 2c6f573..1ac8b10 100644 --- a/pages/index.js +++ b/pages/index.js @@ -27,9 +27,9 @@ export default class Index extends React.Component {

Welcome on board! At Sencrop, we love - developers. This platform's goal is + developers. This platform's goal is intended to bring you everything you - need to invent tomorrow's farming + need to invent tomorrow's farming practices.

@@ -46,7 +46,7 @@ export default class Index extends React.Component {

Also, you can directly check our API - reference + reference{' '} for a more direct appraoch.

@@ -63,7 +63,7 @@ export default class Index extends React.Component {

PS: This website source can be found on GitHub, + >GitHub.

Developer Mailing List