usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

Data Access API for power values and occupancy data. #191

Closed ranganathanm closed 9 years ago

ranganathanm commented 9 years ago

Need a revised API for accessing power values and occupancy data on the server. This will be used for offline analysis tools that can perform analysis not supported by the msod web application.

ranganathanm commented 9 years ago

5476b4d74b2512c3256304dd465e333d866878f3

See spectrumdb API.

Tim, please test and suggest enhancements.

Thanks,

hallnist commented 9 years ago

Not getting it to work. I am able to get a session id with curl -X POST http://localhost:8000/spectrumbrowser/isAuthenticationRequired but when I try to call getSpectrums via (for example) curl -X POST http://localhost:8000/spectrumdb/getSpectrums/E6R16W5XS/LTE/703970000/710050000/1434996700/100/user-143499666756573693360 I get a "No Data Found" status message returned. I have tried many different start time values to make sure that I picked a time when the sensor and database have been running.

I have tried the API calls from pwct3 using localhost and from my Linux box using the IP address.

ranganathanm commented 9 years ago

It appears that no data was found in the 100 second window specified. I tried the following, which returned a result :

curl -k -X POST https://pwct3.antd.nist.gov:8443/spectrumdb/getSpectrums/E6R16W5XS/LTE/703970000/714050000/1434996700/1000/user-143507329643393460234

Returned:

{ "power": "https://pwct3.antd.nist.gov:8443/spectrumbrowser/generated/user-143507329643393460234/E6R16W5XS:LTE:703970000:714050000.power.1434996700-1000.txt", "status": "OK", "time": "https://pwct3.antd.nist.gov:8443/spectrumbrowser/generated/user-143507329643393460234/E6R16W5XS:LTE:703970000:714050000.power.time.1434996700-1000.txt" }


From: hallnist notifications@github.com Sent: Monday, June 22, 2015 2:19 PM To: usnistgov/SpectrumBrowser Cc: Ranganathan, Mudumbai Subject: Re: [SpectrumBrowser] Data Access API for power values and occupancy data. (#191)

Not getting it to work. I am able to get a session id with curl -X POST http://localhost:8000/spectrumbrowser/isAuthenticationRequired but when I try to call getSpectrums via (for example) curl -X POST http://localhost:8000/spectrumdb/getSpectrums/E6R16W5XS/LTE/703970000/710050000/1434996700/100/user-143499666756573693360 I get a "No Data Found" status message returned. I have tried many different start time values to make sure that I picked a time when the sensor and database have been running.

I have tried the API calls from pwct3 using localhost and from my Linux box using the IP address.

Reply to this email directly or view it on GitHubhttps://github.com/usnistgov/SpectrumBrowser/issues/191#issuecomment-114206700.

ranganathanm commented 9 years ago

I fixed a bug in the timestamp generation. It "works for me". Please retest/verify results.

Thanks.

ranganathanm commented 9 years ago

Closing as Tim verified that it works correctly.