Hello guys,
I am migrating my website to meteotemplate but all my data were recorded in Wswin... 9 years of data
So I made a quick and dirty script to import the monthly csv files in the meteotemplate database.
I provide the script as it is with a few comments in it. It works but use it at your own risk.
You'll probably need to edit a lot a code to match the structure of your csv files and database.
Please, take the time to read the code before running it.
It is very specific to the my data structure but the main idea is here...
Also, don't blame me for the garbage it can be on certain line
Regards,
Wswin import script
Wswin import script
- Attachments
-
- wswin_csv_import.zip
- (1.96 KiB) Downloaded 156 times
-
- Observer
- Posts: 22
- Joined: Wed Oct 10, 2018 8:05 am
- Location: FLEURIE
- Station model: Davis Pro 2
- Software: WLIP
- Contact:
Re: Wswin import script
Hello,
I would like to retrieve my WSWIN data (WD_10_17.DAT)
In the file wswin_csv_import.php
I note the path of the files WD_XX_XX.DAT
But how to run the program wswin_csv_import.php
Should you give him the information from the database
Thanks for your help
cordially
I would like to retrieve my WSWIN data (WD_10_17.DAT)
In the file wswin_csv_import.php
I note the path of the files WD_XX_XX.DAT
But how to run the program wswin_csv_import.php
Should you give him the information from the database
Thanks for your help
cordially