wee_import error using Weathercloud downloaded .csv

43 views
Skip to first unread message

will...@gmail.com

unread,
Dec 14, 2020, 11:54:25 AM12/14/20
to weewx-user
Hi all,

I apologize if this was already asked. I did a quick search and didn't find anything. I'm trying to import data using wee_import from a downloaded file from Weathercloud. I lost my internal temperature data and I'm trying to rebuild it.

I'm getting an error when trying to import using a conf file called weathercloud.conf that I created using the example for CSV in the /etc/weewx/import directory.

I'm using the command

sudo wee_import --import-config/home/wwray/weathercloud.conf --dry-run --verbose

I'm getting the following error.
Screenshot 2020-12-14 115135.jpg

I have tried with ascii and the source_encoding = ascii  I've tried editing the file in notepad++ to convert to utf-8 and I've even opened it up in a hex editor online. I can't see any reason why it won't import. 

Any help would be appreciated.

Thanks,
Will


gjr80

unread,
Dec 14, 2020, 7:27:15 PM12/14/20
to weewx-user
Hi,

It looks like you may have a degree symbol character (0xb8) in your import data and that is causing the python CSV reader to fail. Open your source data file and have a look. If there is a degree symbol in there you should be able to delete it/them and save the file. Probably worth while looking for any other symbols as well. If you cannot find a degree symbol in the source data could you please post the source data file or email it to me and I will see what I can find.

Gary

gjr80

unread,
Dec 14, 2020, 7:28:29 PM12/14/20
to weewx-user
Oh, and one more thing. Would appreciate if you could post screen captures as text rather than images. Images are often hard to read, especially on mobile devices.

Gary

Will Wray

unread,
Dec 15, 2020, 9:04:27 AM12/15/20
to weewx...@googlegroups.com
Hi Gary,

I really appreciate the response. I moved the file out of the /var/tmp/ directly and edited it from my home directory and it seems to be reading better now. There is something odd going on with my Rpi which is unrelated to this issue. I apologize for the screenshot, I'm doing this through a digital ocean console which doesn't allow me to copy and paste. Thank you again for your help!

Will

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KlJ9arvEk-8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e988b9b7-e40c-446c-95d6-67e83b54e81fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages