Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Tom Keffer
That seems reasonable. Try this version



On Sat, May 2, 2020 at 9:10 AM Praveen Chandrasekaran <
praveen.c...@gmail.com> wrote:

> Shouldnt it be taking in api_key in test mode too? Is that intentional?
>
> On Sat, 2 May 2020 at 20:52, Tom Keffer  wrote:
>
>> Thanks for catching the problem with json.load(). Fixed in commit c05f76b
>> 
>>
>> As you discovered, I think the api_key code is working properly.
>>
>> On Sat, May 2, 2020 at 8:04 AM Praveen Chandrasekaran <
>> praveen.c...@gmail.com> wrote:
>>
>>> I think I figured out API key issue. It's not read if in test mode and
>>> hence causes error. Attached snippet
>>>
>>> On Sat, 2 May 2020, 19:40 Praveen Chandrasekaran, <
>>> praveen.c...@gmail.com> wrote:
>>>
 I didnt attached console output because i just ran wunderfixer at
 shell. I was getting HTTP 401 error. printed api_key from within
 wunderfixer it was "None". Then edited wunderfixer with the api key
 locally and that fixed that issue

 On Sat, 2 May 2020 at 19:32, Tom Keffer  wrote:

> Log? Console output?
>
> On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
> praveen.c...@gmail.com> wrote:
>
>> 2 issues:
>>
>> 1) API key not getting passed. Hacked wunderfixer with local api key
>> instead of passing
>> 2) After 1 I get error  that  JSON object must be str not bytes.
>>
>> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran
>> wrote:
>>>
>>> Hi,
>>>
>>> My wunderfixer was working till yesterday (I know for sure because I
>>> have used it to fill missing data often recently)
>>>
>>> After updating to v4, the wunderfixer stopped working. The API key
>>> looks fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>>
>>> Regards,
>>> Praveen
>>>
>> --
>> 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/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
>> 
>> .
>>
> --
> 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/PSemiQmyCt0/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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.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/CA%2BW%3DTmWjPPZX-B9eZsU1VscKP9j1fMQ0d9iEOhf9UwPKMO%2B3Cg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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/PSemiQmyCt0/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/CAPq0zEAB22_VgJ%3DS9i7ZABuffq%2B2f48ri%2BektbMpJQOQgWcdPg%40mail.gmail.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/CA%2BW%3DTmWvHUz1hSTxNY8rQcXQJV-fTP_0mXwx02sNiPBDUSqPNA%40mail.gmail.com
> 
> .
>

-- 
You 

Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Praveen Chandrasekaran
Shouldnt it be taking in api_key in test mode too? Is that intentional?

On Sat, 2 May 2020 at 20:52, Tom Keffer  wrote:

> Thanks for catching the problem with json.load(). Fixed in commit c05f76b
> 
>
> As you discovered, I think the api_key code is working properly.
>
> On Sat, May 2, 2020 at 8:04 AM Praveen Chandrasekaran <
> praveen.c...@gmail.com> wrote:
>
>> I think I figured out API key issue. It's not read if in test mode and
>> hence causes error. Attached snippet
>>
>> On Sat, 2 May 2020, 19:40 Praveen Chandrasekaran, 
>> wrote:
>>
>>> I didnt attached console output because i just ran wunderfixer at shell.
>>> I was getting HTTP 401 error. printed api_key from within wunderfixer it
>>> was "None". Then edited wunderfixer with the api key locally and that fixed
>>> that issue
>>>
>>> On Sat, 2 May 2020 at 19:32, Tom Keffer  wrote:
>>>
 Log? Console output?

 On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
 praveen.c...@gmail.com> wrote:

> 2 issues:
>
> 1) API key not getting passed. Hacked wunderfixer with local api key
> instead of passing
> 2) After 1 I get error  that  JSON object must be str not bytes.
>
> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran
> wrote:
>>
>> Hi,
>>
>> My wunderfixer was working till yesterday (I know for sure because I
>> have used it to fill missing data often recently)
>>
>> After updating to v4, the wunderfixer stopped working. The API key
>> looks fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>
>> Regards,
>> Praveen
>>
> --
> 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/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
> 
> .
>
 --
 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/PSemiQmyCt0/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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.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/CA%2BW%3DTmWjPPZX-B9eZsU1VscKP9j1fMQ0d9iEOhf9UwPKMO%2B3Cg%40mail.gmail.com
>> 
>> .
>>
> --
> 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/PSemiQmyCt0/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/CAPq0zEAB22_VgJ%3DS9i7ZABuffq%2B2f48ri%2BektbMpJQOQgWcdPg%40mail.gmail.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/CA%2BW%3DTmWvHUz1hSTxNY8rQcXQJV-fTP_0mXwx02sNiPBDUSqPNA%40mail.gmail.com.


Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Tom Keffer
Thanks for catching the problem with json.load(). Fixed in commit c05f76b


As you discovered, I think the api_key code is working properly.

On Sat, May 2, 2020 at 8:04 AM Praveen Chandrasekaran <
praveen.c...@gmail.com> wrote:

> I think I figured out API key issue. It's not read if in test mode and
> hence causes error. Attached snippet
>
> On Sat, 2 May 2020, 19:40 Praveen Chandrasekaran, 
> wrote:
>
>> I didnt attached console output because i just ran wunderfixer at shell.
>> I was getting HTTP 401 error. printed api_key from within wunderfixer it
>> was "None". Then edited wunderfixer with the api key locally and that fixed
>> that issue
>>
>> On Sat, 2 May 2020 at 19:32, Tom Keffer  wrote:
>>
>>> Log? Console output?
>>>
>>> On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
>>> praveen.c...@gmail.com> wrote:
>>>
 2 issues:

 1) API key not getting passed. Hacked wunderfixer with local api key
 instead of passing
 2) After 1 I get error  that  JSON object must be str not bytes.

 On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran wrote:
>
> Hi,
>
> My wunderfixer was working till yesterday (I know for sure because I
> have used it to fill missing data often recently)
>
> After updating to v4, the wunderfixer stopped working. The API key
> looks fine but I am getting HTTP 401 FORBIDDEN ERROR.
>
> Regards,
> Praveen
>
 --
 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/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
 
 .

>>> --
>>> 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/PSemiQmyCt0/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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.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/CA%2BW%3DTmWjPPZX-B9eZsU1VscKP9j1fMQ0d9iEOhf9UwPKMO%2B3Cg%40mail.gmail.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/CAPq0zEAB22_VgJ%3DS9i7ZABuffq%2B2f48ri%2BektbMpJQOQgWcdPg%40mail.gmail.com.


Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Praveen Chandrasekaran
I didnt attached console output because i just ran wunderfixer at shell. I
was getting HTTP 401 error. printed api_key from within wunderfixer it was
"None". Then edited wunderfixer with the api key locally and that fixed
that issue

On Sat, 2 May 2020 at 19:32, Tom Keffer  wrote:

> Log? Console output?
>
> On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
> praveen.c...@gmail.com> wrote:
>
>> 2 issues:
>>
>> 1) API key not getting passed. Hacked wunderfixer with local api key
>> instead of passing
>> 2) After 1 I get error  that  JSON object must be str not bytes.
>>
>> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran wrote:
>>>
>>> Hi,
>>>
>>> My wunderfixer was working till yesterday (I know for sure because I
>>> have used it to fill missing data often recently)
>>>
>>> After updating to v4, the wunderfixer stopped working. The API key looks
>>> fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>>
>>> Regards,
>>> Praveen
>>>
>> --
>> 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/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
>> 
>> .
>>
> --
> 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/PSemiQmyCt0/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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.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/CA%2BW%3DTmWEOe6xLFUY0pwRCDOhFoWwx6os7RELirYq7QU9M8faJQ%40mail.gmail.com.


Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Praveen Chandrasekaran
Fixed it locally at my end. api_key not getting passed is a mystery yet.

Need to decode the response to utf-8 to get it working properly. Attached
modified wunderfixer file (search for v4)

On Sat, 2 May 2020 at 19:32, Tom Keffer  wrote:

> Log? Console output?
>
> On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
> praveen.c...@gmail.com> wrote:
>
>> 2 issues:
>>
>> 1) API key not getting passed. Hacked wunderfixer with local api key
>> instead of passing
>> 2) After 1 I get error  that  JSON object must be str not bytes.
>>
>> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran wrote:
>>>
>>> Hi,
>>>
>>> My wunderfixer was working till yesterday (I know for sure because I
>>> have used it to fill missing data often recently)
>>>
>>> After updating to v4, the wunderfixer stopped working. The API key looks
>>> fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>>
>>> Regards,
>>> Praveen
>>>
>> --
>> 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/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
>> 
>> .
>>
> --
> 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/PSemiQmyCt0/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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.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/CA%2BW%3DTmXXNvtMt9TBZwxW7jdvqPG30MDfUJt9jTgxHnet2khtXg%40mail.gmail.com.


wunderfixer
Description: Binary data


Re: [weewx-user] Re: Wunderfixer stopped working after v4 update

2020-05-02 Thread Tom Keffer
Log? Console output?

On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
praveen.c...@gmail.com> wrote:

> 2 issues:
>
> 1) API key not getting passed. Hacked wunderfixer with local api key
> instead of passing
> 2) After 1 I get error  that  JSON object must be str not bytes.
>
> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran wrote:
>>
>> Hi,
>>
>> My wunderfixer was working till yesterday (I know for sure because I have
>> used it to fill missing data often recently)
>>
>> After updating to v4, the wunderfixer stopped working. The API key looks
>> fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>
>> Regards,
>> Praveen
>>
> --
> 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/e6608887-e63e-4844-955b-da4437b2f662%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/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.com.