Safecast / safecastapi

The app that powers api.safecast.org
44 stars 25 forks source link

Couldn't post measurement #96

Closed eyesjapan-admin closed 9 years ago

eyesjapan-admin commented 11 years ago

In the project FukushimaWheel, we would like to post measurement, which iOS app receive from bGeigieNano, to server. I request with the following url: https://api.safecast.org/measurements.json?api_key=[api_key] with the following data content: { "captured_at" : "2013-02-19T05:41:00Z", "device_id" : "0210", "location" : "POINT(139.926985,37.485201)", "unit" : "cpm", "value" : "22.99" } However get the following error message from server: {"errors":{"location":["can't be blank"],"value":["can't be blank"],"unit":["can't be blank"]}}

Did I do something wrong?

robouden commented 11 years ago

Eyes-Japan

The format I can see from a pull is:

[{"captured_at":"2012-11-12T04:04:07Z","device_id":null,"id":19412661," location_name ":null,"original_id":null,"unit":"cpm","user_id":3,"value":83.0,"latitude ":37.243611666666666,"longitude":140.999755},

regards rob

On Thu, Apr 4, 2013 at 6:05 PM, Eyes,JAPAN notifications@github.com wrote:

In the project FukushimaWheel, we would like to post measurement, which iOS app receive from bGeigieNano, to server. I request with the following url: https://api.safecast.org/measurements.json?api_key=[api_key] with the following data content: _{ "captured_at" : "2013-02-19T05:41:00Z", "deviceid" : "0210", "location" : "POINT(139.926985,37.485201)", "unit" : "cpm", "value" : "22.99" } However get the following error message from server: {"errors":{"location":["can't be blank"],"value":["can't be blank"],"unit":["can't be blank"]}}

Did I do something wrong?

— Reply to this email directly or view it on GitHubhttps://github.com/Safecast/safecastapi/issues/96 .

Regards, Rob Oudendijk Yuka Hayashi http://yr-design.biz http://oudendijk.biz http://about.me/robouden tel +81 80-22605966 Skype: robouden Facebook:roboudenhttp://on.fb.me/QeKw2P twitter:robouden http://bit.ly/RAiSTC

nokton commented 11 years ago

Nick, do you know what could be worn from your experience?

Pieter

Nokton Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On 2013年4月4日Thursday at 18:15, Rob Oudendijk wrote:

Eyes-Japan

The format I can see from a pull is:

[{"captured_at":"2012-11-12T04:04:07Z","device_id":null,"id":19412661,"*
location_name*
":null,"original_id":null,"unit":"cpm","user_id":3,"value":83.0,"latitude
":37.243611666666666,"longitude":140.999755},

regards
rob

On Thu, Apr 4, 2013 at 6:05 PM, Eyes,JAPAN notifications@github.com wrote:

In the project FukushimaWheel, we would like to post measurement, which
iOS app receive from bGeigieNano, to server.
I request with the following url: *
https://api.safecast.org/measurements.json?api_key=[api_key]*
with the following data content:
_{
"captured_at" : "2013-02-19T05:41:00Z",
"deviceid" : "0210",
"location" : "POINT(139.926985,37.485201)",
"unit" : "cpm",
"value" : "22.99"
}

However get the following error message from server:
{"errors":{"location":["can't be blank"],"value":["can't be
blank"],"unit":["can't be blank"]}}

Did I do something wrong?


Reply to this email directly or view it on GitHubhttps://github.com/Safecast/safecastapi/issues/96
.

Regards,
Rob Oudendijk Yuka Hayashi
http://yr-design.biz http://oudendijk.biz http://about.me/robouden
tel +81 80-22605966 Skype: robouden Facebook:roboudenhttp://on.fb.me/QeKw2P
twitter:robouden http://bit.ly/RAiSTC

— Reply to this email directly or view it on GitHub (https://github.com/Safecast/safecastapi/issues/96#issuecomment-15887103).

robouden commented 11 years ago

Pieter

Fixed.. working fine now for Yongping.

regards rob

On Thu, Apr 4, 2013 at 7:42 PM, Pieter Franken notifications@github.comwrote:

Nick, do you know what could be worn from your experience?

Pieter

Nokton Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On 2013年4月4日Thursday at 18:15, Rob Oudendijk wrote:

Eyes-Japan

The format I can see from a pull is:

[{"captured_at":"2012-11-12T04:04:07Z","device_id":null,"id":19412661," location_name

":null,"original_id":null,"unit":"cpm","user_id":3,"value":83.0,"latitude ":37.243611666666666,"longitude":140.999755},

regards rob

On Thu, Apr 4, 2013 at 6:05 PM, Eyes,JAPAN notifications@github.com wrote:

In the project FukushimaWheel, we would like to post measurement, which iOS app receive from bGeigieNano, to server. I request with the following url: https://api.safecast.org/measurements.json?api_key=[api_key] with the following data content: _{ "captured_at" : "2013-02-19T05:41:00Z", "deviceid" : "0210", "location" : "POINT(139.926985,37.485201)", "unit" : "cpm", "value" : "22.99" } However get the following error message from server: {"errors":{"location":["can't be blank"],"value":["can't be blank"],"unit":["can't be blank"]}}

Did I do something wrong?

— Reply to this email directly or view it on GitHub< https://github.com/Safecast/safecastapi/issues/96> .

Regards, Rob Oudendijk Yuka Hayashi http://yr-design.biz http://oudendijk.biz http://about.me/robouden tel +81 80-22605966 Skype: robouden Facebook:robouden< http://on.fb.me/QeKw2P> twitter:robouden http://bit.ly/RAiSTC

— Reply to this email directly or view it on GitHub ( https://github.com/Safecast/safecastapi/issues/96#issuecomment-15887103).

— Reply to this email directly or view it on GitHubhttps://github.com/Safecast/safecastapi/issues/96#issuecomment-15890392 .

Regards, Rob Oudendijk Yuka Hayashi http://yr-design.biz http://oudendijk.biz http://about.me/robouden tel +81 80-22605966 Skype: robouden Facebook:roboudenhttp://on.fb.me/QeKw2P twitter:robouden http://bit.ly/RAiSTC

eyesjapan-admin commented 11 years ago

Thank you very much for the great help :)

nokton commented 11 years ago

Great!!

On Apr 5, 2013, at 3:27 PM, "Eyes,JAPAN" notifications@github.com wrote:

Thank you very much for the great help :)

— Reply to this email directly or view it on GitHub.

j0ry commented 9 years ago

looks resolved - marking closed