It works. Need to add plotting though. And how to make it run once every day automatically?