How to forecaste of sensor values by using NUPIC?

That can be done by changing the ‘predictionSteps’ value in the swarm.py file from 1 to 30:

I would also point out that 30 steps is inherently much more difficult to get accurately that the usual 1 step of course, so I do hope you have a good amount of data and that there are some pretty clear patterns, which I think would be needed for this to work well. In case it doesn’t I might try reducing the time granularity, for example if you’re in 1-hour timesteps then it would take 30 steps to get to 30 hours, but if you go down to 6-hour timesteps then you could get to 30 hours ahead in just 5 timesteps. Just something to consider if your results are what you hoped, though give that a shot and let us know how it works out.