Last active
August 29, 2015 14:05
-
-
Save shervinshaikh/5b50f01a5cc419a03686 to your computer and use it in GitHub Desktop.
Bug - Reading sensor data on Meshblu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Asking for data between 1970-01-01 and 2033-10-28, which should return the same json as the next curl yet it says "data not found" | |
curl -L -X GET --header "skynet_auth_uuid: 641ddf90-1dab-11e4-892c-43aa68a33343" --header "skynet_auth_token: r3oen29jq0110pb97pspngm0w5e6zuxr" "http://skynet.im/data/641ddf90-1dab-11e4-892c-43aa68a33343?start=1970-01-01&finish=2033-10-28" | |
{"message":"Data not found","code":404} | |
// Asking for last few data points, should return whatever exists | |
curl -L -X GET --header "skynet_auth_uuid: 641ddf90-1dab-11e4-892c-43aa68a33343" --header "skynet_auth_token: r3oen29jq0110pb97pspngm0w5e6zuxr" "http://skynet.im/data/641ddf90-1dab-11e4-892c-43aa68a33343" | |
{"data":[{"timestamp":"2014-08-07T18:09:40.607Z","uuid":"641ddf90-1dab-11e4-892c-43aa68a33343","start":"2014-08-05T20:50:21.818Z","finish":"2014-08-05T20:60:21.818Z","ipAddress":"216.219.125.1","id":"53e3c0e4d08eb19909eaa171"},{"timestamp":"2014-08-06T20:53:21.818Z","uuid":"641ddf90-1dab-11e4-892c-43aa68tia33343","wind":"12","temperature":"78","ipAddress":"72.44.240.228","id":"53e295c19f716f0f7477688c"}]} | |
// Asking for 2013 data, should return no data | |
curl -L -X GET --header "skynet_auth_uuid: 641ddf90-1dab-11e4-892c-43aa68a33343" --header "skynet_auth_token: r3oen29jq0110pb97pspngm0w5e6zuxr" "http://skynet.im/data/641ddf90-1dab-11e4-892c-43aa68a33343?start=2013-08-06T20:50:21.818Z&finish=2013-08-06T20:60:21.818Z" | |
{"message":"Data not found","code":404} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment