OK so I have progressed, first problem was my fault, the “406” error comes from using the read API key when trying to write, previously the library only ever did reads the single point write worked (with no APIKEY) as the browser was already authenticated by username and password.
Trying now with 1 days worth of data I get an error of.
414 Request-URI Too LongThe requested URL's length exceeds the capacity\nlimit for this serverApache/2.4.54 (Raspbian) Server at localhost Port 80
Checking the string the length of the request is 23,881 bytes, I don’t know the actual limit on the emon apache server, but a bit of googling seems to indicate a default of 8192
trying with 6 hours of data I have a length of 6078, trying this I get ‘{“success”:true}’
SO I wrote a script to generate 6 hours chunks and managed to writeback just short of a years worth of tidied up data to a 1 minute frequency new feed. script took about 5 minutes to run, I then changed the input to write to the new feed, job done…
I have a few more feeds like his that took the default 10seconds I will fix in coming days, when python code is tidied up I will do final post with it attached