Calculate weather forecast through pressure?

Hi

I want to build a weather station with ESPhome, mostley sensors are working fine.
But i also want a weather forecast without internet connection…
As pressure sensor i use a BME280.
How can i calculate the forecast with pressure?

Thanks,
Lons81

I saw a post to do that the other day… Here it is:

Thanks, i will take a look