[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Kenneth Sherwood
Using the Python 2 version has worked on Linux Mint 19.  Thanks so much. 

-- 
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/4c109e50-0376-4d95-974b-df618b4377a7%40googlegroups.com.


[weewx-user] Re: StdCalibrate Altimeter

2020-05-10 Thread mwall
On Sunday, May 10, 2020 at 10:27:34 PM UTC-4, rich T wrote:
>
>
> I restarted weewx; waited an archived period and the altimeter value did 
> not reflect a 0.07 change. Do I need to change something else? 
>

rich,

unless your hardware reports it, altimeter is a derived variable - it is 
calculated from pressure.

the corrections apply only to independent variables.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dcd5ae46-18ac-40b8-8fe4-008a1727037b%40googlegroups.com.


[weewx-user] StdCalibrate Altimeter

2020-05-10 Thread gjr80
When it comes to any of the ‘pressures’ you need to be very careful because the 
behaviour depends which of the three your station provides. If your station 
does indeed provide altimeter then StdCalibrate should work as you have 
specified (field altimeter will exist when StdCalibrate is applied). When 
StdWXCalculate comes along afterwards it will not calculate field altimeter as 
it already exists. However, if your station does not provide altimeter, you 
can’t calibrate it (field altimeter does not exist) but StdWXCalculate will 
come along afterwards and calculate altimeter, so it can appear that altimeter 
was not calibrated. It’s worthwhile having a look at the order of the 
process_services under [Engine] in weewx.conf.

So have a look at your station/driver, what ‘pressures’ does it emit? If it 
does not emit altimeter then you can’t use StdCalibrate, all you can really do 
is calibrate the ‘pressure’ that is emitted (and altimeter should follow from 
that).

Not sure but I could see software record generation also causing some 
unexpected results, not 100% sure on this, would need to have a look at the 
code base and am unable to do that just now.

Gary

-- 
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/d679561a-7c57-48ae-9915-5ba2fb31af33%40googlegroups.com.


[weewx-user] StdCalibrate Altimeter

2020-05-10 Thread rich T
I'm trying to adjust my Altimeter reading ( -0.07 inHg off) to be aligned 
with the local METAR Altimeter reading. In the weewx.conf, I added the 
following:

##

#   This section can adjust data using calibration expressions.

[StdCalibrate]

[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
# foo = foo + 0.2
altimeter = altimeter + 0.07

I restarted weewx; waited an archived period and the altimeter value did 
not reflect a 0.07 change. Do I need to change something else? I'm 
currently using Weewx version 4.0.0b12.

Thanks
Rich

-- 
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/05df062e-f2a0-4e01-b949-8e410bb81dd1%40googlegroups.com.


[weewx-user] Version number in weewx.conf file

2020-05-10 Thread Dale
I navigated to that location and I do have the line #10 entry of 
_version="4.0.0"



But I do not have any weewx stuff in the /home directory.


I assume I should leave everything be and not worry that there are other 
copies of weewx on the RaspPi?


Also, I hope I have the correct file in /etc/weewx/weewx.conf to modify 
with changes to the startup of weewx?


Dale


--
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/3c7db296-ce9b-e6a8-51ea-130b5f767f46%40charter.net.


Re: [weewx-user] Version number in weewx.conf file

2020-05-10 Thread Tom Keffer
The definitive version number is in the file
/usr/share/weewx/weewx/__init__.py. It will look something like:

__version__="4.0.0"

What does it say?

-tk

On Sun, May 10, 2020 at 6:29 PM Dale  wrote:

> I was patting myself on the back for thinking I was understanding a
> little more about not only how weewx worked, but Raspbian, and got brave
> to go to the file
>
> /etc/weewx/weewx.conf
>
> to change the flag to true to register my installation with weewx and
> look at some of the other parameters, and as I began to scroll through
> the file looking at what information were things I can set and if it was
> to my satisfaction, right near the beginning of the file I found a
> comment that I shouldn't change this value since it was used for
> updating purposes, and the line was "version = 3.9.2" although I know
> full well I have been using 4.0.0 and it says so on my web page at
>
> ecwx.info/weewx
>
>
> Now that I converted over to 4.0.0, am I supposed to go into that file
> and update that line to say "version = 4.0.0" instead of 3.9.2?
>
> I didn't touch anything otherwise but look.
>
> Dale
>
>
> --
> 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/90c70978-30b9-1b5c-d5f5-01049fca713a%40charter.net
> .
>

-- 
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/CAPq0zED-Yy%3DJ%3D2J7p9%2BmWUvDoVx0-837hW8XPQ_EKuB4k-GY%3DQ%40mail.gmail.com.


[weewx-user] Re: Version number in weewx.conf file

2020-05-10 Thread vince
The version string in weewx.conf doesn't do anything other than report in 
your pages, but it might indicate that you have weewx installed twice or 
something.  you might want to check that you don't have both a /home/weewx 
and a /etc/weewx tree installed.

-- 
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/5d26225b-9a0e-46c6-8aae-917634d8cce2%40googlegroups.com.


[weewx-user] Version number in weewx.conf file

2020-05-10 Thread Dale
I was patting myself on the back for thinking I was understanding a 
little more about not only how weewx worked, but Raspbian, and got brave 
to go to the file


/etc/weewx/weewx.conf

to change the flag to true to register my installation with weewx and 
look at some of the other parameters, and as I began to scroll through 
the file looking at what information were things I can set and if it was 
to my satisfaction, right near the beginning of the file I found a 
comment that I shouldn't change this value since it was used for 
updating purposes, and the line was "version = 3.9.2" although I know 
full well I have been using 4.0.0 and it says so on my web page at


ecwx.info/weewx


Now that I converted over to 4.0.0, am I supposed to go into that file 
and update that line to say "version = 4.0.0" instead of 3.9.2?


I didn't touch anything otherwise but look.

Dale


--
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/90c70978-30b9-1b5c-d5f5-01049fca713a%40charter.net.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread vince
I did some poking around on the mint website 
(https://community.linuxmint.com/software) and don't see a python3-cheetah 
package.  There's a python-cheetah package. Perhaps use the python2 
packaged version of weewx if they want to stick with only packages (?)

Unfortunately I can't find an official Mint vagrant box or docker image, so 
I can't spin up a test system easily enough to fiddle around.

-- 
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/3651a756-7430-49ae-b591-917102a6a933%40googlegroups.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread mwall


On Sunday, May 10, 2020 at 2:13:36 AM UTC-4, Kenneth Sherwood wrote:
>
> I'm trying to install Weewx under Mint 19.2
>

as i understand it, mint 19.2 is based on ubuntu 18.04, which is based on 
debian 10

https://en.wikipedia.org/wiki/Linux_Mint_version_history

https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on

but apparently your mint cannot find the python3-cheetah package.

to help us diagnose this, could you see if it is listed under 
python3-cheetah3?  post the result of this:

apt-get list | grep cheetah

here are two options for just getting things to work.

option1: temporarily modify the weewx dependencies.  since you already 
installed cheetah using pip3, you can tell your system to ignore the weewx 
package dependency by modifying the locally cached weewx package 
information.  edit the file /var/lib/dpkg/status - go to the weewx section 
then modify the Depends line by removing the python3-cheetah part.  next 
time you do 'sudo apt-get update' this will be replaced with the official 
one again, so if you want to continue ignoring the dependency you will have 
to modify the file again.  warning!  you can mess up your system if you 
scramble this file!

option2: you have installed cheetah directly using pip3, so you have 
cheetah, just not the cheetah packaged by mint/ubuntu/debian.  so weewx 
will be able to run.  you could try installing weewx with an option to 
apt-get that tells it to ignore cheetah (since you already installed it 
using pip3).  try this:

sudo apt-get install weewx python3-cheetah-

notice the hyphen after cheetah (i'm not sure if this still works - it was 
in apt-get ages ago)

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/db927c18-99e2-4b4a-ae0d-5d61a4b79519%40googlegroups.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Greg from Oz
Hi Tom,

The apt install -f doesn't mean force it means fix brokenif possible. 
Doesn't always work, but worth a try.

*-f*, *--fix-broken*
   Fix; attempt to correct a system with broken dependencies in place. 
This option, when
   used with install/remove, can omit any packages to permit APT to 
deduce a likely
   solution. If packages are specified, these have to completely 
correct the problem. The
   option is sometimes necessary when running APT for the first time; 
APT itself does not
   allow broken package dependencies to exist on a system. It is 
possible that a system's
   dependency structure can be so corrupt as to require manual 
intervention (which
   usually means using *dpkg* *--remove* to eliminate some of the 
offending packages). Use of
   this option together with *-m* may produce an error in some 
situations. Configuration
   Item: APT::Get::Fix-Broken.


On Monday, 11 May 2020 04:47:36 UTC+10, vince wrote:
>
> On Sunday, May 10, 2020 at 11:15:24 AM UTC-7, Kenneth Sherwood wrote:
>>
>> Still having trouble. Somehow I think Cheetah is installed but not being 
>> recognized: 
>>
>> sherwood@sherwood-IdeaCentre-A730:~$ python3 -m pip install cheetah3
>> Collecting cheetah3
>>   Downloading 
>> https://files.pythonhosted.org/packages/dc/48/e81a2cfd8ee730ae37b2e2a2ef9bfd1f20d2b5c617567e36e72c8d583c09/Cheetah3-3.2.4-cp36-cp36m-manylinux1_x86_64.whl
>>  
>> (671kB)
>> 100% || 675kB 1.8MB/s 
>> Installing collected packages: cheetah3
>> Successfully installed cheetah3-3.2.4
>>
>
>
> Good - cheetah 'is' installed via pip3
>
>  
>
>> sherwood@sherwood-IdeaCentre-A730:~$ sudo apt-get install weewx
>> Reading package lists... Done
>> Building dependency tree   
>> Reading state information... Done
>> The following packages have unmet dependencies:
>>  weewx : Depends: python3-cheetah but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>>  
>>
>
> Again, if you google the 'E' (error) line above you'll see what happened. 
>   Apt can lose its mind.  Very frustrating.
>
> https://unix.stackexchange.com/questions/389156/how-to-fix-held-broken-packages
>  
> first answer has some options.
>
> I think if you do the "apt-get install weewx -f" (ie, force it) that 
> somebody else suggested, it might work and run ok.   Might be worth a try.
>
> Now regarding the debian package for weewx v4, I don't know if it's 
> looking for a "package" containing cheetah, or just the existence of 
> cheetah even if it was installed via pip.   If it's the former and your 
> distro doesn't "have" a package, then you're always going to need to force 
> the package to install.  Building packages to cover every os when every os 
> is different is hard.
>
>

-- 
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/d610c35f-0503-4df6-ac22-eb383189188b%40googlegroups.com.


[weewx-user] Re: Weewx and Weathercloud

2020-05-10 Thread gjr80
Andy,

As Tom said WeeWX field outTemp is the temperature field reported to 
WeatherCloud, so first thing is we need to make sure outTemp is populated. 
After you made the change to the sensor map and you restarted WeeWX the log 
will have contained details on the sensor map being used, it should look 
something like this:

May  4 07:27:02 raspberrypi weewx[11308]: te923: sensor map is {
'extraBatteryStatus1': 'bat_2', 'outTemp': 't_1', 'outHumidity': 'h_1', 
'extraHumid4': 'h_5', 'uvBatteryStatus': 'bat_uv', 'extraHumid2': 'h_3', 
'extraHumid3': 'h_4', 'rainLinkStatus': 'link_rain', 'extraHumid1': 'h_2', 
'rainBatteryStatus': 'bat_rain', 'extraTemp2': 't_3', 'extraTemp4': 't_5', 
'uvLinkStatus': 'link_uv', 'windLinkStatus': 'link_wind', 'outLinkStatus': 
'link_1', 'extraBatteryStatus2': 'bat_3', 'extraBatteryStatus3': 'bat_4', 
'windBatteryStatus': 'bat_wind', 'outTempBatteryStatus': 'bat_1', 
'extraBatteryStatus4': 'bat_5', 'extraTemp3': 't_4', 'extraLinkStatus1': 
'link_2', 'extraLinkStatus2': 'link_3', 'extraLinkStatus3': 'link_4', 
'extraLinkStatus4': 'link_5', 'inTemp': 't_in', 'inHumidity': 'h_in', 
'extraTemp1': 't_2'}

What sensor map entry appeared in your log after you restarted WeeWX? Can 
you post it please.

Also let's see what the driver is actually sending to WeeWX. Can you stop 
WeeWX and then run WeeWX directly 
, this will cause 
the loop packets from the driver to be printed on screen, they will start 
with LOOP:. Every five minutes you will see a line starting with REC:, this 
is the archive record that WeeWX has synthesised from the loop packets. Can 
you copy/paste the output from running WeeWX directly making sure you 
capture several loop packets and at least one archive record.

Gary

On Monday, 11 May 2020 08:58:42 UTC+10, Andy Harrold wrote:
>
> Hi Gary.
> After some testing and queries on other forums regarding the driver, it 
> appears that my system is reporting the external temperature on sensor 3, 
> with the TE923 driver using sensor 1. I was advised to try adding a 
> sensor_map to the weewx.conf file. I added the information to the section 
> regarding my driver (TE923) but its still not reporting.
>
> # (as before)
>
>   [[sensor_map]]
> outTemp = t_3
>
>

-- 
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/adce5b29-2dc6-48fd-8ba2-9492f6eb7491%40googlegroups.com.


[weewx-user] Re: Weewx and Weathercloud

2020-05-10 Thread Andy Harrold
Hi Gary.
After some testing and queries on other forums regarding the driver, it appears 
that my system is reporting the external temperature on sensor 3, with the 
TE923 driver using sensor 1. I was advised to try adding a sensor_map to the 
weewx.conf file. I added the information to the section regarding my driver 
(TE923) but its still not reporting.

# (as before)

  [[sensor_map]]
outTemp = t_3

-- 
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/32530dcb-2464-43f1-824c-d4ac8a86c685%40googlegroups.com.


Re: [weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Tom Keffer
Hang on. Before you do anything else:

IF you use pip from the weewx root directory it will fail. The reason is
that pip sees the weewx.cfg file, and tries to install there.

Change directory someplace else, say your home directory, then try to
install cheetah using pip.

I have probably learned this lesson, oh, 20 or 30 times.

-tk

On Sun, May 10, 2020 at 11:47 AM vince  wrote:

> On Sunday, May 10, 2020 at 11:15:24 AM UTC-7, Kenneth Sherwood wrote:
>>
>> Still having trouble. Somehow I think Cheetah is installed but not being
>> recognized:
>>
>> sherwood@sherwood-IdeaCentre-A730:~$ python3 -m pip install cheetah3
>> Collecting cheetah3
>>   Downloading
>> https://files.pythonhosted.org/packages/dc/48/e81a2cfd8ee730ae37b2e2a2ef9bfd1f20d2b5c617567e36e72c8d583c09/Cheetah3-3.2.4-cp36-cp36m-manylinux1_x86_64.whl
>> (671kB)
>> 100% || 675kB 1.8MB/s
>> Installing collected packages: cheetah3
>> Successfully installed cheetah3-3.2.4
>>
>
>
> Good - cheetah 'is' installed via pip3
>
>
>
>> sherwood@sherwood-IdeaCentre-A730:~$ sudo apt-get install weewx
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> The following packages have unmet dependencies:
>>  weewx : Depends: python3-cheetah but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>>
>>
>
> Again, if you google the 'E' (error) line above you'll see what happened.
>   Apt can lose its mind.  Very frustrating.
>
> https://unix.stackexchange.com/questions/389156/how-to-fix-held-broken-packages
> first answer has some options.
>
> I think if you do the "apt-get install weewx -f" (ie, force it) that
> somebody else suggested, it might work and run ok.   Might be worth a try.
>
> Now regarding the debian package for weewx v4, I don't know if it's
> looking for a "package" containing cheetah, or just the existence of
> cheetah even if it was installed via pip.   If it's the former and your
> distro doesn't "have" a package, then you're always going to need to force
> the package to install.  Building packages to cover every os when every os
> is different is hard.
>
> --
> 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/e4a2f5c4-0243-4ae6-ad1b-6052b3113d74%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/CAPq0zEDxiafMT%3D5z9KQ0U-m%2Bm8GBVin3yCx%2BZZvQkbRHhLKToQ%40mail.gmail.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread vince
On Sunday, May 10, 2020 at 11:15:24 AM UTC-7, Kenneth Sherwood wrote:
>
> Still having trouble. Somehow I think Cheetah is installed but not being 
> recognized: 
>
> sherwood@sherwood-IdeaCentre-A730:~$ python3 -m pip install cheetah3
> Collecting cheetah3
>   Downloading 
> https://files.pythonhosted.org/packages/dc/48/e81a2cfd8ee730ae37b2e2a2ef9bfd1f20d2b5c617567e36e72c8d583c09/Cheetah3-3.2.4-cp36-cp36m-manylinux1_x86_64.whl
>  
> (671kB)
> 100% || 675kB 1.8MB/s 
> Installing collected packages: cheetah3
> Successfully installed cheetah3-3.2.4
>


Good - cheetah 'is' installed via pip3

 

> sherwood@sherwood-IdeaCentre-A730:~$ sudo apt-get install weewx
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> The following packages have unmet dependencies:
>  weewx : Depends: python3-cheetah but it is not installable
> E: Unable to correct problems, you have held broken packages.
>  
>

Again, if you google the 'E' (error) line above you'll see what happened.   
Apt can lose its mind.  Very frustrating.
https://unix.stackexchange.com/questions/389156/how-to-fix-held-broken-packages 
first answer has some options.

I think if you do the "apt-get install weewx -f" (ie, force it) that 
somebody else suggested, it might work and run ok.   Might be worth a try.

Now regarding the debian package for weewx v4, I don't know if it's looking 
for a "package" containing cheetah, or just the existence of cheetah even 
if it was installed via pip.   If it's the former and your distro doesn't 
"have" a package, then you're always going to need to force the package to 
install.  Building packages to cover every os when every os is different is 
hard.

-- 
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/e4a2f5c4-0243-4ae6-ad1b-6052b3113d74%40googlegroups.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Kenneth Sherwood


On Sunday, May 10, 2020 at 12:05:42 PM UTC-4, vince wrote:
>
> On Saturday, May 9, 2020 at 11:13:36 PM UTC-7, Kenneth Sherwood wrote:
>>
>> Package python3-cheetah is not available, but is referred to by another 
>> package.
>>  
>>
> Any advice? 
>>
>>
> Yes.  Try looking up your exact error message on Google.  
> https://askubuntu.com/questions/391184/but-is-referred-to-by-another-package-finding-that-package
>  
> is the first hit that appears. Give that a read and see if that helps any.
>
>
>- Did you run 'apt-get update' first ?
>- Did you try 'apt search python3-cheetah' ?
>- How about 'dpkg -l | grep -i cheetah'
>
>
> What have you tried ?
>
>
Still having trouble. Somehow I think Cheetah is installed but not being 
recognized: 

sherwood@sherwood-IdeaCentre-A730:~$ python3 -m pip install cheetah3
Collecting cheetah3
  Downloading 
https://files.pythonhosted.org/packages/dc/48/e81a2cfd8ee730ae37b2e2a2ef9bfd1f20d2b5c617567e36e72c8d583c09/Cheetah3-3.2.4-cp36-cp36m-manylinux1_x86_64.whl
 
(671kB)
100% || 675kB 1.8MB/s 
Installing collected packages: cheetah3
Successfully installed cheetah3-3.2.4
sherwood@sherwood-IdeaCentre-A730:~$ sudo apt-get install weewx
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 weewx : Depends: python3-cheetah but it is not installable
E: Unable to correct problems, you have held broken packages.
 

>  
>

-- 
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/a7a8fe6c-e7e2-442f-9e42-1e11f5419984%40googlegroups.com.


[weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread Howard Walter

>
> You weren’t using wee_extension install before?
>
I have always used wee_extension.

> If you’re really sure you have a completely clean /home/weewx tree; the 
> only other thing I would suggest is that you do nothing to 
> /home/weewx/weewx.conf but add your NWS lid and foid.  Don’t make any other 
> changes.
>
sudo rm -rf /home/weewx before each new install. Last time, I added the lid 
and foid and only changed the debug level to 2. Same errors.

> pip3 install six returns
>
Requirement already satisfied: six in /usr/lib/python3/dist-packages 
(1.12.0)

Yes, I agree that this should remain a mystery for now. Thanks very much 
for all the time and effort that you have invested.

In the next day or so, I am going to retry the install with python2.

-- 
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/643ad0ca-7ea8-40ff-8188-8143e643e34b%40googlegroups.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Kenneth Sherwood
Thanks. Have tried that: 

sherwood@sherwood-IdeaCentre-A730:~$ sudo apt install -f
[sudo] password for sherwood:   
Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sherwood@sherwood-IdeaCentre-A730:~$ 



On Sunday, May 10, 2020 at 2:23:35 AM UTC-4, Greg from Oz wrote:
>
> You could try:
> sudo apt install -f
>
> and it might be able to fix itself?
>
> On Sunday, 10 May 2020 16:13:36 UTC+10, Kenneth Sherwood wrote:
>>
>> I'm trying to install Weewx under Mint 19.2
>>
>> I've attempted to follow both the Deb package install instructions and 
>> the setup.py process. In both cases, I get hung up with an unmet 
>> dependency: 
>>
>>  sudo apt-get install weewx
>> Reading package lists... Done
>> Building dependency tree   
>> Reading state information... Done
>> Some packages could not be installed. This may mean that you have
>> requested an impossible situation or if you are using the unstable
>> distribution that some required packages have not yet been created
>> or been moved out of Incoming.
>> The following information may help to resolve the situation:
>>
>> The following packages have unmet dependencies:
>>  weewx : Depends: python3-cheetah but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>>
>> Attempt to install python3-cheetah also fails: 
>> sudo apt-get install python3-cheetah
>> Reading package lists... Done
>> Building dependency tree   
>> Reading state information... Done
>> Package python3-cheetah is not available, but is referred to by another 
>> package.
>> This may mean that the package is missing, has been obsoleted, or
>> is only available from another source
>>
>> ---
>> Any advice? 
>>
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e21153c8-e3d3-4e47-97c3-559eea5afc5b%40googlegroups.com.


Re: [weewx-user] Issue with a report last values are Zero

2020-05-10 Thread Hyrules
ok I understand now how this works 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ed92b7b1-4ad0-4fd5-995c-ac4f07b350af%40googlegroups.com.


Re: [weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread John Kline
I see that all of my buster machines have the debian python3-pip installed.
apt install python3-pip


> On May 10, 2020, at 9:13 AM, John Kline  wrote:
> 
> 
> I think pip installing six (IIRC, “pip3 install six”) might very well be the 
> issue.  I forgot to add this in the installation instructions.  And the code 
> likes to swallow exceptions, so you might not see the error that the six 
> package wasn’t found.
> 
>>> On May 10, 2020, at 9:07 AM, John Kline  wrote:
>>> 
>> 
>> BTW, do you have six installed?
>> 
 On May 10, 2020, at 9:00 AM, John Kline  wrote:
 
>>> 
>>> Nope.  I always use setup.py.
>>> 
>>> You weren’t using wee_extension install before?  That didn’t sink in 
>>> before; but it doesn’t matter since you’ve tried it.
>>> 
>>> This story simply doesn’t add up.  Something is going wrong and you’re 
>>> getting a null where no one else using this extension is.  Of course, the 
>>> code should be detecting the problem earlier and giving a meaningful error 
>>> message, but this isn’t my extension.  I simply added a check for null 
>>> every time I encountered the illegal (Py3) comparison (in addition to 
>>> converting the code to Py3 and WeeWX 4).  I could go through the code and 
>>> check for null on every comparison, but I’m not inclined to do that.  It 
>>> would be a mess.  I would be more inclined to rewrite the whole thing, but 
>>> I’d rather not as it’s been working fine for me and others.
>>> 
>>> If you’re really sure you have a completely clean /home/weewx tree; the 
>>> only other thing I would suggest is that you do nothing to 
>>> /home/weewx/weewx.conf but add your NWS lid and foid.  Don’t make any other 
>>> changes.  Remove no entries anywhere, just fill in the lid and foid.  If 
>>> you still get the same result, perhaps this will remain a mystery.
>>> 
> On May 10, 2020, at 8:38 AM, Howard Walter  wrote:
> 
 
 Yes, I only use setup.py because I need to change some of the weewx source 
 for my 1-wire weather station. Does this mean that you have been 
 installing on the Rpi with the Deb package?
 If so, I will try the Deb install later today.
 
 Blew away /home/weewx and re-installed by downloading a fresh copy of 
 weewx-4.0.0 and running .setup.py using python3.
 It created a new /home/weewx which is owned by root. Had to use sudo 
 wee_extension --install for your Forecast extension since /home/weewx is 
 owned by root.
 Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
 Still get the same forecast errors.
 
 
 -- 
 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/2852fdad-6be4-4586-a274-2c9191ad6175%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/1D03E581-07EB-43E4-B546-03E5BBBCDD82%40johnkline.com.


Re: [weewx-user] Issue with a report last values are Zero

2020-05-10 Thread Tom Keffer
You just didn't read the right section!

Options in weewx.conf override options in skin.conf. See the section *How
options work * in
the Customizing Guide.

On Sun, May 10, 2020 at 9:34 AM Hyrules  wrote:

> Thanks.
>
> More on the skin i'm working on :
>
> I was reading the weewx customization guide and found I can specify the
> StringFormats of my units in my skin.conf. So technically when I generate a
> report with the cheetah engine in my skin the string should format itself
> to the format I have specified in the skin.conf file right ?
>
> Because at the moment the formatting applied in my skin is the defaut one
> of the weewx.conf. Am I missing something here ?
>
> Skin.conf :
>
> [Unit]
>[[Groups]]
>group_altitude = meter# Options are 'foot' or
> 'meter'
>group_degree_day   = degree_C_day # Options are
> 'degree_F_day' or 'degree_C_day'
>group_direction= degree_compass
>group_distance = km   # Options are 'mile' or
> 'km'
>group_moisture = centibar
>group_percent  = percent
>group_pressure = hPa  # Options are 'inHg',
> 'mmHg', 'mbar', or 'hPa'
>group_radiation= watt_per_meter_squared
>group_rain = mm   # Options are 'inch',
> 'cm', or 'mm'
>group_rainrate = mm_per_hour  # Options are
> 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
>group_speed= km_per_hour  # Options are
> 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
>group_speed2   = km_per_hour2 # Options are
> 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
>group_temperature  = degree_C # Options are 'degree_F'
> or 'degree_C'
>group_uv   = uv_index
>group_volt = volt
>
> [[StringFormats]]
>NONE= "---"
>degree_C= %.2f
>percent = %.1f
>km_per_hour = %.1f
>km_per_hour2= %.1f
>km  = %.2f
>mm_per_hour = %.1f
>mm  = %.2f
>meter_per_second= %.1f
>hPa = %.1f
>mile_per_hour   = %.1f
>
> [[Ordinates]]
># The ordinal directions. The last one should be for no wind
> direction
>directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W,
> WNW, NW, NNW, ---
>
> [CheetahGenerator]
>encoding = utf8
>search_list_extensions = user.extrastats.ExtraStats
>
> [[NOAA_PRYR]]
>encoding = strict_ascii
>template = NOAAPRYR.TXT.tmpl
>
> [[NOAA_YR]]
>encoding = strict_ascii
>template = NOAAYR.TXT.tmpl
>
> [[NOAA_PRMO]]
>encoding = strict_ascii
>template = NOAAPRMO.TXT.tmpl
>
> [[NOAA_MO]]
>encoding = strict_ascii
>template = NOAAMO.TXT.tmpl
>
> [[Downld02]]
>template = downld02.txt.tmpl
>
> [[Downld08]]
>template = downld08.txt.tmpl
>
> [[Xml]]
>template = xml.xml.tmpl
>
> [[Current]]
>template = current.htm.tmpl
>
> [Generators]
># The list of generators that are to be run:
>generator_list = weewx.cheetahgenerator.CheetahGenerator,
> weewx.reportengine.FtpGenerator
>
> Report :
>
> #errorCatcher Echo
> #import weewx.uwxutils as utils
> #import user.weathercalc as wc
> #set $D="%d/%m/%y"
> #set $Time="%I:%M%p"
> #def formatTime($raw):
> #from datetime import datetime
> #echo $datetime.fromtimestamp($raw
> ).strftime("%-I:%M%p").lower().rstrip('m').rjust(6)
> #end def
>  Temp HiLow   OutDew  Wind  Wind   WindHi
>Hi   Wind   HeatTHWRainHeatCoolIn In
>In In In   In Air  Wind  WindISS   Arc.
>  DateTime Out   Temp   Temp   HumPt. Speed   DirRun Speed
>   Dir  Chill  Index  Index   BarRain  RateD-D D-DTemp   Hum
>Dew   HeatEMC Density  Samp   Tx   Recept  Int.
>
> ---
>
> #for $_span in $last2days
> $_span.end.format($D) #slurp ## DATE
> $self.formatTime($_span.end.raw) #slurp ## TIME
> $_span.outTemp.avg.format(add_label=False).rjust(6) #slurp ## TEMP OUT
> $_span.outTemp.max.format(add_label=False).rjust(6) #slurp ## HI TEMP
> $_span.outTemp.min.format(add_label=False).rjust(6) #slurp ## LOW TEMP
> $_span.outHumidity.avg.format(add_label=False).rjust(5) #slurp ## OUT HUM
> $_span.dewpoint.avg.format(add_label=False).rjust(6) #slurp ## DEW PT.
> $_span.windSpeed.avg.format(format_string="%.1f",add_label=False).rjust(5)
> #slurp ## WIND SPEED
> 

Re: [weewx-user] Output the number of days on which the gust speed was above a certain value

2020-05-10 Thread Tom Keffer
The argument to max_ge() is actually a *ValueTuple*, which has 3 elements.
So, you want *$year.windGust.max_ge((62.0, "km_per_hour", group_speed))*.

Way back in the distant past (may have been version 1.0!), ValueTuples had
only 2 elements. So, to maintain backwards compatibility with NOAA
templates, 2-element ValueTuples are accepted, but only for temperature and
rain units, not wind speed.

-tk

On Sun, May 10, 2020 at 6:40 AM Rolf Zanchettin  wrote:

> Hello,
>
> I would like to display the number of days on which the speed of the gusts
> was above 62 km/h:
>
> *$year.windGust.max_ge((62.0, "km_per_hour"))*
>
> However, the code throws the following error -->
>
> Generate failed with exception ''
> Reason: tuple index out of range
>
> What am I doing wrong?
>
> Thanks in advance
> Best regards, Rolf
>
> --
> 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/9a857330-9e38-49c4-8c7c-fc857be47cb7%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/CAPq0zEC_2TZpi7F8g946u0RrX2dtCrifMe5a7e88A7GAcXuMDg%40mail.gmail.com.


Re: [weewx-user] Issue with a report last values are Zero

2020-05-10 Thread Hyrules
Thanks. 

More on the skin i'm working on :

I was reading the weewx customization guide and found I can specify the 
StringFormats of my units in my skin.conf. So technically when I generate a 
report with the cheetah engine in my skin the string should format itself 
to the format I have specified in the skin.conf file right ? 

Because at the moment the formatting applied in my skin is the defaut one 
of the weewx.conf. Am I missing something here ?

Skin.conf :

[Unit]
   [[Groups]]
   group_altitude = meter# Options are 'foot' or 
'meter'
   group_degree_day   = degree_C_day # Options are 
'degree_F_day' or 'degree_C_day'
   group_direction= degree_compass
   group_distance = km   # Options are 'mile' or 
'km'
   group_moisture = centibar
   group_percent  = percent
   group_pressure = hPa  # Options are 'inHg', 
'mmHg', 'mbar', or 'hPa'
   group_radiation= watt_per_meter_squared
   group_rain = mm   # Options are 'inch', 
'cm', or 'mm'
   group_rainrate = mm_per_hour  # Options are 
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
   group_speed= km_per_hour  # Options are 
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
   group_speed2   = km_per_hour2 # Options are 
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
   group_temperature  = degree_C # Options are 'degree_F' 
or 'degree_C'
   group_uv   = uv_index
   group_volt = volt

[[StringFormats]]
   NONE= "---"
   degree_C= %.2f
   percent = %.1f
   km_per_hour = %.1f
   km_per_hour2= %.1f
   km  = %.2f
   mm_per_hour = %.1f
   mm  = %.2f
   meter_per_second= %.1f
   hPa = %.1f
   mile_per_hour   = %.1f

[[Ordinates]]
   # The ordinal directions. The last one should be for no wind 
direction
   directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, 
WNW, NW, NNW, ---

[CheetahGenerator]
   encoding = utf8
   search_list_extensions = user.extrastats.ExtraStats

[[NOAA_PRYR]]
   encoding = strict_ascii
   template = NOAAPRYR.TXT.tmpl

[[NOAA_YR]]
   encoding = strict_ascii
   template = NOAAYR.TXT.tmpl

[[NOAA_PRMO]]
   encoding = strict_ascii
   template = NOAAPRMO.TXT.tmpl

[[NOAA_MO]]
   encoding = strict_ascii
   template = NOAAMO.TXT.tmpl

[[Downld02]]
   template = downld02.txt.tmpl

[[Downld08]]
   template = downld08.txt.tmpl

[[Xml]]
   template = xml.xml.tmpl

[[Current]]
   template = current.htm.tmpl

[Generators]
   # The list of generators that are to be run:
   generator_list = weewx.cheetahgenerator.CheetahGenerator, 
weewx.reportengine.FtpGenerator

Report :

#errorCatcher Echo
#import weewx.uwxutils as utils
#import user.weathercalc as wc
#set $D="%d/%m/%y"
#set $Time="%I:%M%p" 
#def formatTime($raw):
#from datetime import datetime
#echo $datetime.fromtimestamp($raw
).strftime("%-I:%M%p").lower().rstrip('m').rjust(6)
#end def
 Temp HiLow   OutDew  Wind  Wind   WindHi   
 Hi   Wind   HeatTHWRainHeatCoolIn In   
 In In In   In Air  Wind  WindISS   Arc.
 DateTime Out   Temp   Temp   HumPt. Speed   DirRun Speed   
Dir  Chill  Index  Index   BarRain  RateD-D D-DTemp   Hum   
 Dew   HeatEMC Density  Samp   Tx   Recept  Int.
---

#for $_span in $last2days
$_span.end.format($D) #slurp ## DATE
$self.formatTime($_span.end.raw) #slurp ## TIME
$_span.outTemp.avg.format(add_label=False).rjust(6) #slurp ## TEMP OUT
$_span.outTemp.max.format(add_label=False).rjust(6) #slurp ## HI TEMP
$_span.outTemp.min.format(add_label=False).rjust(6) #slurp ## LOW TEMP
$_span.outHumidity.avg.format(add_label=False).rjust(5) #slurp ## OUT HUM
$_span.dewpoint.avg.format(add_label=False).rjust(6) #slurp ## DEW PT.
$_span.windSpeed.avg.format(format_string="%.1f",add_label=False).rjust(5) 
#slurp ## WIND SPEED
$_span.windDir.avg.ordinal_compass.rjust(5) #slurp ## WIND DIR
$_span.windrun.sum.format(add_label=False).rjust(6) #slurp ## WIND RUN
$_span.windSpeed.max.format(format_string="%.1f",add_label=False).rjust(5) 
#slurp ## HI SPEED
$_span.windDir.max.ordinal_compass.rjust(5) #slurp ## HI DIR
$_span.windchill.avg.format(add_label=False).rjust(6) #slurp ## WIND CHILL
$_span.heatindex.avg.format(add_label=False).rjust(6) #slurp ## HEAT INDEX

Re: [weewx-user] Errors in the log file unable to make the soft work

2020-05-10 Thread P Le
GREAT! Many thanks Tom.
It works fine. Just this error in the log, does not seems to be an issue : 
ERROR weewx.drivers.ws28xx: ToDateTime: bogus date for LastRainReset: error 
status in buffer
I saw some other post with this error and I found no resolution so far. But 
I understand it is due to a bad data in the database.
Have a good day.
PLC


Le dimanche 10 mai 2020 17:51:52 UTC+2, Tom Keffer a écrit :
>
> Could you please replace your version of ws28xx.py with this version, then 
> restart WeeWX? You will find it in /usr/share/weewx/weewx/drivers/ws28xx.py.
>
> -tk
>
> On Sun, May 10, 2020 at 8:01 AM P Le > 
> wrote:
>
>> Hi everyone,
>> I just installed weewx on a Rpi  4 running under Debian. My station is a 
>> WS2801 and seems to be Sync.
>> In the log Files I have the following errors I don't know what to do :
>> Could you help me please!
>> I reset the weather station and resync all the captors just before.
>> Many thx.
>>
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> driver version is 0.50
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> frequency is EU
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> found transceiver at bus= device=
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> manufacturer: b'LA CROSSE TECHNOLOGY'
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> product: b'Weather Direct Light Wireless Device'
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> interface: 0
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> base frequency: 86830
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> frequency correction: 90128 (0x16010)
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> adjusted frequency: 910568669 (0x36462cdd)
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> transceiver identifier: 53 (0x0035)
>> May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
>> transceiver serial: 01010907150053
>> vMay 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> driver version is 0.50
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> frequency is EU
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> found transceiver at bus= device=
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> manufacturer: b'LA CROSSE TECHNOLOGY'
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> product: b'Weather Direct Light Wireless Device'
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> interface: 0
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> base frequency: 86830
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> frequency correction: 90128 (0x16010)
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> adjusted frequency: 910568669 (0x36462cdd)
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> transceiver identifier: 53 (0x0035)
>> May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
>> transceiver serial: 01010907150053
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> driver version is 0.50
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> frequency is EU
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> found transceiver at bus= device=
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> manufacturer: b'LA CROSSE TECHNOLOGY'
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> product: b'Weather Direct Light Wireless Device'
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> interface: 0
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> base frequency: 86830
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> frequency correction: 90128 (0x16010)
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> adjusted frequency: 910568669 (0x36462cdd)
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> transceiver identifier: 53 (0x0035)
>> May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> transceiver serial: 01010907150053
>> May 10 16:51:14 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
>> console is paired to device with ID 0035
>> May 10 16:51:14 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx: 
>> ToDateTime: bogus date for LastRainReset: error status in buffer
>> May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx: 
>> exception in doRF: unsupported operand type(s) 

Re: [weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread John Kline
I think pip installing six (IIRC, “pip3 install six”) might very well be the 
issue.  I forgot to add this in the installation instructions.  And the code 
likes to swallow exceptions, so you might not see the error that the six 
package wasn’t found.

> On May 10, 2020, at 9:07 AM, John Kline  wrote:
> 
> 
> BTW, do you have six installed?
> 
>>> On May 10, 2020, at 9:00 AM, John Kline  wrote:
>>> 
>> 
>> Nope.  I always use setup.py.
>> 
>> You weren’t using wee_extension install before?  That didn’t sink in before; 
>> but it doesn’t matter since you’ve tried it.
>> 
>> This story simply doesn’t add up.  Something is going wrong and you’re 
>> getting a null where no one else using this extension is.  Of course, the 
>> code should be detecting the problem earlier and giving a meaningful error 
>> message, but this isn’t my extension.  I simply added a check for null every 
>> time I encountered the illegal (Py3) comparison (in addition to converting 
>> the code to Py3 and WeeWX 4).  I could go through the code and check for 
>> null on every comparison, but I’m not inclined to do that.  It would be a 
>> mess.  I would be more inclined to rewrite the whole thing, but I’d rather 
>> not as it’s been working fine for me and others.
>> 
>> If you’re really sure you have a completely clean /home/weewx tree; the only 
>> other thing I would suggest is that you do nothing to /home/weewx/weewx.conf 
>> but add your NWS lid and foid.  Don’t make any other changes.  Remove no 
>> entries anywhere, just fill in the lid and foid.  If you still get the same 
>> result, perhaps this will remain a mystery.
>> 
 On May 10, 2020, at 8:38 AM, Howard Walter  wrote:
 
>>> 
>>> Yes, I only use setup.py because I need to change some of the weewx source 
>>> for my 1-wire weather station. Does this mean that you have been installing 
>>> on the Rpi with the Deb package?
>>> If so, I will try the Deb install later today.
>>> 
>>> Blew away /home/weewx and re-installed by downloading a fresh copy of 
>>> weewx-4.0.0 and running .setup.py using python3.
>>> It created a new /home/weewx which is owned by root. Had to use sudo 
>>> wee_extension --install for your Forecast extension since /home/weewx is 
>>> owned by root.
>>> Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
>>> Still get the same forecast errors.
>>> 
>>> 
>>> -- 
>>> 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/2852fdad-6be4-4586-a274-2c9191ad6175%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/4FFEAE98-22E0-4191-B915-1B57B007A8F9%40johnkline.com.


Re: [weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread p q
To remove one more variable -I'm using the same NWS lid and foid with Weewx 
4 on a rasberry pi. I'm using the older OS and Python 2, though.

I'm not getting any problems once I switched to the updated forecast 
extension.

On Sunday, May 10, 2020 at 9:00:57 AM UTC-7, John Kline wrote:
>
> Nope.  I always use setup.py.
>
> You weren’t using wee_extension install before?  That didn’t sink in 
> before; but it doesn’t matter since you’ve tried it.
>
> This story simply doesn’t add up.  Something is going wrong and you’re 
> getting a null where no one else using this extension is.  Of course, the 
> code should be detecting the problem earlier and giving a meaningful error 
> message, but this isn’t my extension.  I simply added a check for null 
> every time I encountered the illegal (Py3) comparison (in addition to 
> converting the code to Py3 and WeeWX 4).  I could go through the code and 
> check for null on every comparison, but I’m not inclined to do that.  It 
> would be a mess.  I would be more inclined to rewrite the whole thing, but 
> I’d rather not as it’s been working fine for me and others.
>
> If you’re really sure you have a completely clean /home/weewx tree; the 
> only other thing I would suggest is that you do nothing to 
> /home/weewx/weewx.conf but add your NWS lid and foid.  Don’t make any other 
> changes.  Remove no entries anywhere, just fill in the lid and foid.  If 
> you still get the same result, perhaps this will remain a mystery.
>
> On May 10, 2020, at 8:38 AM, Howard Walter  > wrote:
>
> 
> Yes, I only use setup.py because I need to change some of the weewx source 
> for my 1-wire weather station. Does this mean that you have been installing 
> on the Rpi with the Deb package?
> If so, I will try the Deb install later today.
>
> Blew away /home/weewx and re-installed by downloading a fresh copy of 
> weewx-4.0.0 and running .setup.py using python3.
> It created a new /home/weewx which is owned by root. Had to use sudo 
> wee_extension --install for your Forecast extension since /home/weewx is 
> owned by root.
> Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
> Still get the same forecast errors.
>
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/2852fdad-6be4-4586-a274-2c9191ad6175%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/3f0311b5-ea3e-419b-9e2d-659f764dd229%40googlegroups.com.


Re: [weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread John Kline
BTW, do you have six installed?

> On May 10, 2020, at 9:00 AM, John Kline  wrote:
> 
> 
> Nope.  I always use setup.py.
> 
> You weren’t using wee_extension install before?  That didn’t sink in before; 
> but it doesn’t matter since you’ve tried it.
> 
> This story simply doesn’t add up.  Something is going wrong and you’re 
> getting a null where no one else using this extension is.  Of course, the 
> code should be detecting the problem earlier and giving a meaningful error 
> message, but this isn’t my extension.  I simply added a check for null every 
> time I encountered the illegal (Py3) comparison (in addition to converting 
> the code to Py3 and WeeWX 4).  I could go through the code and check for null 
> on every comparison, but I’m not inclined to do that.  It would be a mess.  I 
> would be more inclined to rewrite the whole thing, but I’d rather not as it’s 
> been working fine for me and others.
> 
> If you’re really sure you have a completely clean /home/weewx tree; the only 
> other thing I would suggest is that you do nothing to /home/weewx/weewx.conf 
> but add your NWS lid and foid.  Don’t make any other changes.  Remove no 
> entries anywhere, just fill in the lid and foid.  If you still get the same 
> result, perhaps this will remain a mystery.
> 
>>> On May 10, 2020, at 8:38 AM, Howard Walter  wrote:
>>> 
>> 
>> Yes, I only use setup.py because I need to change some of the weewx source 
>> for my 1-wire weather station. Does this mean that you have been installing 
>> on the Rpi with the Deb package?
>> If so, I will try the Deb install later today.
>> 
>> Blew away /home/weewx and re-installed by downloading a fresh copy of 
>> weewx-4.0.0 and running .setup.py using python3.
>> It created a new /home/weewx which is owned by root. Had to use sudo 
>> wee_extension --install for your Forecast extension since /home/weewx is 
>> owned by root.
>> Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
>> Still get the same forecast errors.
>> 
>> 
>> -- 
>> 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/2852fdad-6be4-4586-a274-2c9191ad6175%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/662C227D-035F-47F7-AF6C-8E9974011817%40johnkline.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread vince
On Saturday, May 9, 2020 at 11:13:36 PM UTC-7, Kenneth Sherwood wrote:
>
> Package python3-cheetah is not available, but is referred to by another 
> package.
>  
>
Any advice? 
>
>
Yes.  Try looking up your exact error message on Google. 
 
https://askubuntu.com/questions/391184/but-is-referred-to-by-another-package-finding-that-package
 
is the first hit that appears. Give that a read and see if that helps any.


   - Did you run 'apt-get update' first ?
   - Did you try 'apt search python3-cheetah' ?
   - How about 'dpkg -l | grep -i cheetah'
   

What have you tried ?

 

-- 
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/9d9597ce-0f13-4695-afa3-ef52c369233d%40googlegroups.com.


Re: [weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread John Kline
Nope.  I always use setup.py.

You weren’t using wee_extension install before?  That didn’t sink in before; 
but it doesn’t matter since you’ve tried it.

This story simply doesn’t add up.  Something is going wrong and you’re getting 
a null where no one else using this extension is.  Of course, the code should 
be detecting the problem earlier and giving a meaningful error message, but 
this isn’t my extension.  I simply added a check for null every time I 
encountered the illegal (Py3) comparison (in addition to converting the code to 
Py3 and WeeWX 4).  I could go through the code and check for null on every 
comparison, but I’m not inclined to do that.  It would be a mess.  I would be 
more inclined to rewrite the whole thing, but I’d rather not as it’s been 
working fine for me and others.

If you’re really sure you have a completely clean /home/weewx tree; the only 
other thing I would suggest is that you do nothing to /home/weewx/weewx.conf 
but add your NWS lid and foid.  Don’t make any other changes.  Remove no 
entries anywhere, just fill in the lid and foid.  If you still get the same 
result, perhaps this will remain a mystery.

> On May 10, 2020, at 8:38 AM, Howard Walter  wrote:
> 
> 
> Yes, I only use setup.py because I need to change some of the weewx source 
> for my 1-wire weather station. Does this mean that you have been installing 
> on the Rpi with the Deb package?
> If so, I will try the Deb install later today.
> 
> Blew away /home/weewx and re-installed by downloading a fresh copy of 
> weewx-4.0.0 and running .setup.py using python3.
> It created a new /home/weewx which is owned by root. Had to use sudo 
> wee_extension --install for your Forecast extension since /home/weewx is 
> owned by root.
> Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
> Still get the same forecast errors.
> 
> 
> -- 
> 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/2852fdad-6be4-4586-a274-2c9191ad6175%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/5200BE67-B3DC-42D5-81E5-0001DCCFCDF9%40johnkline.com.


[weewx-user] Re: MQTT Plugin for Weewx

2020-05-10 Thread vince
On Sunday, May 10, 2020 at 5:53:45 AM UTC-7, dan Forster wrote:
>
>
>-  I now have Weewx 4 running under Python 3, all working perfectly 
>(Davis Vantage Pro with USB).
>- ...which I take it is Pip for Python 2, in order for it to work? Or 
>will this plugin work with Pip3?
>
>
>
If you are using python3, any modules you install must be installed with 
pip3.

Simple as that.

 

-- 
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/24935aad-d3b1-4757-a030-388bfde55eed%40googlegroups.com.


[weewx-user] Re: Forecast extension errors after installing V4

2020-05-10 Thread Howard Walter
Yes, I only use setup.py because I need to change some of the weewx source 
for my 1-wire weather station. Does this mean that you have been installing 
on the Rpi with the Deb package?
If so, I will try the Deb install later today.

Blew away /home/weewx and re-installed by downloading a fresh copy of 
weewx-4.0.0 and running .setup.py using python3.
It created a new /home/weewx which is owned by root. Had to use sudo 
wee_extension --install for your Forecast extension since /home/weewx is 
owned by root.
Edited weewx.conf to setup NWS and ran sudo ./bin/weewxd.
Still get the same forecast errors.


-- 
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/2852fdad-6be4-4586-a274-2c9191ad6175%40googlegroups.com.


[weewx-user] Errors in the log file unable to make the soft work

2020-05-10 Thread P Le
Hi everyone,
I just installed weewx on a Rpi  4 running under Debian. My station is a 
WS2801 and seems to be Sync.
In the log Files I have the following errors I don't know what to do :
Could you help me please!
I reset the weather station and resync all the captors just before.
Many thx.

May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
driver version is 0.50
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
frequency is EU
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
found transceiver at bus= device=
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
manufacturer: b'LA CROSSE TECHNOLOGY'
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
product: b'Weather Direct Light Wireless Device'
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
interface: 0
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
base frequency: 86830
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
frequency correction: 90128 (0x16010)
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
adjusted frequency: 910568669 (0x36462cdd)
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
transceiver identifier: 53 (0x0035)
May 10 16:44:58 raspberrypi wee_device[4411] INFO weewx.drivers.ws28xx: 
transceiver serial: 01010907150053
vMay 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
driver version is 0.50
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
frequency is EU
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
found transceiver at bus= device=
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
manufacturer: b'LA CROSSE TECHNOLOGY'
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
product: b'Weather Direct Light Wireless Device'
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
interface: 0
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
base frequency: 86830
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
frequency correction: 90128 (0x16010)
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
adjusted frequency: 910568669 (0x36462cdd)
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
transceiver identifier: 53 (0x0035)
May 10 16:45:40 raspberrypi wee_device[4513] INFO weewx.drivers.ws28xx: 
transceiver serial: 01010907150053
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
driver version is 0.50
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
frequency is EU
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
found transceiver at bus= device=
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
manufacturer: b'LA CROSSE TECHNOLOGY'
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
product: b'Weather Direct Light Wireless Device'
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
interface: 0
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
base frequency: 86830
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
frequency correction: 90128 (0x16010)
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
adjusted frequency: 910568669 (0x36462cdd)
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
transceiver identifier: 53 (0x0035)
May 10 16:50:18 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
transceiver serial: 01010907150053
May 10 16:51:14 raspberrypi wee_device[5229] INFO weewx.drivers.ws28xx: 
console is paired to device with ID 0035
May 10 16:51:14 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx: 
ToDateTime: bogus date for LastRainReset: error status in buffer
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx: 
exception in doRF: unsupported operand type(s) for >>: 'float' and 'int'
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx: 
Traceback (most recent call last):
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx:  
 File "/usr/share/weewx/weewx/drivers/ws28xx.py", line 4098, in doRF
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx:
 self.doRFCommunication()
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx:  
 File "/usr/share/weewx/weewx/drivers/ws28xx.py", line 4142, in 
doRFCommunication
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx:
 self.generateResponse(FrameBuffer, DataLength)
May 10 16:51:16 raspberrypi wee_device[5229] ERROR weewx.drivers.ws28xx:  
 File "/usr/share/weewx/weewx/drivers/ws28xx.py", line 3885, in 
generateResponse
May 10 16:51:16 raspberrypi wee_device[5229] 

[weewx-user] Output the number of days on which the gust speed was above a certain value

2020-05-10 Thread Rolf Zanchettin
Hello,

I would like to display the number of days on which the speed of the gusts 
was above 62 km/h:

*$year.windGust.max_ge((62.0, "km_per_hour"))*

However, the code throws the following error --> 

Generate failed with exception ''
Reason: tuple index out of range

What am I doing wrong?

Thanks in advance
Best regards, Rolf

-- 
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/9a857330-9e38-49c4-8c7c-fc857be47cb7%40googlegroups.com.


Re: [weewx-user] MQTT Plugin for Weewx

2020-05-10 Thread Greg Troxel
dan Forster  writes:

> Regarding this plugin https://github.com/weewx/weewx/wiki/mqtt *
>
>- I have upgraded my Raspberry Pi to a model 4 with Raspian Buster. I 
>now have Weewx 4 running under Python 3, all working perfectly (Davis 
>Vantage Pro with USB).
>- I would like to use the above link * MQTT plugin with Weewx 4, and see 
>it has a green compatibility tick next to its listing, saying it will work 
>with Python 3.
>- Does this mean I need to install Pip (using sudo apt install 
>python-pip) which I take it is Pip for Python 2, in order for it to work? 
>Or will this plugin work with Pip3?

I don't use raspian, and you are really asking an OS python question.
I'm answering because I have edited that wiki page at times.

This isn't really about pip.  The real requirement is that the python
modules listed have to be present in the version of python that you are
using to run weewx, so that when the mqtt module does an import
statement, they load.  See mqtt.py, and notice

  import paho.mqtt.client as mqtt

and then a few lines later, code looking for one of several json
implementations.

This definitely means that if you are using e.g. python 3.7 for weewx,
having a python 2.7 paho module installed is not useful.

So if you have prerequisites for weewx installed in some python3.X
version, and you used pip for that, you should run the version of pip
that will install to that same place.

Or, if you have other prerequisites installed via a packaging system,
then you can just install that packages for the python modules paho-mqtt
and python-json using that same packaging system.

On my weewx install (still running python 2.7), I have the following
pkgsrc packages installed.  Of course, this is not directly applicable
because you said you are running Raspbian.

  py27-paho-mqtt-1.4.0 MQTT version 3.1.1 client class
  py27-cjson-1.2.1Fast JSON encoder/decoder for Python



And you posted in exactly the right place.

-- 
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/rmid07bx6jb.fsf%40s1.lexort.com.


Re: [weewx-user] New Database weewx 4.0

2020-05-10 Thread Tom Keffer
Unfortunately, there's no list. You'll have to do a mental diff of the two
files schemas/wview.py and schemas/wview_extended.py.

On Sun, May 10, 2020 at 5:57 AM Tom Mitchell  wrote:

> Apologies.. I think I looked in the docs and couldn't find a list of new
> types to potentially take advantage of. Any pointers appreciated.
>
>
> On Saturday, May 9, 2020 at 8:28:50 AM UTC-4, Tom Keffer wrote:
>>
>> Only if you can take advantage of some of the new types.
>>
>>
>>>
>>> --
> 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/1f141e8a-9ddb-4524-bab9-4afb4fb5fb08%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/CAPq0zEC_AUHLFsc7iKwuEDqbLdvaygmwXtEV7bA9k8q%3Dmk1%3D3w%40mail.gmail.com.


Re: [weewx-user] New Database weewx 4.0

2020-05-10 Thread Tom Mitchell
Apologies.. I think I looked in the docs and couldn't find a list of new 
types to potentially take advantage of. Any pointers appreciated.


On Saturday, May 9, 2020 at 8:28:50 AM UTC-4, Tom Keffer wrote:
>
> Only if you can take advantage of some of the new types.
>
>
>>
>>

-- 
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/1f141e8a-9ddb-4524-bab9-4afb4fb5fb08%40googlegroups.com.


[weewx-user] MQTT Plugin for Weewx

2020-05-10 Thread dan Forster
Hello,

Regarding this plugin https://github.com/weewx/weewx/wiki/mqtt *


   - I have upgraded my Raspberry Pi to a model 4 with Raspian Buster. I 
   now have Weewx 4 running under Python 3, all working perfectly (Davis 
   Vantage Pro with USB).
   - I would like to use the above link * MQTT plugin with Weewx 4, and see 
   it has a green compatibility tick next to its listing, saying it will work 
   with Python 3.
   - Does this mean I need to install Pip (using sudo apt install 
   python-pip) which I take it is Pip for Python 2, in order for it to work? 
   Or will this plugin work with Pip3?

Cheers for any advice...

Tom, sorry for posting in the wrong section.

Dan


-- 
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/f3137cf1-4d0d-4c0e-800a-5513006bc511%40googlegroups.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Tom Keffer
These days, Python and Javascript are by far the two most useful languages.

On Sun, May 10, 2020 at 5:21 AM Greg from Oz  wrote:

> Ok so it's not easy.
>
> Maybe I should learn python :)
>
> Thanks
> Greg
>
> On Sunday, 10 May 2020 22:13:48 UTC+10, Tom Keffer wrote:
>>
>> The problem here is not that the entire record is None (which should
>> never happen), but that a value inside the record is None.
>>
>> There are two choices:
>> 1. Explicitly check for None. This is the preferred solution.
>> 2. Alternatively, the code could be changed to catch the exception,
>> optionally log it, then ignore the exception. Problem with this solution is
>> that it can cover a lot of sins.
>>
>> -tk
>>
>> On Sun, May 10, 2020 at 4:52 AM Greg from Oz  wrote:
>>
>>> Hi tom,
>>>
>>> In the alarm.py how would I put the None check in the code rather than
>>> make the expression have the check code.
>>>
>>> I think it's on this line:
>>> if eval(self.expression, None, record):   # NOTE 3
>>>
>>> Would it be:
>>> if record is not None and eval(self.expression, None, record):
>>>  # NOTE 3
>>>
>>> I am not a python programmer by the way. That way if any expression that
>>> could be none would be covered. IE you could put in rain > 0.0
>>>
>>> Thanks
>>>
>>> On Sunday, 10 May 2020 21:29:14 UTC+10, Tom Keffer wrote:

 I suspect 'rain' occasionally has the value 'None', which cannot be
 compared to zero. Try this expression instead

 expression = 'rain is not None and rain > 0.0'

 -tk


 On Sat, May 9, 2020 at 9:38 PM Ian Prescott 
 wrote:

> Hi I have a fineoffset usb weather station which has been running
> raspbian stretch and weewx 3.9 ok and using alarm.py with no issues.
> For weewx 4 I decided to start from fresh, new sd card, new raspbian
> buster, and a fresh weewx install.
> After a of couple learner hicups I now have weewx 4 using buster and
> python 3 up and running.
> However I have hit a wall with alarm.py
> If I use expression = "rain > 0.0" then weewx crashes.
> If I use expression = "outTemp < 30.0" then weewx keeps running but no
> email is ever received.
>
> So after a search of the forum I found this command
> sudo PYTHONPATH=/usr/share/weewx python3
> /usr/share/weewx/user/alarm.py /etc/weewx/weewx.conf
> This ran ok and I got an email
>
> I have attached my weewx.conf and the log from when I start weewx to
> when it crashes using expression = "rain > 0.0".
> I have no idea how to get any useful info regarding expression =
> "outTemp < 30.0", there doesn't appear to be anything unusual in the log.
>
> Thanks
>
> and again a fantastic program and a great learning experience.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/bdb0aa99-c00e-4f2f-aa27-0651a3bb21eb%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/1f1c840f-5f5a-4506-85e2-e98b2d77d949%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/CAPq0zEBc%2Bos61m1YRbiduEku3Kz%3DX5ZeAWemxkRwg2YRJ-F-dA%40mail.gmail.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Greg from Oz
Ok so it's not easy.

Maybe I should learn python :)

Thanks
Greg

On Sunday, 10 May 2020 22:13:48 UTC+10, Tom Keffer wrote:
>
> The problem here is not that the entire record is None (which should never 
> happen), but that a value inside the record is None. 
>
> There are two choices:
> 1. Explicitly check for None. This is the preferred solution.
> 2. Alternatively, the code could be changed to catch the exception, 
> optionally log it, then ignore the exception. Problem with this solution is 
> that it can cover a lot of sins.
>
> -tk
>
> On Sun, May 10, 2020 at 4:52 AM Greg from Oz  > wrote:
>
>> Hi tom,
>>
>> In the alarm.py how would I put the None check in the code rather than 
>> make the expression have the check code.
>>
>> I think it's on this line:
>> if eval(self.expression, None, record):   # NOTE 3
>>
>> Would it be:
>> if record is not None and eval(self.expression, None, record):
>># NOTE 3
>>
>> I am not a python programmer by the way. That way if any expression that 
>> could be none would be covered. IE you could put in rain > 0.0
>>
>> Thanks
>>
>> On Sunday, 10 May 2020 21:29:14 UTC+10, Tom Keffer wrote:
>>>
>>> I suspect 'rain' occasionally has the value 'None', which cannot be 
>>> compared to zero. Try this expression instead
>>>
>>> expression = 'rain is not None and rain > 0.0'
>>>
>>> -tk
>>>
>>>
>>> On Sat, May 9, 2020 at 9:38 PM Ian Prescott  wrote:
>>>
 Hi I have a fineoffset usb weather station which has been running 
 raspbian stretch and weewx 3.9 ok and using alarm.py with no issues.
 For weewx 4 I decided to start from fresh, new sd card, new raspbian 
 buster, and a fresh weewx install.
 After a of couple learner hicups I now have weewx 4 using buster and 
 python 3 up and running.
 However I have hit a wall with alarm.py
 If I use expression = "rain > 0.0" then weewx crashes.
 If I use expression = "outTemp < 30.0" then weewx keeps running but no 
 email is ever received.

 So after a search of the forum I found this command
 sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py 
 /etc/weewx/weewx.conf
 This ran ok and I got an email

 I have attached my weewx.conf and the log from when I start weewx to 
 when it crashes using expression = "rain > 0.0".
 I have no idea how to get any useful info regarding expression = 
 "outTemp < 30.0", there doesn't appear to be anything unusual in the log.

 Thanks

 and again a fantastic program and a great learning experience.

 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/bdb0aa99-c00e-4f2f-aa27-0651a3bb21eb%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/1f1c840f-5f5a-4506-85e2-e98b2d77d949%40googlegroups.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Tom Keffer
The problem here is not that the entire record is None (which should never
happen), but that a value inside the record is None.

There are two choices:
1. Explicitly check for None. This is the preferred solution.
2. Alternatively, the code could be changed to catch the exception,
optionally log it, then ignore the exception. Problem with this solution is
that it can cover a lot of sins.

-tk

On Sun, May 10, 2020 at 4:52 AM Greg from Oz  wrote:

> Hi tom,
>
> In the alarm.py how would I put the None check in the code rather than
> make the expression have the check code.
>
> I think it's on this line:
> if eval(self.expression, None, record):   # NOTE 3
>
> Would it be:
> if record is not None and eval(self.expression, None, record):
># NOTE 3
>
> I am not a python programmer by the way. That way if any expression that
> could be none would be covered. IE you could put in rain > 0.0
>
> Thanks
>
> On Sunday, 10 May 2020 21:29:14 UTC+10, Tom Keffer wrote:
>>
>> I suspect 'rain' occasionally has the value 'None', which cannot be
>> compared to zero. Try this expression instead
>>
>> expression = 'rain is not None and rain > 0.0'
>>
>> -tk
>>
>>
>> On Sat, May 9, 2020 at 9:38 PM Ian Prescott  wrote:
>>
>>> Hi I have a fineoffset usb weather station which has been running
>>> raspbian stretch and weewx 3.9 ok and using alarm.py with no issues.
>>> For weewx 4 I decided to start from fresh, new sd card, new raspbian
>>> buster, and a fresh weewx install.
>>> After a of couple learner hicups I now have weewx 4 using buster and
>>> python 3 up and running.
>>> However I have hit a wall with alarm.py
>>> If I use expression = "rain > 0.0" then weewx crashes.
>>> If I use expression = "outTemp < 30.0" then weewx keeps running but no
>>> email is ever received.
>>>
>>> So after a search of the forum I found this command
>>> sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py
>>> /etc/weewx/weewx.conf
>>> This ran ok and I got an email
>>>
>>> I have attached my weewx.conf and the log from when I start weewx to
>>> when it crashes using expression = "rain > 0.0".
>>> I have no idea how to get any useful info regarding expression =
>>> "outTemp < 30.0", there doesn't appear to be anything unusual in the log.
>>>
>>> Thanks
>>>
>>> and again a fantastic program and a great learning experience.
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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/bdb0aa99-c00e-4f2f-aa27-0651a3bb21eb%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/CAPq0zEAiZBoZgKEA%3D3psVfQ8Q8S058T8iF3tnDMLiDQA-GKPmw%40mail.gmail.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Ian Prescott
Thanks Tom
I made the change then stopped/started weewx and it is still going.
regards Ian  

On Sunday, 10 May 2020 21:29:14 UTC+10, Tom Keffer wrote:
>
> I suspect 'rain' occasionally has the value 'None', which cannot be 
> compared to zero. Try this expression instead
>
> expression = 'rain is not None and rain > 0.0'
>
> -tk
>
>
> On Sat, May 9, 2020 at 9:38 PM Ian Prescott  > wrote:
>
>> Hi I have a fineoffset usb weather station which has been running 
>> raspbian stretch and weewx 3.9 ok and using alarm.py with no issues.
>> For weewx 4 I decided to start from fresh, new sd card, new raspbian 
>> buster, and a fresh weewx install.
>> After a of couple learner hicups I now have weewx 4 using buster and 
>> python 3 up and running.
>> However I have hit a wall with alarm.py
>> If I use expression = "rain > 0.0" then weewx crashes.
>> If I use expression = "outTemp < 30.0" then weewx keeps running but no 
>> email is ever received.
>>
>> So after a search of the forum I found this command
>> sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py 
>> /etc/weewx/weewx.conf
>> This ran ok and I got an email
>>
>> I have attached my weewx.conf and the log from when I start weewx to when 
>> it crashes using expression = "rain > 0.0".
>> I have no idea how to get any useful info regarding expression = "outTemp 
>> < 30.0", there doesn't appear to be anything unusual in the log.
>>
>> Thanks
>>
>> and again a fantastic program and a great learning experience.
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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/721ad41b-a2b6-474b-a309-95cabe7669a3%40googlegroups.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Greg from Oz
Hi tom,

In the alarm.py how would I put the None check in the code rather than make 
the expression have the check code.

I think it's on this line:
if eval(self.expression, None, record):   # NOTE 3

Would it be:
if record is not None and eval(self.expression, None, record):  
 # NOTE 3

I am not a python programmer by the way. That way if any expression that 
could be none would be covered. IE you could put in rain > 0.0

Thanks

On Sunday, 10 May 2020 21:29:14 UTC+10, Tom Keffer wrote:
>
> I suspect 'rain' occasionally has the value 'None', which cannot be 
> compared to zero. Try this expression instead
>
> expression = 'rain is not None and rain > 0.0'
>
> -tk
>
>
> On Sat, May 9, 2020 at 9:38 PM Ian Prescott  > wrote:
>
>> Hi I have a fineoffset usb weather station which has been running 
>> raspbian stretch and weewx 3.9 ok and using alarm.py with no issues.
>> For weewx 4 I decided to start from fresh, new sd card, new raspbian 
>> buster, and a fresh weewx install.
>> After a of couple learner hicups I now have weewx 4 using buster and 
>> python 3 up and running.
>> However I have hit a wall with alarm.py
>> If I use expression = "rain > 0.0" then weewx crashes.
>> If I use expression = "outTemp < 30.0" then weewx keeps running but no 
>> email is ever received.
>>
>> So after a search of the forum I found this command
>> sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py 
>> /etc/weewx/weewx.conf
>> This ran ok and I got an email
>>
>> I have attached my weewx.conf and the log from when I start weewx to when 
>> it crashes using expression = "rain > 0.0".
>> I have no idea how to get any useful info regarding expression = "outTemp 
>> < 30.0", there doesn't appear to be anything unusual in the log.
>>
>> Thanks
>>
>> and again a fantastic program and a great learning experience.
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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/bdb0aa99-c00e-4f2f-aa27-0651a3bb21eb%40googlegroups.com.


Re: [weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Tom Keffer
If Greg's suggestion doesn't work, you may have to install it using pip:

*python3 -m pip install cheetah3*

-tk

On Sat, May 9, 2020 at 11:23 PM Greg from Oz  wrote:

> You could try:
> sudo apt install -f
>
> and it might be able to fix itself?
>
> On Sunday, 10 May 2020 16:13:36 UTC+10, Kenneth Sherwood wrote:
>>
>> I'm trying to install Weewx under Mint 19.2
>>
>> I've attempted to follow both the Deb package install instructions and
>> the setup.py process. In both cases, I get hung up with an unmet
>> dependency:
>>
>>  sudo apt-get install weewx
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Some packages could not be installed. This may mean that you have
>> requested an impossible situation or if you are using the unstable
>> distribution that some required packages have not yet been created
>> or been moved out of Incoming.
>> The following information may help to resolve the situation:
>>
>> The following packages have unmet dependencies:
>>  weewx : Depends: python3-cheetah but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>>
>> Attempt to install python3-cheetah also fails:
>> sudo apt-get install python3-cheetah
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Package python3-cheetah is not available, but is referred to by another
>> package.
>> This may mean that the package is missing, has been obsoleted, or
>> is only available from another source
>>
>> ---
>> Any advice?
>>
>> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/86773a15-9890-4183-9ec7-7d81bf03902b%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/CAPq0zEDGF7x66vkajzQfFXxJx8-7cM8hZk4yZaUd%2B5T4Ss0egQ%40mail.gmail.com.


Re: [weewx-user] alarm.py causing weewx 4 to stop

2020-05-10 Thread Tom Keffer
I suspect 'rain' occasionally has the value 'None', which cannot be
compared to zero. Try this expression instead

expression = 'rain is not None and rain > 0.0'

-tk


On Sat, May 9, 2020 at 9:38 PM Ian Prescott  wrote:

> Hi I have a fineoffset usb weather station which has been running raspbian
> stretch and weewx 3.9 ok and using alarm.py with no issues.
> For weewx 4 I decided to start from fresh, new sd card, new raspbian
> buster, and a fresh weewx install.
> After a of couple learner hicups I now have weewx 4 using buster and
> python 3 up and running.
> However I have hit a wall with alarm.py
> If I use expression = "rain > 0.0" then weewx crashes.
> If I use expression = "outTemp < 30.0" then weewx keeps running but no
> email is ever received.
>
> So after a search of the forum I found this command
> sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py
> /etc/weewx/weewx.conf
> This ran ok and I got an email
>
> I have attached my weewx.conf and the log from when I start weewx to when
> it crashes using expression = "rain > 0.0".
> I have no idea how to get any useful info regarding expression = "outTemp
> < 30.0", there doesn't appear to be anything unusual in the log.
>
> Thanks
>
> and again a fantastic program and a great learning experience.
>
> --
> 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/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%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/CAPq0zEAFg%3DYBRvSkEV61nj77n%3DB%2BFmX_hw507%2BmXKv8%3D0d7cKw%40mail.gmail.com.


[weewx-user] weewx-interceptor ecowitt ws69e and WH51 battery status

2020-05-10 Thread Wifi75
Hello how I can show battet status for my ws69e statuion and wh51 
soilmoinsture sensor?


-- 
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/ff5986b3-6427-4df1-a586-3bc56e93ecac%40googlegroups.com.


[weewx-user] Handling scarce external data

2020-05-10 Thread Pila
I have added one measurement (sea temperature) to WeeWx, which I get 
probably only 3 times a day. How to handle such scarce data source? As 
there are multiple variables which should be balanced here, I would 
appreciate pointers. Small amount of data points makes for annoyingly slow 
testing. 

Theoretical maximum is 6 measurements from 7:00 to 17:00 but the frequency 
depends on the location. Temperature will vary mostly 1 deg C between 
measurements, rarely 2 degs. The number of measurements may vary. I get new 
data when it is available and my system knows know this is a new 
measurement. Currently, measurements are made at 8:00, 14:00 and 15:00. I 
have two questions.

1) I would like normal day/week/month graphs with all points connected. 
Data from my weather station is saved once in 5 minutes. I use example set 
by pond.py to read data as extraTemp1. I see 3 ways to supply the data to 
pond.py.

a) Save the data and have it available for only one reading. E.g. save it 
at 8:13, it is read by WeeWx at 8:15 and removed from pond.txt at 8:18. 
Until new data arrives, nothing is to be read by WeeWx into this field. I 
just turned this mode on to test it again.

b) I could have one reading available for one hour (or some other 
duration). 8:00 reading is being received by my system at 8:18. I can leave 
it available at pond.txt for reading 60 minutes and remove it at 9:18. No 
data is available for reading until new data is read

c) Let the data be available until replaced with the new data. This I tried 
last day and it makes for a very jagged and wrong plot. It keeps the last 
temp from yesterday (the highest) overnight and it drops suddenly at 8:00 
the next morning to the lowest temperature.

Logically, I should collect data using a) and have it plotted with line 
connected. I tried it briefly with line_gap_fraction = 0 to connect my 
scarce data points but I still had breaks.

2) on the index page where the current values are, I should always see the 
last standing value. Longest interval with no data is between 15:00 and 
8:00 the next day. This is related to above methods a) and b). In the 
skin's index.html.tmpl I tried replacing $current.extraTemp1 with 
$latest.extraTemp1 but I was getting N/A.

I limit yscale to something like 15,25,1 to see the trends better.

Maybe I was to quick in testing a) and something did not refresh or 
regenerate. Since multiple features need to be balanced, I may have failed 
to see the desired result using method a) which I am retesting again.

-- 
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/a0cb5a23-f0dd-494f-99cf-6f0a69bdaddc%40googlegroups.com.


[weewx-user] Re: Installation problem - python3-cheetah dependency

2020-05-10 Thread Greg from Oz
You could try:
sudo apt install -f

and it might be able to fix itself?

On Sunday, 10 May 2020 16:13:36 UTC+10, Kenneth Sherwood wrote:
>
> I'm trying to install Weewx under Mint 19.2
>
> I've attempted to follow both the Deb package install instructions and the 
> setup.py process. In both cases, I get hung up with an unmet dependency: 
>
>  sudo apt-get install weewx
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
>  weewx : Depends: python3-cheetah but it is not installable
> E: Unable to correct problems, you have held broken packages.
>
> Attempt to install python3-cheetah also fails: 
> sudo apt-get install python3-cheetah
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Package python3-cheetah is not available, but is referred to by another 
> package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> ---
> Any advice? 
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/86773a15-9890-4183-9ec7-7d81bf03902b%40googlegroups.com.


[weewx-user] Installation problem - python3-cheetah dependency

2020-05-10 Thread Kenneth Sherwood
I'm trying to install Weewx under Mint 19.2

I've attempted to follow both the Deb package install instructions and the 
setup.py process. In both cases, I get hung up with an unmet dependency: 

 sudo apt-get install weewx
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 weewx : Depends: python3-cheetah but it is not installable
E: Unable to correct problems, you have held broken packages.

Attempt to install python3-cheetah also fails: 
sudo apt-get install python3-cheetah
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Package python3-cheetah is not available, but is referred to by another 
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

---
Any advice? 

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1937eed2-3958-4a83-8c2a-78c6d85d6fde%40googlegroups.com.