Data import woes

Post Reply
RochesterWeather
Observer
Observer
Posts: 19
Joined: Sun Oct 08, 2017 3:26 pm
Station model: WH3080
Software: WeatherCat

Data import woes

Post by RochesterWeather » Fri Nov 01, 2019 10:59 am

Hi all (again - sorry! I'm a teacher on half-term at the moment; I'll be back to work and leaving you in peace next week!)

I am having issues importing data from an edited WeatherCat Export csv into MT.

I think I've done everything correctly but I'm getting date & pressure issues.

If anyone can shed some light on it I'd be most grateful.

I'm attaching screen shots to help.

Thank you in advance for your time!

Cheers,

Rich

http://rochesterweather.org.uk

http://rochesterweather.org.uk/WeatherCatData.txt This has 4 digit years

http://rochesterweather.org.uk/WeatherCatData.csv This has 2 digit years - neither work!

Image

Image

Image

Image

Image

Image

Image

User avatar
MonyMony
Forecaster
Forecaster
Posts: 189
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Data import woes

Post by MonyMony » Thu Nov 07, 2019 12:46 pm

When I import data from WeatherCat, I typically will use the format WC generates but just strip out the "T" between the Date and Time. For the date/format within Meteotemplate I use this:

Y-m-d H:i:s

Hopefully that gets you a little closer to making this work.

Jay
Screen Shot 2019-11-07 at 7.44.01 AM.png
Screen Shot 2019-11-07 at 7.44.01 AM.png (689.02 KiB) Viewed 7127 times
Image

RochesterWeather
Observer
Observer
Posts: 19
Joined: Sun Oct 08, 2017 3:26 pm
Station model: WH3080
Software: WeatherCat

Re: Data import woes

Post by RochesterWeather » Thu Nov 07, 2019 5:32 pm

Hi!

Thanks - I'll give it a try and come back to you.

R

User avatar
MonyMony
Forecaster
Forecaster
Posts: 189
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Data import woes

Post by MonyMony » Thu Nov 07, 2019 6:26 pm

Oh, I forgot.... I always strip the header information too. Not needed for the import but optional. Also, check your field numbers. They do not look right. See my previous screenshot for an example.
Image

User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

Re: Data import woes

Post by dmgould » Sat Nov 09, 2019 4:53 pm

This exact thing is happening to me, the exact same time error and pressure error. I finally gave up and quit trying. I'm thinking there is a bug in the import code.
Dave G
Image

RochesterWeather
Observer
Observer
Posts: 19
Joined: Sun Oct 08, 2017 3:26 pm
Station model: WH3080
Software: WeatherCat

Re: Data import woes

Post by RochesterWeather » Mon Nov 11, 2019 8:16 pm

Thanks - that is interesting as I tried it again without header row and it hung.

When I did it with, trying all different combinations of the possible variablesI still kept getting the same error codes.

I might try and re-import my old MT data which doesn't go as far back as my WeatherCat data and see if I have more joy!

R

RochesterWeather
Observer
Observer
Posts: 19
Joined: Sun Oct 08, 2017 3:26 pm
Station model: WH3080
Software: WeatherCat

Re: Data import woes

Post by RochesterWeather » Mon Nov 11, 2019 8:52 pm

Right! Success!

I have imported my old backed-up MT database. I needed to enclose the date format in the import.php page in double quotes (") - this is what they were enclosed in in the alldata.csv file.

I am now going to try to turn the WeatherCat exported data file dates into the same using find and replace in Word and I'll let you know how it goes!

R

Post Reply