Forum Replies Created
-
AuthorPosts
-
Julius Ski
ParticipantSome video in-action: https://youtu.be/oBJsqtiIqns
Julius Ski
ParticipantSome 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?
Julius Ski
ParticipantWow, 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!
Julius Ski
ParticipantI 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.
Julius Ski
ParticipantI 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
-
AuthorPosts