I have a few Ruuvi tags and so far use the Ruuvi station Android app to read their measurements.
I would like to use the gateway feature of the app to periodically send measurements to my home automation system, which can receive data through HTTP POST requests.
Unfortunately, the REST API of the home automation requires POST requests to have “Content-Type: text/plain” set in the request header. Requests with “application/json” are rejected with “HTTP Error 415 Unsupported Media Type”.
My question: Is is possible to change the content-type header that the app sends with the gateway call?
Yes, I think parsing should not be a problem. I will be happy if I can get the whole JSON as shown in the example Using Ruuvi Station as a Gateway - docs. So how can I do that?