Home Forum Software Uploading data

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5143
    Radu
    Keymaster

    Absolutely,

    I was planning to write a guide on the EXP protocol and all the upload details, but with so many things on my head I didn’t get the chance. I am showing you how to do it here, and maybe if you have the time, you can contribute with a proper article on the blog.

    The EXP protocol is nothing but a sequence of : <SENSOR IDENTIFIER>/<VALUE> that allows you to concatenate readings from multiple sensors in one upload.

    Method: POST
    Headers:
    X-User-id:<number> , is your user ID as presented on the dashboard API tab.
    X-User-hash:<string>, is your user KEY, again on the dashboard.
    X-Device-id:<string>, this is an 8 digit hex number. On your first call, it must be 13000000 . The server will respond with a json containing {“setid”:”13000XXX”} where XXX are also hex digits. Save this to a file, and use it every time from now on, as it is your dynamically allocated ID.

    URL: https://data.uradmonitor.com/api/v1/upload/exp/01/<total seconds>/0B/<counts in CPM>/10/<tube id>

    Call this every minute or less (once per 10minutes, etc)

    The <total seconds> can be your linux system epoch unix time, in seconds!
    The <counts in CPM> is a number
    The <tube id> is defined here:
    https://github.com/radhoo/uradmonitor_kit1/blob/master/code/geiger/detectors.h

    Other EXP constants are here, should you want to add more sensors: https://github.com/radhoo/uradmonitor_kit1/blob/master/code/misc/expProtocol.h

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.