Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: POST API for KIT1 #6671
    Julius Ski
    Participant

    Some video in-action: https://youtu.be/oBJsqtiIqns

    in reply to: POST API for KIT1 #6670
    Julius Ski
    Participant

    Some updates on GUI while I am waiting for my BME280 sensor, temporarily BMP180 was added (no humidity).

    Also, I have some issues on battery voltage uploads, I tried to post it as 0A/4.20 and 0A/4.20V, but it always shows in a detailed page (https://www.uradmonitor.com/tools/dashboard-04/?open=13000206) as 4.20undefined. How to add measuring units?

    in reply to: POST API for KIT1 #6668
    Julius Ski
    Participant

    Wow, that’s my bad, traced it badly in the KIT1 source 🙁 didn’t even foreknow that empty body can be sent…

    It’s working now fine, thank you for assistance.

    Setup is not finished yet, but it includes 2x 16bit adc’s for HV and Battery measurements, PID regulated HV voltage, local HTTP server for management. I will now include BME sensor as well. Perhaps I could tell more about the project later when the beta is finished, I will post to GitHub, then I will contact you.

    Thanks again!

    in reply to: POST API for KIT1 #6664
    Julius Ski
    Participant

    I did even reconstruct the order of headers to match the KIT1 source, in intense if your server is reading headers incrementally:

    POST /api/v1/upload/exp/ HTTP/1.1
    Host: data.uradmonitor.com
    User-Agent: uRADMonitor/1.1
    X-User-id: 4085
    X-User-hash: <hash_here>
    X-Device-id: 13000206
    Accept: */*
    Content-Length: 39
    Content-Type: application/x-www-form-urlencoded
    
    01/6/0E/106/0F/123/0B/0/0C/0/0D/54/10/1
    
    200
    {"success":"ok"}
    
    POST /api/v1/upload/exp/ HTTP/1.1
    Host: data.uradmonitor.com
    User-Agent: uRADMonitor/1.1
    X-User-id: 4085
    X-User-hash: <hash_here>
    X-Device-id: 13000206
    Accept: */*
    Content-Length: 43
    Content-Type: application/x-www-form-urlencoded
    
    01/60/0E/106/0F/123/0B/24/0C/399/0D/54/10/1
    
    200
    {"success":"ok"}
    
    POST /api/v1/upload/exp/ HTTP/1.1
    Host: data.uradmonitor.com
    User-Agent: uRADMonitor/1.1
    X-User-id: 4085
    X-User-hash: <hash_here>
    X-Device-id: 13000206
    Accept: */*
    Content-Length: 44
    Content-Type: application/x-www-form-urlencoded
    
    01/120/0E/106/0F/123/0B/31/0C/400/0D/54/10/1
    
    200
    {"success":"ok"}
    
    POST /api/v1/upload/exp/ HTTP/1.1
    Host: data.uradmonitor.com
    User-Agent: uRADMonitor/1.1
    X-User-id: 4085
    X-User-hash: <hash_here>
    X-Device-id: 13000206
    Accept: */*
    Content-Length: 44
    Content-Type: application/x-www-form-urlencoded
    
    01/180/0E/106/0F/123/0B/24/0C/400/0D/54/10/1
    
    200
    {"success":"ok"}
    
    POST /api/v1/upload/exp/ HTTP/1.1
    Host: data.uradmonitor.com
    User-Agent: uRADMonitor/1.1
    X-User-id: 4085
    X-User-hash: <hash_here>
    X-Device-id: 13000206
    Accept: */*
    Content-Length: 44
    Content-Type: application/x-www-form-urlencoded
    
    01/241/0E/106/0F/123/0B/19/0C/400/0D/54/10/1
    200
    {"success":"ok"}
    

    Still, no data passed. I would debug it myself, if I would have ENC eth adapter, just need to print to UART message before sending.

    in reply to: POST API for KIT1 #6663
    Julius Ski
    Participant

    I do get json:
    {
    “success” : “ok”
    }

    Seems like the server ignores/incorrectly accepts the body part of the POST, maybe because of headers, not sure how to debug it.

    Photo (dev version) 🙂 https://gyazo.com/5c74f419f27f7c08d0b5894c3366822f

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