I need a PHP script for our waether-station. It should make a history of our data in a csv file.
What I need:
1. Search and Open File the last File with the name"[login to view URL]" example "[login to view URL]"
CSV:
09/16/2019,08:24:00,vWind_(act),0.4,,G
09/16/2019,08:24:00,dWind_(act),93,,G
09/16/2019,08:24:00,vWind_(max),1.1,,G
09/16/2019,08:24:00,dWind_(max),100,,G
09/16/2019,08:24:00,vWind_(avg),0.4,,G
09/16/2019,08:24:00,qWindmessng,100,%,G
09/16/2019,08:24:00,absDruck,968.5,,G
09/16/2019,08:24:00,relDruck,1186.0,,G
09/16/2019,08:24:00,virtTemp,19.6,C,G
09/16/2019,08:24:00,THeizngOben,25,C,G
09/16/2019,08:24:00,THeizngUntn,27,C,G
09/16/2019,08:24:00,Temperatur,19.1,C,G
09/16/2019,08:24:00,rel_Feuchte,74,%,G
09/16/2019,08:24:00,Taupunkt,14.4,C,G
09/16/2019,08:24:00,Batt_xlink,13.81,V,G
09/16/2019,08:24:00,Ueberspng,0,,G
09/16/2019,08:24:00,AlarmBatt,0,,G
2. Add the Datas from the csv to an other csv File called "[login to view URL]". Add only one row with the new Data.
4. Deleta all old "[login to view URL] Files (not only the imported one)