So now I’m getting into my stride. I have MELCloud (for Air Source Heat Pump), pwws (for weather) and CurrentCost (for power) up and running. I’ll apologise every time I mention those because it means I didn’t buy any hardware from you…sorry.
I already have scripts that do things like predicting when the heat pump needs to come back on (and in fact it will turn it on). When I incorporate solar (not much point since October!) I’ll be doing more predictions.
I can see that with PHPFINA I can write up to the current time and I can re-write history. With PHPTIMESERIES I can write future values but I don’t seem to be able to re-write the past or the future.
As you can imagine, my predictions will be changing as time goes by, the code will incorporate new data and re-write the prediction for Tuesday when it starts seeing how the solar is panning out on Tuesday for example.
So I’m wondering if I’m just missing something and that there is a way to write future values and re-write them. Of course I could create a new feed for each prediction run (e.g. the “as at 09:00” prediction feed) but that’ll complicate the graphing and dashboards.
FYI I was testing this by just pushing lots of values in to “/input/post” with varying “time” values.
(ps searching for previous discussions on this came up blank, but it did reveal lots of other interesting conversations )