Is it possible to change a recorded value in a PHPFina feed? I don’t want to insert or delete a value, just change the value recorded at a particular timestamp. According to my limited understanding of the way the feed works, this should in theory be possible since you just need to seek to the right timestamp and overwrite the 4 bytes there, but there doesn’t seem to be an API call to do it.
(My immediate reason for this is that I have discovered that temperature sensors I am recording occasionally report 255 during startup, and I’d like to be able to edit that out. I realise I could do this my copying the data to a new feed and doing the edit in the process, but this seems overkill to fix a single data point, and it would be hard to preserve continuity in the logging.)
Thanks - managed to get that working and then decoded that it is a fairly simple API call (post to /feed/post.json). Is there a reason it’s not on the Feed API help page (is one not supposed to use it directly) or is it documented somewhere else?
Good point, under the hood the API end point insert, update and post now all do the same thing. There used to be a difference between insert and update early on but the implementation was changed to combine these into a single post end point while maintaining backward compatibility on the other terms. I will push an update so that the API helper only mentions /feed/post.