Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Thomas Keffer
My browser is definitely sending Accept-Encoding:gzip. So, I don't have an
explanation.

-tk

On Sat, Nov 5, 2016 at 6:29 AM, Thomas Keffer  wrote:

>
>
> On Sat, Nov 5, 2016 at 6:22 AM, mwall  wrote:
>
>> On Saturday, November 5, 2016 at 9:00:51 AM UTC-4, Graham Buxton wrote:
>>>
>>> I was installing on a Raspberry Pi running Raspbian.  I was using the
>>> Chromium browser to read the Docs, and just clicked the Download file link
>>> in the instructions page. Then copied the tar command from the instruction
>>> page and pasted into the command window.
>>>
>>
>> so it sounds like chrome-on-ubuntu is trying to be helpful by gunzipping
>> whatever you download, similar to default configurations of edge on windows
>> and safari on macos.
>>
>>
> ​Maybe. Watching it download, it looks to me that it's downloading the
> full 3.9 MB, not the compressed 1.1 MB. I think the decompression is
> happening on the server.
>
> My guess of what's happening is that if the browser does not indicate it
> can handle compressed content (by setting
> ​
> Accept-Encoding: gzip
> ​)​
> , the server decompresses the file.
>
> Let me test this by using Curl with and without the Accept-Encoding header.
>
> -tk
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Thomas Keffer
On Sat, Nov 5, 2016 at 6:22 AM, mwall  wrote:

> On Saturday, November 5, 2016 at 9:00:51 AM UTC-4, Graham Buxton wrote:
>>
>> I was installing on a Raspberry Pi running Raspbian.  I was using the
>> Chromium browser to read the Docs, and just clicked the Download file link
>> in the instructions page. Then copied the tar command from the instruction
>> page and pasted into the command window.
>>
>
> so it sounds like chrome-on-ubuntu is trying to be helpful by gunzipping
> whatever you download, similar to default configurations of edge on windows
> and safari on macos.
>
>
​Maybe. Watching it download, it looks to me that it's downloading the full
3.9 MB, not the compressed 1.1 MB. I think the decompression is happening
on the server.

My guess of what's happening is that if the browser does not indicate it
can handle compressed content (by setting
​
Accept-Encoding: gzip
​)​
, the server decompresses the file.

Let me test this by using Curl with and without the Accept-Encoding header.

-tk

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread mwall
On Saturday, November 5, 2016 at 9:00:51 AM UTC-4, Graham Buxton wrote:
>
> I was installing on a Raspberry Pi running Raspbian.  I was using the 
> Chromium browser to read the Docs, and just clicked the Download file link 
> in the instructions page. Then copied the tar command from the instruction 
> page and pasted into the command window.
>

so it sounds like chrome-on-ubuntu is trying to be helpful by gunzipping 
whatever you download, similar to default configurations of edge on windows 
and safari on macos.

the failure modes are:

a) browser uncompresses file then z option to tar causes failure
b) file downloaded properly but z option not specified so tar fails

i'm guessing we will encounter more of (a) than (b)

since most modern tar implementations will detect gzip (or bzip) 
compression, we could probably just remove the z from the tar command in 
the docs.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Thomas Keffer
On Sat, Nov 5, 2016 at 5:42 AM, mwall  wrote:

> On Saturday, November 5, 2016 at 8:23:33 AM UTC-4, Tom Keffer wrote:
>
> The solution will probably require changing the weewx.com webserver
>> configuration.
>>
>
> tom, how did you download the file?
>

​I just clicked on it, using Chrome on Ubuntu 16.10.

-tk​

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Graham Buxton
I was installing on a Raspberry Pi running Raspbian.  I was using the 
Chromium browser to read the Docs, and just clicked the Download file link 
in the instructions page. Then copied the tar command from the instruction 
page and pasted into the command window.

In the course of researching  this issue, when I got the error on the Pi, I 
tried the same on another  system running Ubuntu with the same results. 
Then I used the "file" command for more info and got ...
graham@graham-Nuc:~/Downloads$ file  weewx-3.6.1.tar.gz
weewx-3.6.1.tar.gz: POSIX tar archive (GNU)

No report of Zip compression was displayed above. If I use the "file" 
command on another file that is zipped, then file reports on the Zip 
compression.  Then went back to the Pi system and removed the "z" option 
from the tar command and things progressed nicely.


On Saturday, November 5, 2016 at 8:47:44 AM UTC-4, mwall wrote:
>
> On Saturday, November 5, 2016 at 8:23:33 AM UTC-4, Tom Keffer wrote:
>
> The solution will probably require changing the weewx.com webserver 
>> configuration.
>>
>
>
> tom, how did you download the file?
>
> graham, how did you download the file?
>
> i think the webserver configuration is ok - when i download using firefox 
> on macosx i get a gzipped file.  same using chrome on macosx, or firefox on 
> linux.
>
> i tried downloading using rsync, scp, curl and wget, and in each case i 
> get the gzipped 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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread mwall
On Saturday, November 5, 2016 at 8:23:33 AM UTC-4, Tom Keffer wrote:

The solution will probably require changing the weewx.com webserver 
> configuration.
>


tom, how did you download the file?

graham, how did you download the file?

i think the webserver configuration is ok - when i download using firefox 
on macosx i get a gzipped file.  same using chrome on macosx, or firefox on 
linux.

i tried downloading using rsync, scp, curl and wget, and in each case i get 
the gzipped file.

m 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Thomas Keffer
My apologies, Gary. I just read your post a little more closely. I had
totally forgot about that thread from a year ago. We are rediscovering this
problem.

The solution will probably require changing the weewx.com webserver
configuration.

-tk

On Sat, Nov 5, 2016 at 5:18 AM, Thomas Keffer  wrote:

> I never use the 'z' option. Just 'tar xvf filename'. Tar is smart enough
> to figure out when the 'z' is needed.
>
> In any case, I just downloaded weewx-3.6.1.tar.gz from the weewx website,
> and, despite its name, it's not in gzip format. It's just a tar file. I
> then checked the file on the weewx.com website, and it's been gzipped.
>
> For some reason, the weewx.com webserver seems to be converting the file
> before downloading, but neglecting to change the name.
>
> I'll work on this...
>
> -tk
>
> On Fri, Nov 4, 2016 at 11:23 PM, gjr80  wrote:
>
>> Maybe related, but it seems to me in your case it is windows (or edge)
>> trying to be helpful, at the end of the day you still have a tar.gz and the
>> z option works fine. Have had too many odd things happen when getting
>> windows involved in anything linux so since my linux machines have internet
>> access I just avoid it and use wget.
>>
>> Sounds like the this situation
>> 
>> again.
>>
>> Gary
>>
>>
>> On Saturday, 5 November 2016 16:03:30 UTC+10, Andrew Milner wrote:
>>>
>>> I have always been somewhat intrigued - and this may well be related
>>> somehow - in why, when I do the download from windows the resulting file is
>>> always .tar.tar and not .tar.gz - and I then have to rename it back to
>>> .tar.gz once it is on my debian system
>>>
>>> On Saturday, 5 November 2016 07:49:01 UTC+2, gjr80 wrote:

 Hmm, interesting, just downloaded weewx-3.6.1.tar.gz and it worked as
 advertised for me on debian 8.6. How/what exactly did you download, is it
 repeatable?

 gary@jessie6:/var/tmp/test$ wget http://weewx.com/downloads/wee
 wx-3.6.1.tar.gz
 --2016-11-05 15:37:08--  http://weewx.com/downloads/weewx-3.6.1.tar.gz
 Resolviendo weewx.com (weewx.com)... 97.74.144.107
 Conectando con weewx.com (weewx.com)[97.74.144.107]:80... conectado.
 Petición HTTP enviada, esperando respuesta... 200 OK
 Longitud: 1098838 (1,0M) [application/x-tar]
 Grabando a: “weewx-3.6.1.tar.gz”

 weewx-3.6.1.tar.gz  100%[=>]   1,05M   121KB/s
 en 9,2s

 2016-11-05 15:37:18 (116 KB/s) - “weewx-3.6.1.tar.gz” guardado [1098838
 /1098838]

 gary@jessie6:/var/tmp/test$ tar xvfz weewx-3.6.1.tar.gz
 weewx-3.6.1/
 weewx-3.6.1/extensions/
 weewx-3.6.1/extensions/xstats/
 weewx-3.6.1/extensions/xstats/changelog

 etcetera, etcetera...

 Note to self, must set locale back to en AU.

 Gary



 On Saturday, 5 November 2016 15:21:46 UTC+10, Graham Buxton wrote:
>
> I am new to weewx, and just installed the Python utility setup.py version
> using file weewx-3.6.1.tar.gz from the downloads page. I have it running
> sucessfully (Yay!), but there seems to be a discrepancy in the Users Guide
> vs the downloaded source archive file compression.
>
> Doc file: http://www.weewx.com/docs/setup.htm says to "Expand the
> source archive" with:
>
> tar xvfz weewx-X.Y.Z.tar.gz
>
> Note the "z" option in the tar command, but the "weewx-3.6.1.tar.gz"
> file appears to not have zip compression applied, and an error is 
> generated.
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
>
> Once I removed the "z" option from the tar command, things progressed
> much better, and weewx now seems to be running fine.   Thanks!
>
 --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-11-05 Thread Thomas Keffer
I never use the 'z' option. Just 'tar xvf filename'. Tar is smart enough to
figure out when the 'z' is needed.

In any case, I just downloaded weewx-3.6.1.tar.gz from the weewx website,
and, despite its name, it's not in gzip format. It's just a tar file. I
then checked the file on the weewx.com website, and it's been gzipped.

For some reason, the weewx.com webserver seems to be converting the file
before downloading, but neglecting to change the name.

I'll work on this...

-tk

On Fri, Nov 4, 2016 at 11:23 PM, gjr80  wrote:

> Maybe related, but it seems to me in your case it is windows (or edge)
> trying to be helpful, at the end of the day you still have a tar.gz and the
> z option works fine. Have had too many odd things happen when getting
> windows involved in anything linux so since my linux machines have internet
> access I just avoid it and use wget.
>
> Sounds like the this situation
> 
> again.
>
> Gary
>
>
> On Saturday, 5 November 2016 16:03:30 UTC+10, Andrew Milner wrote:
>>
>> I have always been somewhat intrigued - and this may well be related
>> somehow - in why, when I do the download from windows the resulting file is
>> always .tar.tar and not .tar.gz - and I then have to rename it back to
>> .tar.gz once it is on my debian system
>>
>> On Saturday, 5 November 2016 07:49:01 UTC+2, gjr80 wrote:
>>>
>>> Hmm, interesting, just downloaded weewx-3.6.1.tar.gz and it worked as
>>> advertised for me on debian 8.6. How/what exactly did you download, is it
>>> repeatable?
>>>
>>> gary@jessie6:/var/tmp/test$ wget http://weewx.com/downloads/wee
>>> wx-3.6.1.tar.gz
>>> --2016-11-05 15:37:08--  http://weewx.com/downloads/weewx-3.6.1.tar.gz
>>> Resolviendo weewx.com (weewx.com)... 97.74.144.107
>>> Conectando con weewx.com (weewx.com)[97.74.144.107]:80... conectado.
>>> Petición HTTP enviada, esperando respuesta... 200 OK
>>> Longitud: 1098838 (1,0M) [application/x-tar]
>>> Grabando a: “weewx-3.6.1.tar.gz”
>>>
>>> weewx-3.6.1.tar.gz  100%[=>]   1,05M   121KB/s   en
>>> 9,2s
>>>
>>> 2016-11-05 15:37:18 (116 KB/s) - “weewx-3.6.1.tar.gz” guardado [1098838/
>>> 1098838]
>>>
>>> gary@jessie6:/var/tmp/test$ tar xvfz weewx-3.6.1.tar.gz
>>> weewx-3.6.1/
>>> weewx-3.6.1/extensions/
>>> weewx-3.6.1/extensions/xstats/
>>> weewx-3.6.1/extensions/xstats/changelog
>>>
>>> etcetera, etcetera...
>>>
>>> Note to self, must set locale back to en AU.
>>>
>>> Gary
>>>
>>>
>>>
>>> On Saturday, 5 November 2016 15:21:46 UTC+10, Graham Buxton wrote:

 I am new to weewx, and just installed the Python utility setup.py version
 using file weewx-3.6.1.tar.gz from the downloads page. I have it running
 sucessfully (Yay!), but there seems to be a discrepancy in the Users Guide
 vs the downloaded source archive file compression.

 Doc file: http://www.weewx.com/docs/setup.htm says to "Expand the
 source archive" with:

 tar xvfz weewx-X.Y.Z.tar.gz

 Note the "z" option in the tar command, but the "weewx-3.6.1.tar.gz"
 file appears to not have zip compression applied, and an error is 
 generated.

 gzip: stdin: not in gzip format
 tar: Child returned status 1
 tar: Error is not recoverable: exiting now

 Once I removed the "z" option from the tar command, things progressed
 much better, and weewx now seems to be running fine.   Thanks!

>>> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-10-16 Thread Liz
On Fri, 14 Oct 2016 04:51:37 -0700 (PDT)
mwall  wrote:

> On Friday, October 14, 2016 at 6:36:25 AM UTC-4, Liz wrote:
> >
> > Just trying the upgrade through this system. I have got to diff the 
> > files and find the essential parts of the weewx.conf that I have to 
> > change, and those I have to retain. 
> > I can do that, but for a lot of our users this is a big degree of 
> > difficulty. 
> >
> > I'd suggest that the post-install script looks at essentials which
> > need changing in conf files and does those. 
> >  
> 
> liz,
> 
> could you provide more detail about the process you went through so i
> can duplicate the behavior?
> 
> there is already logic in the pre/post scripts that *should* upgrade
> the weewx.conf file when you do a .deb upgrade (using dpkg or apt).
> when it encounters changes to weewx.conf, it *should* do the standard
> debian prompts about changed files.
> 
> m
> 

dpkg-reconfigure offers Metric vs Imperial measures (whatever they
might be called)
However, Metric installs METRICWX, not metric, with the wind speeds in
m/s.
I've tried it twice more to be sure that dpkg-reconfigure is the
responsible part.

Liz

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-10-14 Thread Andrew Milner
Thanks Tom - I think this a case of old dogs and new tricks and having got 
used to setup.py I'll stick with it as I am sure I'll mess up when moving 
files around!!!  A pity - as for each upgrade I have to refer to the 
userguides to get the command sequence correct and had hoped apt-get may 
make life simpler!!  Never mind, am glad I asked though.  I use MySQL 
rather than SQLITE so at least that would not be an issue!

On Friday, 14 October 2016 15:23:30 UTC+3, Tom Keffer wrote:
>
> You would end up with two different installations.
>
> If you really want to do this, you could install using apt-get, then move 
> your old files over into the new places. In particular, you would have to 
> move the database (unless using MySQL), the weewx.conf file, and the skins.
>
> -tk
>
> On Fri, Oct 14, 2016 at 5:19 AM, Andrew Milner  > wrote:
>
>> I have always installed via setup.py - can I switch by just using apt-get 
>> or will I end up with two installations in two different places - one my 
>> existing setup.py in /home/weewx and one somewhere else?  Is it possible to 
>> make apt-get use the existing installation, skins and .conf files??
>>
>>
>>
>> On Friday, 14 October 2016 14:51:37 UTC+3, mwall wrote:
>>
>>> On Friday, October 14, 2016 at 6:36:25 AM UTC-4, Liz wrote:

 Just trying the upgrade through this system. I have got to diff the 
 files and find the essential parts of the weewx.conf that I have to 
 change, and those I have to retain. 
 I can do that, but for a lot of our users this is a big degree of 
 difficulty. 

 I'd suggest that the post-install script looks at essentials which need 
 changing in conf files and does those. 

>>>
>>> liz,
>>>
>>> could you provide more detail about the process you went through so i 
>>> can duplicate the behavior?
>>>
>>> there is already logic in the pre/post scripts that *should* upgrade the 
>>> weewx.conf file when you do a .deb upgrade (using dpkg or apt).  when it 
>>> encounters changes to weewx.conf, it *should* do the standard debian 
>>> prompts about changed files.
>>>
>>> m
>>>
>> -- 
>> 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+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Version 3.6.1

2016-10-14 Thread Andrew Milner
I have always installed via setup.py - can I switch by just using apt-get 
or will I end up with two installations in two different places - one my 
existing setup.py in /home/weewx and one somewhere else?  Is it possible to 
make apt-get use the existing installation, skins and .conf files??



On Friday, 14 October 2016 14:51:37 UTC+3, mwall wrote:

> On Friday, October 14, 2016 at 6:36:25 AM UTC-4, Liz wrote:
>>
>> Just trying the upgrade through this system. I have got to diff the 
>> files and find the essential parts of the weewx.conf that I have to 
>> change, and those I have to retain. 
>> I can do that, but for a lot of our users this is a big degree of 
>> difficulty. 
>>
>> I'd suggest that the post-install script looks at essentials which need 
>> changing in conf files and does those. 
>>
>
> liz,
>
> could you provide more detail about the process you went through so i can 
> duplicate the behavior?
>
> there is already logic in the pre/post scripts that *should* upgrade the 
> weewx.conf file when you do a .deb upgrade (using dpkg or apt).  when it 
> encounters changes to weewx.conf, it *should* do the standard debian 
> prompts about changed files.
>
> m
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.