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

2020-05-10 Thread Rolf Zanchettin
Hey Tom, many thanks for the clarification. Best regards, Rolf Am Sonntag, 10. Mai 2020 18:39:44 UTC+2 schrieb 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 i

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

[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 calculate

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

[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 expressio

[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/w

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 onl

[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 yo

[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

[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 offici

[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/4

[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 package

[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 l

[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

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 th

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

[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 mes

[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

[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@sh

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

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 instructi

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'

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 templat

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 specifie

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

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 wro

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.

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

[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

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, th

[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? > >

[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 cop

[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

[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? Than

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 t

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

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

[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 plu

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

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

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

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

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):

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

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

[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...@go

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