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 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 - 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-15 Thread mwall
On Saturday, October 15, 2016 at 12:58:14 AM UTC-4, Liz wrote:
>
> On Fri, 14 Oct 2016 04:51:37 -0700 (PDT) 
> mwall wrote: 
>
> > liz, 
> > 
> > could you provide more detail about the process you went through so i 
> > can duplicate the behavior? 
>
> Weewx 3.5.0 installed by deb file upgrade 
> Weewx 3.6.0 not touched 
> Weewx 3.6.1 installed by apt-get 
>
> In the post-install script I get the standard "the conf file has been 
> changed by you, or a script " 
> then the choices Y or I (accept new conf file) 
> N (default, keep own conf file) 
> D(open a diff) 
> Z(open a shell) 
>
> I open the diff 
> the changes proposed are to revert to the stock standard weewx.conf 
> that is, to change my location, my co-ordinates, and anything else I've 
> altered along the way. 
>
> I make a careful diff of the appropriate changes and proceed (with the 
> Z option) 
> On restart, instead of a vantage station I have a ws23xx. I did once, 
> so this may have been picked up by a process looking somewhere 
> forgotten. 
> dpkg-reconfigure weewx allowed me to change that. 
>

you got the expected behavior.  unfortunately the expected behavior is 
user-friendly in a unix way ("unix is user friendly, it is just picky about 
who its friends are").

if you choose Y then you get your old config, updated by the version of 
weewx that you are installing.  unless there is a bug in the update 
process, everything would just work.

if you choose N, then you get your old config, unchanged.  in some upgrades 
this will work, but in many it would fail (see the upgrade guide for 
examples).

you chose D, the most complicated choice.  in that one you see the 
difference between what you have and what weewx would do.  this is a good 
choice if you do not trust the installer, or you want to know exactly what 
weewx will be doing to your config.  if you have a good diff editor then 
you can even cherry pick the changes.  or you can just say "use all of the 
suggested changes" after you have reviewed them.

however, it sounds like there is another issue here.

the dpkg and apt plumbing use debconf.  when you first install weewx, 
debconf remembers the parameters you enter, such as lat/lon/alt and station 
type.  you started by telling debconf you have a ws23xx.  if you then 
modify weewx.conf, say by changing to vantage, debconf does not know about 
that.  so when you run something that uses debconf again, debconf will try 
to use the settings it was given, in this case ws23xx.

that is why running dpkg-reconfigure fixes it - that tells debconf the new 
settings.

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-10-14 Thread Liz
On Fri, 14 Oct 2016 04:51:37 -0700 (PDT)
mwall  wrote:

> 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

Weewx 3.5.0 installed by deb file upgrade
Weewx 3.6.0 not touched
Weewx 3.6.1 installed by apt-get

In the post-install script I get the standard "the conf file has been
changed by you, or a script "
then the choices Y or I (accept new conf file)
N   (default, keep own conf file)
D   (open a diff)
Z   (open a shell)

I open the diff
the changes proposed are to revert to the stock standard weewx.conf
that is, to change my location, my co-ordinates, and anything else I've
altered along the way.

I make a careful diff of the appropriate changes and proceed (with the
Z option)
On restart, instead of a vantage station I have a ws23xx. I did once,
so this may have been picked up by a process looking somewhere
forgotten.
dpkg-reconfigure weewx allowed me to change that.

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 mwall
On Friday, October 14, 2016 at 1:01:43 PM UTC-4, vince wrote:
>
> Confused -  are talking about switching from setup.py to pre-packaged 
> weewx on an existing system ?  
>

fyi, the wiki has the outline of how to convert from setup.py to .deb:

https://github.com/weewx/weewx/wiki/How%20to%20convert%20from%20setup.py%20install%20to%20debian%20install

 

> One question we will keep getting on the Pi will be lack of a webserver in 
> Raspbian by default.   Uncertain if the new apt-get package will gracefully 
> put the config file for apache into place in the right place anyway, but I 
> can test that on a pi here if Matthew needs that done
>

for weewx 3.0.0 up to and including 3.6.0, when you install weewx using 
apt-get, it will also install apache2.  it will also install an ftp client 
and rsync.

as of 3.6.1, a new install of weewx using apt-get will result in *only* 
weewx.

the problem is that not everyone wants a web server, and not everyone wants 
apache.  in fact, nginx or lighttpd are more appropriate web servers for 
many pi deployments.

so if you want weewx and a web server, the recommended way to do it is:

sudo apt-get install weewx apache2

and everything should just work.  or, if you prefer nginx:

sudo apt-get install weewx nginx

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-10-14 Thread vince
On Friday, October 14, 2016 at 3:36:25 AM UTC-7, Liz wrote:
>
> On Thu, 13 Oct 2016 16:24:02 -0700 
> Thomas Keffer > wrote: 
>
> > Oh, I should mention: weewx now has an apt repository! 
> > 
> > Installs and upgrades can be done using apt-get. Follow the 
> > directions here . 
> > 
> > -tk 
> > 
>
> 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. 
>
>
>
Confused -  are talking about switching from setup.py to pre-packaged weewx 
on an existing system ?  

If so, then sure, the two methods use different pathnames, so you'd have to 
move the old setup.py installation out of the way (service stop, rename 
/home/weewx and the startup file at a minimum) and then do a complete 
installation of everything using the packaged weewx, then add your 
extensions and edits, etc.   Basically clean out your previous stuff, and 
do a one-time clean installation of everything.  Next update should be just 
a normal debianish package update.

I stuck with setup.py here for those reasons, it was pretty simple to just 
go 3.6.0 to 3.6.1 via:

VER="3.6.1"

cd /var/tmp 

wget http://www.weewx.com/downloads/${VER}.tar.gz

tar zxvf ${VER}.tar.gz

cd weewx-${VER}

python setup.py build

service weewx stop 

python setup.py install

service weewx start


That said, I have an existing system and like being able to update a file 
or two under the hood as patches come out between releases.

For new systems and especially for new linux users, the apt-get is 
'definitely' far simpler.  I've run it a bunch of times on raspi and it 
works great. Definitely should be recommended to Linux/weewx newbies on 
debian(ish) packages, as long as they're sqlite of course (a newbie would 
tend to use the default setup hopefully).

One question we will keep getting on the Pi will be lack of a webserver in 
Raspbian by default.   Uncertain if the new apt-get package will gracefully 
put the config file for apache into place in the right place anyway, but I 
can test that on a pi here if Matthew needs that done



-- 
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 Thomas Keffer
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+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-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.


Re: [weewx-user] Re: Version 3.6.1

2016-10-14 Thread mwall
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.


Re: [weewx-user] Re: Version 3.6.1

2016-10-14 Thread Liz
On Thu, 13 Oct 2016 16:24:02 -0700
Thomas Keffer  wrote:

> Oh, I should mention: weewx now has an apt repository!
> 
> Installs and upgrades can be done using apt-get. Follow the
> directions here .
> 
> -tk
> 

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

-- 
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.