Wswin import script

Post Reply
Clement
Newbie
Newbie
Posts: 6
Joined: Sun Jan 07, 2018 8:16 pm
Station model: Davis Vantage Pro II

Wswin import script

Post by Clement » Sat Jan 27, 2018 10:09 am

Hello guys,

I am migrating my website to meteotemplate but all my data were recorded in Wswin... 9 years of data :D
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 :D

Regards,
Attachments
wswin_csv_import.zip
(1.96 KiB) Downloaded 156 times

PNCATTE
Observer
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

Post by PNCATTE » Fri Oct 19, 2018 7:43 am

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

Post Reply