I think I must have misunderstood something major so I hope everyone can correct me.
I am trying to update a value in SK. Here is a test value json string
{"updates": [{"values": [{"path": "electrical.batteries.123.capacity.timeRemaining", "value": 3455}]}]}
Dropped into the data fiddler it updates perfectly.
I started writing python code to PUT this json via /signalk/v1/api/ having first successfully obtained a token via /signalk/v1/auth/login and added it to the header.
I've tried this in Python / Circuit Python / MicroPython and the SK server responds with "SyntaxError: Unexpected token " in JSON at position 0"
I've tried using Websockets in Python (on a PC) using the same Json and it posts fine to SK, but this is a bit tricky to port to Micropython.
I've tried cutting out Python and using Postman and PUT and it returns "input is missing a value" (see picture)
I've then tried posting via UDP port 8375 but I don't see the data appear in SK.
Please can you point me in the right direction here?
1. Can I post data to SK via /signalk/v1/api/ or is this just for reading data ?
2. Is my Json example correct in the context of externally posting?
3. I assume I always need to login in and get a token to post, is this correct and can I add the token to the json string if I was trying to send via UDP. ?
Thanks in advance for any help!