Home Forum Support API broken?

This topic contains 2 replies, has 2 voices, and was last updated by  Radu 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6555

    baskin
    Participant

    It seems that the API is returning values multiple times since 1-2 hours ago and not only once

    
    curl -H "X-User-id:4115" -H "X-User-hash:<key>" httpsor.com/api/v1/devices/8200015E/vocaqi/
    

    Returns a big list like that:

    {"time":1557843394,"latitude":37.426900000000003,"longitude":24.9453,"altitude":53.509999999999998,"vocaqi":72},{"time":1557843857,"latitude":37.426900000000003,"longitude":24.9453,"altitude":55.18,"vocaqi":47},{"time":1557844346,"latitude":37.426900000000003,"longitude":24.9453,"altitude":57.689999999999998,"vocaqi":87},{"time":1557844813,"latitude":37.426900000000003,"longitude":24.9453,"altitude":61.119999999999997,"vocaqi":143},{"time":1557845273,"latitude":37.426900000000003,"longitude":24.9453,"altitude":56.439999999999998,"vocaqi":125},{"time":1557845763,"latitude":37.426900000000003,"longitude":24.9453,"altitude":55.009999999999998,"vocaqi":68},{"time":1557846227,"latitude":37.426900000000003,"longitude":24.9453,"altitude":56.100000000000001,"vocaqi":101},{"time":1557846690,"latitude":37.426900000000003,"longitude":24.9453,"altitude":57.189999999999998,"vocaqi":186},{"time":1557847154,"latitude":37.426900000000003,"longitude":24.9453,"altitude":55.43,"vocaqi":182},{"time":1557847617,"latitude":37.426900000000003,"longitude":24.9453,"altitude":58.530000000000001,"vocaqi":106},{"time":1557848106,"latitude":37.426900000000003,"longitude":24.9453,"altitude":55.259999999999998,"vocaqi":77},{"time":1557848595,"latitude":37.426900000000003,"longitude":24.9453,"altitude":57.859999999999999,"vocaqi":77},{"time":1557849059,"latitude":37.426900000000003,"longitude":24.9453,"altitude":57.939999999999998,"vocaqi":143},{"time":1557849548,"latitude":37.426900000000003,"longitude":24.9453,"altitude":53.920000000000002,"vocaqi":72},{"time":1557850011,"latitude":37.426900000000003,"longitude":24.9453,"altitude":55.68,"vocaqi":156},{"time":1557850475,"latitude":37.426900000000003,"longitude":24.9453,"altitude":54.259999999999998,"vocaqi":186},{"time":1557850965,"latitude":37.426900000000003,"longitude":24.9453,"altitude":59.7800000000
    

    Did something changed or there is an issue with the API

    #6556

    baskin
    Participant

    Please discard this, I was not getting values for 2 hours but then it started working again. My curl above correctly returns all values stored. Don’t know why the API was not returning something for over two hours. Everything seems fine now.

    #6558

    Radu
    Keymaster

    This can happen if the unit is offline for the requested time interval.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.