[weewx-user] No module named configobj

2020-05-06 Thread Janez Kranjski
I'm using Weewx 4.0 on my Raspberry Pi. A computer has installed two Python versions (2.7.13 and 3.5.3). With upgraded Weewx to 4.0, I want to start using Python3. But, when I change to WEEWX_PYTHON=python3 in /etc/default/weewx and restart service, I get: May 07 07:45:10 raspberrypi

[weewx-user] Re: Adding Fine Offset WH25 and Fine Offset WH51 to SDR SENSOR MAP

2020-05-06 Thread Richard Horobin
So the keyword is -M oldmodel OK, thanks, I will try 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

Re: [weewx-user] Python versions

2020-05-06 Thread Colin Larsen
That fixed it - thanks!! My only error now is the one at service stop - no eros reported at start or while running May 7 16:24:53 raspberrypi systemd[1]: Stopping LSB: weewx weather system... May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: Received signal TERM (15). May 7 16:24:53

Re: [weewx-user] Python versions

2020-05-06 Thread Tom Keffer
Missed that. Give it another try: https://raw.githubusercontent.com/tkeffer/weewx-owm/master/bin/user/owm.py -tk On Wed, May 6, 2020 at 4:57 PM Colin Larsen wrote: > Whoops - nope, now getting this error from owm.py > > May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: OWM: >

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread gjr80
Actually, that’s not quite right. In the absence of a dateTime field the fileparse driver will use system time. If a dateTime field is provided it should override the default. The dateTime field should be an epoch timestamp, fileparse will return it as a float rather than an int, that may cause

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread gjr80
Um, fileparse does not obtain a timestamp from the file. The timestamp (WeeWX field dateTime) is taken as the WeeWX system time at the time the data file is read. Or are you using a modified fileparse driver. Gary -- You received this message because you are subscribed to the Google Groups

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread Ryan Stasel
Okay, I have most of something working using an HTTP call from Meteobridge to php that outputs a file, and fileparse parses it. Right now, thought, I'm running into an issue with the datetime field. I've tried outputting from meteobridge in "[DD]/[MM]/[],[hh]:[mm]:[ss]" and in epoch, and

Re: [weewx-user] Python versions

2020-05-06 Thread Colin Larsen
Whoops - nope, now getting this error from owm.py May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: OWM: Unexpected exception of type May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** Traceback (most recent call last): May 7 11:55:15 raspberrypi weewx[4010] ERROR

Re: [weewx-user] Python versions

2020-05-06 Thread Colin Larsen
That seems to have fixed owm - thanks! Getting this error on a restart - but no errors during the start itself May 7 11:53:05 raspberrypi weewx[3923] INFO weewx.engine: Main loop exiting. Shutting engine down. May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: Terminating weewx version

Re: [weewx-user] Python versions

2020-05-06 Thread Greg from Oz
Thanks Tom, I am converting to python3 and I am know nothing about python at all so going through the code manually for me was not an option. I just used the 2to3 and if it worked then it was ok if it didn't then I just had to delve deeper or contact the author. I built a 20.04 server Ubuntu

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

2020-05-06 Thread Hyrules
Indeed Gary was right. for example checked my last record was 1588808400 report wanted to show 1588808700 so over the last record on a record the indeed does not exists. Will fix that thanks again gentlemens for your input. On Wednesday, May 6, 2020 at 3:09:05 PM UTC-4, Hyrules wrote: > >

Re: [weewx-user] Python versions

2020-05-06 Thread Tom Keffer
The problem with 2to3 is that the results are Python 3 only. The tool python-modernize does a little better and its results will run under 2 or 3, but they will also depend on the library 'six'. Drivers and uploaders are especially tricky

Re: [weewx-user] Python versions

2020-05-06 Thread Greg from Oz
I have run a program called 2to3 python converter program on some of the python2 scripts and it fixed most of the problems and did the conversion to the python3 syntax. example: 2to3 -w /usr/share/weewx/user/owm.py On Wednesday, 6 May 2020 12:31:23 UTC+10, Colin Larsen wrote: > > Fixed that

Re: [weewx-user] Python versions

2020-05-06 Thread Tom Keffer
I did a quick port. Try this version of owm.py: https://raw.githubusercontent.com/tkeffer/weewx-owm/master/bin/user/owm.py On Wed, May 6, 2020 at 2:23 PM Colin Larsen wrote: > Righto, back to Python2 it is, apologies for asking but hadn't seen this > one before. > > Cheers and thanks > Colin >

Re: [weewx-user] Python versions

2020-05-06 Thread Colin Larsen
Righto, back to Python2 it is, apologies for asking but hadn't seen this one before. Cheers and thanks Colin On Thu, 7 May 2020, 02:32 vince, wrote: > On Tuesday, May 5, 2020 at 7:31:23 PM UTC-7, Colin Larsen wrote: >> >> >> May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__:

[weewx-user] Re: Installing Weewx 4, Belchertown 1.1 and MQTT from scratch. Almost fully succesful (fails on python-cjson)

2020-05-06 Thread Maarten van der Hoeven
Update by myself. In stead of trying to install python-cjson, I succeeded with installing sudo pip3 install ujson All set now, data published live on my webpage. Op woensdag 6 mei 2020 22:27:37 UTC+2 schreef Maarten van der Hoeven: > > Hi, > > hard disc crashed, rebuilding the complete

[weewx-user] Re: ImageGenerator to generate historical plots (not actual, week, month, year, but every month, every year)

2020-05-06 Thread Andrea
try this. You have to put skin.conf in your images directory. In imagegenerator you can find the code as "by Andrea" related to previous year and previous month of the year before. If you are able to modified the code you can get what you want. Here is the webpage with the previous year graph.

[weewx-user] Installing Weewx 4, Belchertown 1.1 and MQTT from scratch. Almost fully succesful (fails on python-cjson)

2020-05-06 Thread Maarten van der Hoeven
Hi, hard disc crashed, rebuilding the complete environment. Backup was sound, no data lost. Running Ubuntu 20.04, installed Weewx4 with python 3, Belchertown 1.1 skin succesfully implemented. Got mosquitto running okay. Now busy implementing weewx-mqtt. Instuctions: sudo pip3 install

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Jarda Uher
Hi Bob, ahoj Pavle Once again I checked setting weewx with wee_config --list-drivers and I really had the original version 0.1 drivers. After a new installation and check, everything is fine, version 0.2 also reads the external sensor on channel 1. There is a link to the functional output

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Pavel Pavlik
Ahoj Jardo, There should be 7 columns, not just the three you mentioned. Can you see the values of ch1 on the display of the station? If so, the problem could be in the wrong version of the driver. In that case you should try reinstalling the driver. Good luck. Pavel Dne středa 6. května

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

2020-05-06 Thread hyrules
Interesting Gary. Makes a lot of sense. I will try that and let you know what happens. Thanks for your input -Original Message- From: weewx-user@googlegroups.com On Behalf Of gjr80 Sent: May 6, 2020 14:48 To: weewx-user Subject: Re: [weewx-user] Issue with a report last values are

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Jarda Uher
Ahoj Pavle I also browsed the database, (DB Browser for SQLite) there are extraTemp1,2,3 items but they are null. These are missing in the csv file. Jarda Dne středa 6. května 2020 20:26:24 UTC+2 Pavel Pavlik napsal(a): > > Ahoj Jardo, > > Sure, firstly I tried to read the db there some way but

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Jarda Uher
Hi Bob I was looking into the syslog, but I didn't see the sensor data. I have a functional sensor on the console on channel 1. I installed version 0.2 of the driver, but I don't have raspbery pi, but the system runs on Ubuntu 18.04 Dne středa 6. května 2020 19:52:52 UTC+2 Bob Atchley

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

2020-05-06 Thread gjr80
Hi, I would hazard a guess and say your issue is using datetime.datetime.now() in your search list extension. That time is being used as your stop/end time for the report and is (roughly) the time the report is run. This will be after the current (and last) record in the archive. So when the

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread Ryan Stasel
O... this is cool! I could always have weewx relay the info to Wunderground (send meteobridge to weewx via the listen driver, then have weewx send to wunderground). I'm not seeing a way to point meteobridge at a different IP, but it could be stashed away somewhere, or as stated, hijack

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Pavel Pavlik
Ahoj Jardo, Sure, firstly I tried to read the db there some way but unfortunately I was not able to make it properly so I used the plugin to dump it to csv file. I suppose you did the same, it is really easy to install. So the question is: does your csv file have the columns named ExtraTempX

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Bob Atchley
Hi Jarda, Pavel seems to think it might be working, so I'll wait until he finishes testing before I look further but a few questions for you: If you look in the /var/log/syslog file on your raspberry pi are the extra sensor data set to None or do they have values ? Do you see the extra sensor

[weewx-user] Re: ImageGenerator to generate historical plots (not actual, week, month, year, but every month, every year)

2020-05-06 Thread Tomáš Filo
And i would by nice to have this feature as part of ImageGenerator. Configurable from skin. For now when I want to generate images for historical records I use "wee_reports weewx.conf timestamp" and custom weewx.conf and skin to generate just hostorical plots. It works but it is workaround.

Re: [weewx-user] Import from Weathercat

2020-05-06 Thread Ville Helander
Ok, No problem with waiting, just wanted to hear somethink of WeatherCat import state. But it sound’s promising! -Ville- > gjr80 kirjoitti 6.5.2020 kello 15.36: > > Hi Ville, > > My apologies that WeatherCat support for wee_import did not make it into > 4.0.0. However, I have started

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

2020-05-06 Thread Tom Keffer
Then you should feel right at home. PyCharm is extremely powerful. On Wed, May 6, 2020 at 9:38 AM wrote: > PyCharm why didn’t think of that IDE. I know jetbrains I`ve used their > tools like Resharper for C#. > > > > Thanks. > > > > *From:* weewx-user@googlegroups.com *On > Behalf Of *Tom

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

2020-05-06 Thread hyrules
PyCharm why didn’t think of that IDE. I know jetbrains I`ve used their tools like Resharper for C#. Thanks. From: weewx-user@googlegroups.com On Behalf Of Tom Keffer Sent: May 6, 2020 12:34 To: weewx-user Subject: Re: [weewx-user] Issue with a report last values are Zero

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

2020-05-06 Thread Tom Keffer
Personally, I use PyCharm , but it's probably overkill for what you need. Just sprinkle print() statements in your code and make sure it's getting the values you think it should. -tk On Wed, May 6, 2020 at 9:32 AM wrote: > Roger that. What would be the best

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

2020-05-06 Thread hyrules
Roger that. What would be the best way for me to debug this ? Do you have a setup to recommend. It’s been my main issue debugging this python in Weewx. Since my knowledge lacks in debugging a linux environment I`ve been looking mostly at the logs of weewx but surely you must have some kind of

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

2020-05-06 Thread Tom Keffer
At first glance, I'd say this is an "off-by-one " problem, but there's way too much for me to debug. It's also as a screenshot, so I can't even look at it in an editor. Sorry. I would suggest running it with a good debugger, or using lots of print()

[weewx-user] Re: ImageGenerator to generate historical plots (not actual, week, month, year, but every month, every year)

2020-05-06 Thread Tomáš Filo
Thank's for replay, where cat I find this implementation ? Dňa streda, 6. mája 2020 17:36:03 UTC+2 Andrea napísal(a): > > I have implemented report for an year before or the month of the year > before. Probably it can be simple adjust to have what you ask. > > Il giorno mercoledì 6 maggio 2020

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

2020-05-06 Thread Hyrules
from __future__ import with_statement from importlib import reload import datetime import time import calendar import json import os import os.path import syslog import sys import locale import weewx import weecfg import configobj import weedb import weeutil.weeutil import weewx.reportengine

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

2020-05-06 Thread Hyrules
You are right can read my mind : Here is the report : #errorCatcher Echo #import weewx.uwxutils as utils #import user.weathercalc as wc #set $D="%d/%m/%y" #set $Time="%I:%M%p" #set $N50f="%5.0f" #set $N51f="%5.1f" #set $N52f="%5.2f" #set $NONE0F="0" #set $NONE1F="0.0" #set $NA="N/A" #set

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

2020-05-06 Thread Tom Keffer
I have no idea what I'm looking at, what time this report was run, what the report is, nor how to reproduce it. On Wed, May 6, 2020 at 8:17 AM Hyrules wrote: > I have a report that generates results for the last 2 days in data. The > report is scheduled to run every 15 minutes with a custom

[weewx-user] Re: ImageGenerator to generate historical plots (not actual, week, month, year, but every month, every year)

2020-05-06 Thread Andrea
I have implemented report for an year before or the month of the year before. Probably it can be simple adjust to have what you ask. Il giorno mercoledì 6 maggio 2020 17:17:18 UTC+2, Tomáš Filo ha scritto: > > Hello, Is it possible to force ImageGenerator to generate images not for > only last

[weewx-user] Re: Adding Fine Offset WH25 and Fine Offset WH51 to SDR SENSOR MAP

2020-05-06 Thread Allen Wilson
I just set this up yesterday, It's an issue with the way the sdr.py parses the output of rtl_433. The author of rtl_433 has changed the names 'model:' of the decoded msgs, maybe other stuff as well. The parsers will need to be updated for sdr.py. There is a simple solution to get it working

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

2020-05-06 Thread Hyrules
I have a report that generates results for the last 2 days in data. The report is scheduled to run every 15 minutes with a custom report_timing. Report is execting properly but the last value of the report is always zero [[HydroMeteoReport]] skin = hydrometeo enable = true

[weewx-user] ImageGenerator to generate historical plots (not actual, week, month, year, but every month, every year)

2020-05-06 Thread Tomáš Filo
Hello, Is it possible to force ImageGenerator to generate images not for only last day, week, month, year but for every month and year. I use instead of text NOAA html templates. And I would like to display plosts for every month and year possible. Now I have daytempdew.png, monthtempdew.png

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Jarda Uher
Ahoj Pavle, hi Bob Pavle thanks for the tip on csv. But even though I have a sensor connected on channel 1, but I don't see it in the protocol. Jarda Dne středa 6. května 2020 13:40:16 UTC+2 Pavel Pavlik napsal(a): > > Hi Bob, ahoj Jardo, > > I am apologize for the delay with the testing

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread mwall
On Wednesday, May 6, 2020 at 10:46:21 AM UTC-4, Ryan Stasel wrote: > > > Was curious if there was another way, where Meteobridge remained > "authoritative" (so to speak) and just handed data to weewx. > you could use the weewx-interceptor driver as device 'wuclient' in listen mode, then point

Re: [weewx-user] Re: Forecast from UKMO no longer working after upgrade to V4 of weewx

2020-05-06 Thread John Kline
I just tried this. If one clicks the download button from the repository, the file “weewx-forecast-master.zip” is downloaded. I’ve changed the instructions to match that. -wee_extension --install weewx-forecast.zip +wee_extension --install weewx-forecast-master.zip BTW, instead of renaming

Re: [weewx-user] Re: Problems to read data from WMR928NX with weewx (Newbie)

2020-05-06 Thread Tom Keffer
Commit 9844b6b -tk On Wed, May 6, 2020 at 6:06 AM westwind wrote: > Oh, thanks! > > It seems to work!!! > > > > Am Mittwoch, 6. Mai 2020 11:21:51 UTC+2 schrieb westwind: >> >> Hi all, >> >> found weewx yesterday

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread Ryan Stasel
Right, but that hands "Control" of the station over to weewx, which I'm trying to avoid (and why I'm trying to stop using weathercat, which is currently accessing my station that way). That is, according to Boris, the Meteobridge author. Was curious if there was another way, where Meteobridge

Re: [weewx-user] Python versions

2020-05-06 Thread vince
On Tuesday, May 5, 2020 at 7:31:23 PM UTC-7, Colin Larsen wrote: > > > May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: > except > KeyError, e: > > May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: > ^ > > May 6 14:29:07 raspberrypi

Re: [weewx-user] Re: Forecast from UKMO no longer working after upgrade to V4 of weewx

2020-05-06 Thread Chris Weakland
Never mind, I got it sorted out, you just have to download the zip file of the repo. https://github.com/chaunceygardiner/weewx-forecast/archive/master.zip Then rename it weewx-forecast.zip On Wednesday, May 6, 2020 at 10:10:41 AM UTC-4, Chris Weakland wrote: > > Where can one download the

Re: [weewx-user] Re: Forecast from UKMO no longer working after upgrade to V4 of weewx

2020-05-06 Thread Chris Weakland
Where can one download the the weewx-forecast.zip file? I cannot seem to find it on the page referenced above. The instructions state: wee_extension --install weewx-forecast.zip Thanks again! On Tuesday, May 5, 2020 at 6:15:26 AM UTC-4, Phil Owers wrote: > > Just leave it. P > > On Mon, 4

[weewx-user] Re: Problems to read data from WMR928NX with weewx (Newbie)

2020-05-06 Thread westwind
Oh, thanks! It seems to work!!! Am Mittwoch, 6. Mai 2020 11:21:51 UTC+2 schrieb westwind: > > Hi all, > > found weewx yesterday and decided to try it with my old WMR928NX on a > debian buster server. > > This is the section I modified in the .conf-File: > > > > > > > > > > > > > > > > > > > >

Re: [weewx-user] Import from Weathercat

2020-05-06 Thread gjr80
Hi Ville, My apologies that WeatherCat support for wee_import did not make it into 4.0.0. However, I have started adding back the the WeatherCat code that removed back in 2017. I see no reason why it will not appear in the next release. I will certainly get you to do some testing, my sample

Re: [weewx-user] Problems to read data from WMR928NX with weewx (Newbie)

2020-05-06 Thread Tom Keffer
You're not doing anything wrong. It's a bug: the driver was not completely ported to Python 3. replace your copy of /usr/share/weewx/weewx/drivers/wmr9x8.py with the attached. There may other bugs in there, but we'll figure them out. -tk On Wed, May 6, 2020 at 2:21 AM westwind wrote: > Hi

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Pavel Pavlik
Hi Bob, ahoj Jardo, I am apologize for the delay with the testing promised, had to go out for business, have tested the driver just partially. I managed to connect just one of the external sensors I have and now I can see its output in csv file (https://github.com/weewx/weewx/wiki/csv), both

[weewx-user] Re: Version 4.0 is (finally) here!

2020-05-06 Thread Clay Croom
Thank you Tom for all the work on this project. Just wanted to let you know that my upgrade went just fine but I took what felt to me as the safe route to upgrade to Python3. I elected to purge the 3.9 installation keeping the data file. I updated the repository for python3 as instructed

[weewx-user] Re: Version 4.0 is (finally) here!

2020-05-06 Thread Clay Croom
On Thursday, April 30, 2020 at 1:09:47 PM UTC-4, Tom Keffer wrote: > > After months of waiting, Version 4 has finally arrived! The major new > feature is that WeeWX will not run under either Python 2 or Python 3. > > It took a long time to get the packaging right but now, thanks to Matthew >

[weewx-user] Re: Weather station GARNI 935PC - compatibility with Weewx?

2020-05-06 Thread Jarda Uher
Hi Bob Thanks for the reply. I checked weewx.sdb and I think there is no data from the external sensor. Only inTemp, outTemp have values, extraTemp1,2,3 have null. thank you Jarda Dne neděle 3. května 2020 19:51:43 UTC+2 Bob Atchley napsal(a): > > > Hi Jarda, > > Very glad the WS6in1 driver is

[weewx-user] Problems to read data from WMR928NX with weewx (Newbie)

2020-05-06 Thread westwind
Hi all, found weewx yesterday and decided to try it with my old WMR928NX on a debian buster server. This is the section I modified in the .conf-File: *# Set to type of station hardware. There must be a corresponding stanza# in this file with a 'driver'

[weewx-user] Re: Feeding weewx from Meteobridge

2020-05-06 Thread Jacques Terrettaz
Hi, The Meteobridge Nano SD emulates the network connectivity of a standard Davis IP datalogger. You can therefore configure weewx with the Vantage driver, with ethernet connection at the IP address of your Meteobridge Nano SD and using port 2. Le mercredi 6 mai 2020 03:53:52 UTC+2, Ryan

Re: [weewx-user] [weewx-development] Feature Request : Add calculate method standard OMM on daily database

2020-05-06 Thread Graham Eddy
will try thank - thanks > On 6 May 2020, at 3:49 pm, John Smith wrote: > > On Wednesday, 6 May 2020 15:01:20 UTC+10, Graham Eddy wrote: > “seek, and ye shall find” :-) > > anything out there for 9am-9am the *previous* day? (or even since 9am > yesterday so i can subtract since 9am today) > >

Re: [weewx-user] Import from Weathercat

2020-05-06 Thread Ville Helander
Hello Gary and all, WeeWX 4 is released, thank you for all the hard work everyone has made!! I see that import from WeatherCat is not included there and would like to know is there happening any progress for making import working? I can test the importing when there is somethink to test. :)