[weewx-user] Re: wee_import error

2021-12-13 Thread Michael Sanphillipo
That helped greatly. Thanks!!

On Monday, December 13, 2021 at 12:25:35 PM UTC-5 Michael Sanphillipo wrote:

> I'm on Weewx 4.5.1 and I need to import data from Weather Unnderground, so 
> I'm trying to set up a wee_import  import. conf file and I'm getting the 
> following error. I have my Weather Underground information in my weewx.conf 
> file. I also tried to create an import.conf file by copying the wu_example 
> file and renaming it import.conf. 
>
> wee_import --config=/this/directory/weewx.conf 
> --import-config=/directory/import.conf
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_import", line 903, in 
> main()
>   File "/usr/share/weewx/wee_import", line 804, in main
> config_path, config_dict = weecfg.read_config(options.config_path, 
> args)
>   File "/usr/share/weewx/weecfg/__init__.py", line 173, in read_config
> locations=locations, file_name=file_name)
>   File "/usr/share/weewx/weecfg/__init__.py", line 147, in find_file
> raise IOError("%s is not a file" % file_path)
> OSError: /this/directory/weewx.conf is not a file
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a11fb50c-e275-4cff-8250-cc421591a0a9n%40googlegroups.com.


[weewx-user] Re: wee_import error

2021-12-13 Thread vince
On Monday, December 13, 2021 at 9:25:35 AM UTC-8 sanph...@gmail.com wrote:

> wee_import --config=/this/directory/weewx.conf 
> --import-config=/directory/import.conf
> OSError: /this/directory/weewx.conf is not a file
>

--config is optional according 
to https://www.weewx.com/docs/utilities.htm#wee_import_utility

The paths "/this/directory" and "/directory" are just examples.
You need to use your actual pathnames...

If your import.conf is in /tmp, the command would be "wee_import 
--import-config=/tmp/import.conf"
If your import.conf is in /home/pi, the command would be "wee_import 
--import-config=/home/pi/import.conf"
and so on
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1b357019-2b28-4f10-b11b-1a3a84722e2fn%40googlegroups.com.


Re: [weewx-user] Re: wee_import error using Weathercloud downloaded .csv

2020-12-15 Thread Will Wray
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

On Mon, Dec 14, 2020 at 7:28 PM gjr80  wrote:

> 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
>
> On Tuesday, 15 December 2020 at 10:27:15 UTC+10 gjr80 wrote:
>
>> 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
>>
>> On Tuesday, 15 December 2020 at 02:54:25 UTC+10 will...@gmail.com wrote:
>>
>>> 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.
>>> [image: 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
>>>
>>>
>>> --
> 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+unsubscr...@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
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAN4jKGzYjT4MkqjT5xEH1kaD2CcoVm-uhxVgP5nxcECxdS5Z0g%40mail.gmail.com.


[weewx-user] Re: wee_import error using Weathercloud downloaded .csv

2020-12-14 Thread gjr80
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

On Tuesday, 15 December 2020 at 10:27:15 UTC+10 gjr80 wrote:

> 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
>
> On Tuesday, 15 December 2020 at 02:54:25 UTC+10 will...@gmail.com wrote:
>
>> 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.
>> [image: 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
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@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.


[weewx-user] Re: wee_import error using Weathercloud downloaded .csv

2020-12-14 Thread gjr80
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

On Tuesday, 15 December 2020 at 02:54:25 UTC+10 will...@gmail.com wrote:

> 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.
> [image: 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
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/75bf414e-7ab4-46ef-96f7-9017e54ff397n%40googlegroups.com.