On my Raspberry Pi, I have a Python script running that makes sure the room temperature is being measured (via a DHT22) and then log the temperature to a CVS file every half hour. 

A new CVS file is created for everyday that the script is running. Therefore, the name of the files are `temp_dd-mm-yy.cvs`. These files are all saved in my `loggings` folder. 

I now want to automatically pin add the cvs files to the IPFS network, because I don't want to write `ipfs add <file.cvs>` in the terminal every day. 

In other words, is there a way to have a piece of code running that makes sure all files in the `logging` folder are added to IPFS network every 24 hours? 

I have experimented with IPFS API, but I didn't manage to get anything useful out of that.