Re: [weewx-user] Data export to csv

2020-04-22 Thread Thomas Keffer
If you need to export to CSV only once, then there is no need to convert the database. Just make a copy, convert that, export to CSV, then throw the copy away. Otherwise, if you expect to do this regularly, then, yes, convert and use the converted database. There should be no problems with

Re: [weewx-user] Re: Need help with error message

2020-04-21 Thread Thomas Keffer
You want the IP address of the WeatherLinkIP, not your computer. You may be able to figure it out by logging into your router and looking for 'attached devices' (or something similar). -tk On Tue, Apr 21, 2020 at 4:17 PM Peter Ten Eyck wrote: > Not sure I follow... "WeatherLinux box in it" ?

Re: [weewx-user] Re: fileparse polling interval

2020-04-21 Thread Thomas Keffer
Sounds like an interesting project. On Tue, Apr 21, 2020 at 5:53 AM jf42 wrote: > My station is a german "MWS 55V", which is read out by a Python program, > writing the data to a tcp port. Another computer > collects the data, does a quality check, many other stuff, and writes a > file. Weewx

Re: [weewx-user] Current / daily graphs are empty...

2020-04-21 Thread Thomas Keffer
1. If you're going to customize your skin (and you should), then it's worth reading through the *Customizing Guide *. See the section [[TimeFormats]] for how to customize times. 2. On your

Re: [weewx-user] Re: fileparse polling interval

2020-04-21 Thread Thomas Keffer
In theory, yes, you will be able to use an archive interval of less than a minute. But, some weather stations emit data only every 30-60 seconds or so and, even then, not all data. On Tue, Apr 21, 2020 at 5:01 AM jf42 wrote: > Thanks for the info. > > Seems that with Version 4 archive intervals

Re: [weewx-user] Current / daily graphs are empty...

2020-04-21 Thread Thomas Keffer
Gary's diagnosis is correct. If you look closely at your "Current" plots, there are, in fact, dots in there. They are just not connected. Change the option line_gap_fraction in skin.conf to 0.1. That should cure the problem. -tk On Tue, Apr 21, 2020 at 5:05 AM Tor Tveitane wrote: > Sorry

Re: [weewx-user] Current / daily graphs are empty...

2020-04-21 Thread Thomas Keffer
m. > > Thanks again for comments on this. > > best regards Tor > > > tirsdag 21. april 2020 12.59.21 UTC+2 skrev Thomas Keffer følgende: >> >> Hello, Tor >> >> You're not giving us much information to go on. >> >> What kind of weather s

Re: [weewx-user] Current / daily graphs are empty...

2020-04-21 Thread Thomas Keffer
Hello, Tor You're not giving us much information to go on. What kind of weather station? Which skin? Have you modified it? Have you checked the timestamps of the generated daily HTML files? Are they, in fact, recent? What kind of database (sqlite or MySQL)? Have you checked the database to make

Re: [weewx-user] wee_config not working

2020-04-20 Thread Thomas Keffer
1. The files in Skins/Standard are the *templates*, not the final HTML files. The HTML files will appear in /home/weewx/public_html. If they did not, then you need to send the log. See Help! Posting to weewx-user for how to get a

Re: [weewx-user] Re: fileparse polling interval

2020-04-20 Thread Thomas Keffer
In V3.x, the option archive_interval must divide evenly into an hour. Version 4.X will remove that restriction. See Issue #469 . -tk On Mon, Apr 20, 2020 at 6:58 AM jf42 wrote: > Addition: > > I found my mistake: archive_interval was 60 in weewx.conf

Re: [weewx-user] Retrieving all archive records for the past 24 hours

2020-04-19 Thread Thomas Keffer
If you put the template in the [[ToDate]] section it should do what you want. NB: $day is *since midnight*. If you want the last 24 hours, you probably want $span($day_delta=1).records. On Sat, Apr 18, 2020 at 8:17 PM Ken C wrote: > > Hello, > > Is it possible to create a template that outputs

Re: [weewx-user] Updating historical data in database?

2020-04-18 Thread Thomas Keffer
Why not just swap the columns around? UPDATE archive SET outHumidity=inHumidity, inHumidity=outHumidity; Then drop and rebuild the daily summaries. -tk On Sat, Apr 18, 2020 at 10:03 AM Steve Preston wrote: > I just realized that I imported a few years of data from WLK files where I >

Re: [weewx-user] "yesterday.outTemp" compared to "current.outTemp", et seq, for Yesterday page

2020-04-18 Thread Thomas Keffer
il 18, 2020 at 9:44:43 AM UTC+2, Andrew Milner wrote: >> >> set time_length to the required value (86400*2 for 48 hours) for the >> required plot(s) >> http://weewx.com/docs/customizing.htm#Time_periods >> >> >> >> On Saturday, 18 April 2020 06:51:03

Re: [weewx-user] "yesterday.outTemp" compared to "current.outTemp", et seq, for Yesterday page

2020-04-17 Thread Thomas Keffer
>> >> On Friday, April 17, 2020 at 4:18:33 PM UTC+2, Thomas Keffer wrote: >>> >>> The two tags serve different purposes. The tag $yesterday represents an >>> *aggregation* over the day. The tag $current represents a single >>> record. T

Re: [weewx-user] "yesterday.outTemp" compared to "current.outTemp", et seq, for Yesterday page

2020-04-17 Thread Thomas Keffer
The two tags serve different purposes. The tag $yesterday represents an *aggregation* over the day. The tag $current represents a single record. There is an undocumented feature in v3.9.2 (documented in V4.0) that gets you what you want: The temperature 24 hours ago was

Re: [weewx-user] wee_import CSV interval = 1 vs. archive_interval = 300?

2020-04-16 Thread Thomas Keffer
Hi, Bill. 1. WeeWX can handle mixed intervals. 2. The time, field dateTime, is indexed, so it does not slow down reports as much as you think. My database is about 1.5 M records and it performs fine on a very slow machine. The exception is queries that involving finding the min and max of the

Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-15 Thread Thomas Keffer
Glad to hear it! On Wed, Apr 15, 2020 at 8:14 AM wrote: > Resetting totals cleared the issue. I reset. Put some water through the > gauge, rain amounts on the device and weewx now agree. > > Thank you, very much. > > Scott > > Sent from my iPhone > > On Apr 15, 2

Re: [weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread Thomas Keffer
The RPi generally does not come with a copy of the client "ftp". However, you can install it sudo apt install ftp -tk On Wed, Apr 15, 2020 at 12:43 AM chris op wrote: > Can I edit my posts here? > > Thanks, Greg! > > I was able to connect to the ftp server and to place the correct >

Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-15 Thread Thomas Keffer
rain total. > The value for that field in the serial debug is 30 30 44 41 or 0x00da or > 218 decimal (2.18) inches, yet WeeWx is reporting 0.0 > > > Sent from my iPhone > > > On Apr 13, 2020, at 6:41 PM, Thomas Keffer wrote: > > > > 46 46 46 46 > > -- >

Re: [weewx-user] Importing WLK files from Davis Instruments WeatherLink software

2020-04-14 Thread Thomas Keffer
That's great, Steve! The old way was to use a very out-of-date utility that came with wview. Nice to have something more modern. Could you make an entry in the wiki about your app? -tk On Tue, Apr 14, 2020 at 3:24 PM Steve Preston wrote: > This is just a

Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-13 Thread Thomas Keffer
The debug serial line you included is: Apr 12 17:53:05 raspberrypi weewx[5222]: ultimeter: station said: 21 21 30 30 35 46 30 30 33 32 30 32 32 39 46 46 46 46 32 37 30 34 30 32 46 37 30 33 41 30 2D 2D 2D 2D 30 30 36 36 30 33 46 35 30 30 44 41 30 30 30 30 0D 0A These are hexadecimal values coded

Re: [weewx-user] Simplest method to read in an external data element and apply it to an existing Archive type

2020-04-13 Thread Thomas Keffer
1, saw it add the service > (and now the new .pyc exists in user), and it's reading the data into > weewx.sdb. Now it's a simple matter of editing my skins to add the > parameter. > Thanks --Phil > > On Monday, April 13, 2020 at 2:42:05 PM UTC+2, Thomas Keffer wrote: >>

Re: [weewx-user] Simplest method to read in an external data element and apply it to an existing Archive type

2020-04-13 Thread Thomas Keffer
You want something like: with open('/path/to/file') as f: value = f.readline().strip() event.record['leafTemp1'] = float(value) if value != '' else None Or, use filepile , although that would require you to change the format of your data

Re: [weewx-user] Too many NOAA reports

2020-04-12 Thread Thomas Keffer
I'm not familiar with the Belchertown skin, but if it works like other skins, the NOAA reports are generated from the earliest timestamp in the database to the last timestamp. So, you must have a very early timestamp in your database. -tk On Sun, Apr 12, 2020 at 7:46 AM Duncan Wilson wrote: >

Re: [weewx-user] Future date/times into database resulting in loss of data

2020-04-09 Thread Thomas Keffer
Hi, Ken Problem #1 is almost surely a hardware problem. Have you put ferrite coils around the cable from your logger to the computer? A UPS also helps. If you are still getting random corruption in the logger memory, then the logger may be defective. Problem #2: a graphic is regenerated only as

Re: [weewx-user] Auto refresh page.

2020-04-08 Thread Thomas Keffer
If the Refresh meta directive is in your template, but it's not appearing in the corresponding generated HTML page, then either the page is not actually getting regenerated, or you're looking at the wrong page. You will have to post the log. See the Wiki article *Help!

Re: [weewx-user] Get average or previous value?

2020-04-07 Thread Thomas Keffer
Hello, Jens Unfortunately, no, the StdQC service can only detect out of bounds, not big changes or spikes. You would have to modify it, or write your own service to do that. On Tue, Apr 7, 2020 at 6:28 AM 'Jens-Jørgen Kjærgaard' via weewx-user < weewx-user@googlegroups.com> wrote: > I have been

Re: [weewx-user] Re: weewx beta version 4.0.0b18

2020-04-07 Thread Thomas Keffer
Either way of specifying a schema should work with V4. If it's not, that's a bug. On Tue, Apr 7, 2020 at 6:36 AM gjr80 wrote: > V4 actually uses the wview_extended schema which is specified in a > slightly different format to that used in V3. Pat's instructions are V3 > specific. Try using the

Re: [weewx-user] Alltime/ skins

2020-04-07 Thread Thomas Keffer
You actually already have it! It's located in your examples subdirectory, file /usr/share/doc/weewx/examples/stats.py. Documentation is in the section *Extending the list * in the Customization Guide. On Tue, Apr 7, 2020 at 2:57 AM

Re: [weewx-user] Re: weewx beta version 4.0.0b18

2020-04-07 Thread Thomas Keffer
Gary, Makes sense. To gather data for a plot, version 3.9 called Manager.getSqlVectors(), which hit the database. Only types that appear in the database schema can be plotted. Because many databases are case-insensitive, rainRate and rainrate are treated the same, so it works. By contrast,

Re: [weewx-user] Re: weewx beta version 4.0.0b18

2020-04-06 Thread Thomas Keffer
As far as weewx is concerned, it's always been rainRate. I don't know how Steelgauges works, but it's possible it's only used in case-insensitive database queries. -tk On Mon, Apr 6, 2020 at 8:12 AM Phil Owers wrote: > This is interesting > I have a pi running 3.9.2 (Python2) which runs OK

Re: [weewx-user] Re: weewx beta version 4.0.0b18

2020-04-06 Thread Thomas Keffer
As Gary noted, it's rainRate, not rainrate. Case matters. -tk On Mon, Apr 6, 2020 at 6:44 AM Phil Owers wrote: > Here is the log > > Apr 6 14:40:17 raspberrypi weewx[612] ERROR weewx.reportengine: Caught > unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator' > Apr 6

Re: [weewx-user] Thanks a Lot Darksky (NOT!!)

2020-04-05 Thread Thomas Keffer
With all respect Steve, but what did you pay for the Dark Sky API services? It was certainly a nice service, but they don't owe us anything. And I, for one, am a very happy Apple customer. On Sun, Apr 5, 2020 at 9:24 AM Steve2Q wrote: > I have been using Darksky for over a year now and have

Re: [weewx-user] Modifying pyephem Date format on Celestial page?

2020-04-03 Thread Thomas Keffer
Hello, Pete See section [[TimeFormats]] in the Customizing Guide. In particular, options ephem_day and ephem_year. On Fri, Apr 3, 2020 at 9:38 AM pbartko wrote: > Longtime weewx user, but just reinstalled weewx 3.9.2 on Raspberry pi

Re: [weewx-user] Davis Vantage Problem

2020-04-02 Thread Thomas Keffer
Things to try: 1. It's possible the the logger was disturbed when you replaced the batteries. Try reseating it in the Envoy. 2. Your symptoms don't quite fit the usual pattern of corrupt memory, but it's worth trying to clear the memory of the logger anyway. Follow the directions under Corrupt

Re: [weewx-user] Re: weewx 4.0.0b16 stopped working at 02:00 this morning

2020-03-29 Thread Thomas Keffer
Ian: did you look at the Wiki article *Troubleshooting the Davis Vantage stations*, specifically the section *WeeWX generates HTML pages but does not update them *

Re: [weewx-user] weewx 4.0.0b16 stopped working at 02:00 this morning

2020-03-29 Thread Thomas Keffer
I'm not sure what I'm looking at here. I see none of the familiar Vantage chatter, just something about vncserver? What's that? On Sun, Mar 29, 2020 at 4:21 AM Mike Revitt wrote: > when the clocks changed this morning weewx stopped downloading data from > my Vantage Pro, or at least appeared to

Re: [weewx-user] Re: wee_import csv problem "csv.Error: line contains NULL byte"

2020-03-28 Thread Thomas Keffer
Good sleuthing, Bob! With Gary's modifications, the user will be able to specify the encoding of the import file, avoiding the need to translate it. On Sat, Mar 28, 2020 at 10:31 AM Bob Atchley wrote: > Hi Janne, > > I've carried out a similar import from my Youshiko weather station and >

Re: [weewx-user] Re: ephem does not work

2020-03-28 Thread Thomas Keffer
WeeWX V4, which will support Python 3, has not been released yet. While a beta version is available, it can only be installed using the setup.py method. You should wait. -tk On Sat, Mar 28, 2020 at 5:18 AM Astrid wrote: > Hello! > > Thank you very much for your hints. :) > I want to deinstall

Re: [weewx-user] Re: ephem does not work

2020-03-28 Thread Thomas Keffer
Thanks, Astrid. I was able to replicated this on my Leap 15.1 machine. It comes with Python 3, which sets "pip" to point to the Python 3 version of pip. If you then install Python 2, the command "python" now points to the Python 2 version. So, you end up with one pointing one way, the other the

Re: [weewx-user] WeeWX on RPi with custom hardware based on I2C sensors

2020-03-27 Thread Thomas Keffer
WeeWX blocks on queries to the sensors, so it responds as fast as the sensor emits data. Once per second should be fine on all but the slowest of platforms. WeeWX V3.9 runs on Python 2.x only. Version 4.x (due RSN), runs on either. It's pretty stable. You can find betas in the development

Re: [weewx-user] Re: ephem does not work

2020-03-27 Thread Thomas Keffer
Are you saying that "pip" installed pyephem in a Python 3.x location, but the command "python" invokes Python 2.x? -tk On Fri, Mar 27, 2020 at 11:22 AM Astrid wrote: > Hello! > > I got it. :) > I found that there is a pip2.7. > I am a little bit confused with the version... > If I say pyton it

Re: [weewx-user] ephem does not work

2020-03-27 Thread Thomas Keffer
You're not giving a lot of information, but it's possible that pip installed pyephem a different version of python that the version you are using to run weewxd. Try this: *pip show pyephem* It will show you where pip installed pyephem. Then try this: *python -c "import sys; print(sys.path)"*

Re: [weewx-user] Average WX local historical data to compare?

2020-03-27 Thread Thomas Keffer
This would be a useful feature but, unfortunately, it does not exist in WeeWX. You would have to write a search list extension. -tk On Thu, Mar 26, 2020 at 6:46 PM Xant wrote: > > I'm in the UpstateNY, where weather behaviour indeed awkward (specially > recently) Mix of warm days, recent

Re: [weewx-user] Re: weewx division by zero error

2020-03-25 Thread Thomas Keffer
WeeWX V3.x does not support archive intervals less than 60 seconds. WeeWX V4 will. However, very few weather stations have LOOP packets that come fast enough to allow that short of an interval. -tk On Wed, Mar 25, 2020 at 4:09 PM Jeff Ross wrote: > 30 seconds > > On Wednesday, March 25, 2020

Re: [weewx-user] weewx division by zero error

2020-03-25 Thread Thomas Keffer
What are you using for an archive interval? To check, set debug=1, then restart the program. Look for a line such as Using archive interval of 60 seconds (specified in weewx configuration) -tk On Wed, Mar 25, 2020 at 3:52 PM Jeff Ross wrote: > Getting the following error on weewx 3.9.2: > >

Re: [weewx-user] Re: different behaiviour of manually wee_reports and automatic generation,

2020-03-25 Thread Thomas Keffer
I suspect the environment variable LANG is not being set by whatever shell is starting your daemon. An easy fix is to go into /usr/share/weewx/user/extension.py and change this import locale # This will use the locale specified by the environment variable 'LANG' # Other options are possible.

Re: [weewx-user] different behaiviour of manually wee_reports and automatic generation,

2020-03-25 Thread Thomas Keffer
Did you set the environment variable LANG? See the manual . -tk On Wed, Mar 25, 2020 at 7:54 AM Astrid wrote: > Hello! > > I am using weex 3.9.2 and Standard-Skin. > German location. > > If I use from commandline

Re: [weewx-user] Re: ftp does not work

2020-03-24 Thread Thomas Keffer
The FTP "skin" is not a regular "skin". Unlike other skins, such as Standard, it does not produce graphs and HTML pages. Instead, it uses the reportgenerator machinery to move files via FTP. The option "skin" under [[FTP]] is there so reportgenerator can find what it needs to run FTP. It does NOT

Re: [weewx-user] Re: ftp does not work

2020-03-23 Thread Thomas Keffer
Sorry. That link did not take. Let me try again. Read the [[FTP]] <http://www.weewx.com/docs/usersguide.htm#config_FTP> section of the manual. On Mon, Mar 23, 2020 at 1:51 PM Thomas Keffer wrote: > I understand your point. Read the [[FTP]] section of the manual. > > On Mon, Mar

Re: [weewx-user] Re: ftp does not work

2020-03-23 Thread Thomas Keffer
I understand your point. Read the [[FTP]] section of the manual. On Mon, Mar 23, 2020 at 12:49 PM Astrid wrote: > Hello! > > Thanx. I will try it. > But I want the skin "Standard" for uploding to ftp. > I do _not_ want to use the skin Ftp. > How can I get this? > > Regards, Astrid > > -- > You

Re: [weewx-user] Re: ftp does not work

2020-03-23 Thread Thomas Keffer
Astrid, slow down there! You're just changing things randomly. Start with the copy of weewx.conf that was installed, then follow the directions in the User's Guide. You should end up with something like... [[FTP]] # FTP'ing the results to a webserver is treated as just another

Re: [weewx-user] Re: 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-23 Thread Thomas Keffer
Nothing unusual there. Best guess is that this is a Debian dependency bug in python-pil , that carried over into python3-pil. Cheers, -tk On Mon, Mar 23, 2020 at 9:36 AM Michael wrote: > *apt list python3-pil* > > pi@raspi02:~ $ apt

Re: [weewx-user] Re: ftp does not work

2020-03-23 Thread Thomas Keffer
I really do not know. I am not an OpenSUSE expert, but I assume "journalctl -b" would show you messages since the last boot. However, if you changed your logging facility, then I have no way of knowing. On Mon, Mar 23, 2020 at 9:18 AM Astrid wrote: > Hello! > > Thanx for your reply. > In

Re: [weewx-user] Re: 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-23 Thread Thomas Keffer
Hmm, I wonder where the dependency on libopenjp2 came from? Could you run these commands? apt list python3-pil apt show python3-pil cat /etc/issue On Mon, Mar 23, 2020 at 8:09 AM Michael wrote: > here it is...: > > pi@raspi02:~ $ python3 -c "import Image" > Traceback (most recent call last): >

Re: [weewx-user] fileparse.py does not work

2020-03-23 Thread Thomas Keffer
You are using fileparse.py from the master branch on GitHub, which is part of WeeWX V4, not WeeWX V3. Either use the version that came with your distribution (should be found in /usr/share/doc/weewx/examples/), or get the archived V3.9.2 version using the v3.9.2 tag:

Re: [weewx-user] ftp does not work

2020-03-23 Thread Thomas Keffer
We will need to see the log file. See the Wiki article *Help! Posting to weewx-user * for how to post a useful log file. To answer your questions: 1. HTML_ROOT is where the files are coming *from*. It is usually specified

Re: [weewx-user] Re: 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-22 Thread Thomas Keffer
Let's make sure python-pil installed where the interpreter can find it. One of these two should work. *python3 -c "import Image"* *python3 -c "from PIL import Image"* If neither works, and you're sure you installed python3-pil, then python3 is searching in some non-standard place. Here is where

Re: [weewx-user] 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-22 Thread Thomas Keffer
You need to install either PIL or pillow. *sudo apt install python3-pil* -tk On Sun, Mar 22, 2020 at 7:01 AM Michael wrote: > Hello, > > i'm trying to get a weewx 4.0.0b16 running in conjunction with python3 > installation. > > Unfortunately no diagrams are drawn in Skin Seasons. > > Enclosed

Re: [weewx-user] Davis VP 2 and raw data with weewx 3.9.2-1

2020-03-21 Thread Thomas Keffer
The data emitted by a Davis Vantage is in coded binary. It would look like gibberish. The data that is printed by weewxd when run from the command line is fairly raw. I say "fairly" because StdWXCalculate may have added some values to it. However, if you set all the options in

Re: [weewx-user] reports = local time & PC = UTC

2020-03-21 Thread Thomas Keffer
(By "computer clock" I think he means what is in /etc/timezone, that is, the 'local' time.) Unfortunately, this is not possible with the present architecture of WeeWX. Issue #301 outlines why. On Fri, Mar 20, 2020 at 8:09 PM John Kline wrote: > For

Re: [weewx-user] Re: New Weewx/W34 install works OK, but with error msgs

2020-03-18 Thread Thomas Keffer
This is almost surely a problem in the skin "Weather34Report." Somewhere in the template Weather34/w34charts/chartdata/result.csv.tmpl is some arithmetic, where two numbers are getting added together. One of them is value Python None, rather than a number. In general, when writing code or

Re: [weewx-user] Dato nuevo en la estructura de la tabla mysql

2020-03-18 Thread Thomas Keffer
See the section *Adding a new type to the database * in the Customizing Guide for instructions on how to add new fields to the database. On Wed, Mar 18, 2020 at 8:38 AM jose riaño wrote: > Buenos días > > > Quiero agregar un dato nuevo

Re: [weewx-user] Re: how to insert additional data (cpu temp) into skins?

2020-03-18 Thread Thomas Keffer
w how, my Raspberry Pi reports the > temperature in Celsius and the database is in Fahrenheit and obviously a > check would be best. > > But how to do that easily? > > > On Wednesday, March 18, 2020 at 2:14:32 PM UTC, Thomas Keffer wrote: >> >> Well done! >>

Re: [weewx-user] Re: weewx4 - vantagepro issue

2020-03-18 Thread Thomas Keffer
In addition to Vince's recommendation: 1. you should also set debug=1 in weewx.conf, then restart. It may give you more clues as to what is going on. 2. Run the command "dmesg". This will show you if anything is going on with the kernel. Long shot, but worth checking. 3. Is your

Re: [weewx-user] Re: how to insert additional data (cpu temp) into skins?

2020-03-18 Thread Thomas Keffer
Well done! However, your extension makes the assumption that the archive record is always in US Customary. Best to put a check in there before doing the conversion. -tk On Wed, Mar 18, 2020 at 6:34 AM Mike Revitt wrote: > Not sure if you are still looking for solutions, but I liked you idea

Re: [weewx-user] Very bad performance leading to "lost connection to mysql server" and weewx endless loop

2020-03-18 Thread Thomas Keffer
manually directly on the database? > > Am Mittwoch, 18. März 2020 13:16:23 UTC+1 schrieb Thomas Keffer: >> >> Well, there is something wrong on the external server or, possibly, the >> connection between. >> >> In general, installations that use MySQL are less rel

Re: [weewx-user] Installation issues on Synology DS918+ -- No module named configobj

2020-03-18 Thread Thomas Keffer
Because you installed configobj using pip, but *without root privileges*, pip did what's called a "user" install. Because "sudo" was not specified, it could not install configobj in the system directories, so, instead, it installed in a subdirectory (usually ".local") of your home directory.

Re: [weewx-user] Very bad performance leading to "lost connection to mysql server" and weewx endless loop

2020-03-18 Thread Thomas Keffer
, 2020 at 5:02 AM Luftfahrtverein Grünstadt < webmas...@luftfahrtverein-gruenstadt.de> wrote: > Hi Thomas, > thank you for your answer. > No, the MySQL database is not on the pi, it is externally hosted. > > Am Mittwoch, 18. März 2020 12:16:20 UTC+1 schrieb Thomas Keffer: >

Re: [weewx-user] weewx4 - vantagepro issue

2020-03-18 Thread Thomas Keffer
I think WeeWX is probably working fine when you ran it from the command line. It's just that its archive interval is 10 minutes, and you did not let it run that long, so you did not see any new reports. As for the I/O errors while running as a daemon: I noticed that the time on the Vantage clock

Re: [weewx-user] Very bad performance leading to "lost connection to mysql server" and weewx endless loop

2020-03-18 Thread Thomas Keffer
I take it you are running MySQL on a Raspberry Pi? Could be that the SD card is failing. On Wed, Mar 18, 2020 at 12:23 AM Luftfahrtverein Grünstadt < webmas...@luftfahrtverein-gruenstadt.de> wrote: > Hi all, > > after updating our raspberry pi (apt-get update & upgrade) I experience > very bad

Re: [weewx-user] Version 4

2020-03-17 Thread Thomas Keffer
It looks like the Cumulus extension has not been ported to Python 3. You'll have to talk to the extension author about that. On Tue, Mar 17, 2020 at 12:10 AM Ξ wrote: > Thanks, it installed OK now but it run into a problem with > CumulusRealTime: # $Id: crt.py 1477 2016-04-10 13:19:56Z mwall $

Re: [weewx-user] Version 4

2020-03-16 Thread Thomas Keffer
Take a look at the (beta version) of the instructions for setup.py installations. You can find it at /home/weewx/docs/setup.htm. You must use pip, which will install setuptools for you. -tk On Mon, Mar 16, 2020 at 3:11 PM Ξ wrote: > So I currently have 4.0.0b14, I tried installing

Re: [weewx-user] Whew as a service on Raspberry Pi

2020-03-16 Thread Thomas Keffer
wrote: > Thanks Thomas, > > I found a parameter I can set in the service file which I am currently > testing. Should know in a day or 2 if it has worked > > [Service] > Restart=always > RestartSec=30 > > > > > On Monday, March 16, 2020 at 12:33:15 PM UTC, Tho

Re: [weewx-user] Formatting stats.py extension

2020-03-16 Thread Thomas Keffer
For this to work, you would need to specify your new 'contexts' in the constructor to TimespanBinder. Something like this (NOT TESTED): # First, create TimespanBinder object for all time. This one is easy # because the object timespan already holds all valid times to be #

Re: [weewx-user] Whew as a service on Raspberry Pi

2020-03-16 Thread Thomas Keffer
I would suggest looking directly at the log at /var/log/syslog, rather than rely on status commands. This may give you clues. For example, systemd may be harvesting weewxd for memory. 'Enabling' a process means it will get started *when the system boots,* not after a crash. -tk On Mon, Mar 16,

Re: [weewx-user] Version 4

2020-03-13 Thread Thomas Keffer
month = %x %X > year = %x %X > rainyear = %x %X > current = %x %X > ephem_day = %X > ephem_year = %x %X > > > > On Thursday, March 12, 2020 at 3:21:05 PM UTC+2, Thomas Keffer wrote: >> >

Re: [weewx-user] Version 4

2020-03-12 Thread Thomas Keffer
onfig v3.7.1, I upgraded > using setup.py > > Ivo > > On Thursday, March 12, 2020 at 2:25:18 AM UTC+2, Thomas Keffer wrote: >> >> It's pretty much ready to go. The problem is packaging. We're trying to >> simplify the support matrix to something we can handle, and i

Re: [weewx-user] Version 4

2020-03-11 Thread Thomas Keffer
It's pretty much ready to go. The problem is packaging. We're trying to simplify the support matrix to something we can handle, and it's not proving to be easy. On Wed, Mar 11, 2020 at 1:01 PM Keimpe Bleeker wrote: > Hi Tom, others, After many using W##%##, based on a PC-server, for > many

Re: [weewx-user] 4 beta test report

2020-03-09 Thread Thomas Keffer
LOL! Good eye! I've replaced it with something more general. On Mon, Mar 9, 2020 at 1:09 PM vince wrote: > On Monday, March 9, 2020 at 12:55:43 PM UTC-7, Thomas Keffer wrote: >> >> It's all in the Wiki white paper >> <https://github.com/weewx/weewx/w

Re: [weewx-user] 4 beta test report

2020-03-09 Thread Thomas Keffer
It's all in the Wiki white paper <https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging>. -tk On Mon, Mar 9, 2020 at 9:30 AM vince wrote: > On Sunday, March 8, 2020 at 7:50:51 PM UTC-7, Thomas Keffer wrote: > >> I want to see how this interface works out before documentin

Re: [weewx-user] 4 beta test report

2020-03-08 Thread Thomas Keffer
The problem is that the OS is not generally known until runtime. Well, you could pick it at install time, but then that would require the same branching "if statement," done earlier, which is not a better deal. Or, you could make the user pick it in weewx.conf, but most users wouldn't have a clue

Re: [weewx-user] Re: Weewx ERROR in weewx.cheetahgenerator Weewx 4.0 Python3

2020-03-08 Thread Thomas Keffer
> > So is if fair to say Python3 is more stringent when it comes to these > types of comparisons? > Yes, and that's a good thing. Under Python 2, None always tests less than any number. Under Python 3, such a comparison is an error: None < -1 Python 2: True Python 3: Error -tk -- You received

Re: [weewx-user] Re: Weewx ERROR in weewx.cheetahgenerator Weewx 4.0 Python3

2020-03-08 Thread Thomas Keffer
Some comments that might help you debug. 1. The error message TypeError: '>' not supported between instances of 'NoneType' and 'float' is not to be taken literally. It means that you are comparing two variables, one of which has Python value None, the other a floating point number. 2. Most

Re: [weewx-user] Re: wind speed wrong (kph/miles)

2020-03-08 Thread Thomas Keffer
I live in the Columbia River Gorge, an extremely windy area in the summer. About 5 years ago, I moved the wind sensor from the top of my roof to a 3 meter post in a back field. Wind speeds dropped by half. Kestrel makes very high quality hand-held meters. Their model

Re: [weewx-user] 4 beta test report

2020-03-07 Thread Thomas Keffer
Hi, Greg weewx V4 uses a new logging facility, Python's module 'logging', which requires that one set up logging handlers. The handler "syslog" is designed to (roughly) emulate the previous syslog logging. To set it up, you must specify a destination (called 'address') and a 'facility', which

Re: [weewx-user] Re: weewx v4 new extended schema - so good !

2020-03-07 Thread Thomas Keffer
I thought a release of V4 would be real soon, but we ran into lots of packaging hassles supporting such a wide matrix of possibilities. Now I'm looking at a much simpler strategy, but it will take time. Patience! -tk On Sat, Mar 7, 2020 at 11:03 AM Steve Koone wrote: > This looks great Vince,

Re: [weewx-user] Graphs with command in the Bottom Label

2020-03-07 Thread Thomas Keffer
Unfortunately, no. The Cheetah template engine is not used for graph labels, only to generate files. On Sat, Mar 7, 2020 at 7:18 AM Meteo Oberwallis wrote: > > Hi there.Is it possible to insert the station and the height in the graphic > based on these variables? Then the template could also

Re: [weewx-user] Add an additional sensor

2020-03-07 Thread Thomas Keffer
Don't have time to debug your code, but, as written, it will open and read the socket only once, when your module is loaded. Then, never again. Maybe that's what you want, maybe it isn't. Open the socket in the __init__() function, then read it in the new_archive_record() function. -tk On Fri,

Re: [weewx-user] Re: Weewx stops at Midnight

2020-03-05 Thread Thomas Keffer
ed file > /wsb4344958101/daywindvec.png > Mar 5 17:16:20 WeeWxPi weewx-WH1080[13835]: ftpupload: Uploaded file > /wsb4344958101/tempsday.png > Mar 5 17:16:21 WeeWxPi weewx-WH1080[13835]: ftpupload: Uploaded file > /wsb4344958101/tempsmonth.png > Mar 5 17:16:21 WeeWxPi weewx-WH1080[13835]:

Re: [weewx-user] wind speed wrong (kph/miles)

2020-03-05 Thread Thomas Keffer
like that in that section: > windSpeed = windSpeed * 1.61 > > but i dont undestand what my weatherstation is doing with the windspeed > hm > > regards > Stefan > > Am Mittwoch, 4. März 2020 23:56:55 UTC+1 schrieb Thomas Keffer: >> >> Hello, >> >>

Re: [weewx-user] Re: Weewx stops at Midnight

2020-03-05 Thread Thomas Keffer
Let's be sure. Please set debug=1 (in weewx.conf), then restart weewx. Let it run for two reporting cycles. Then post the log from startup through the second cycle. -tk On Thu, Mar 5, 2020 at 4:37 AM 'angry tux' via weewx-user < weewx-user@googlegroups.com> wrote: > Hi, > 1. The version is

Re: [weewx-user] Weewx stops at Midnight

2020-03-04 Thread Thomas Keffer
Hello, Two questions: 1. What version of weewx? 2. What is your archive interval? -tk On Wed, Mar 4, 2020 at 9:02 AM 'angry tux' via weewx-user < weewx-user@googlegroups.com> wrote: > Hi, > most of the nights weewx stops with the first routine after midnight. I > have two instances running,

Re: [weewx-user] wind speed wrong (kph/miles)

2020-03-04 Thread Thomas Keffer
Hello, Looking through your website, it looks like the max wind you saw was 63.7 kph. How do you know it was really 103 kph? It would also be worth looking in your database. Try this: *sqlite3 weewx.sdb* sqlite> *select datetime(dateTime,'unixepoch','localtime'), usUnits, windSpeed, windGust

Re: [weewx-user] Re: draw user-defined lines in graphics

2020-03-04 Thread Thomas Keffer
As user "Mic G77" pointed out , you can also do math in the configuration file, skin.conf: [[[dayPoid]]] yscale = None, None, None extraTemp2 extraTest data_type = 18.3+0.03*extraHumid2 -tk On

Re: [weewx-user] Almanac Extras....

2020-03-04 Thread Thomas Keffer
> Jason. > > On Tuesday, March 3, 2020 at 3:27:47 AM UTC+13, Thomas Keffer wrote: >> >> Do you have several versions of Python on your machine? It's possible >> pyephem was installed using one version, but you're trying to run weewxd >> under another. >> >

Re: [weewx-user] Re: wee_database: ImportError

2020-03-03 Thread Thomas Keffer
Looking a little bit closer at the command you used, the syntax is not quite right. Instead of *sudo wee_database --transfer --dest-binding = dest_binding --dry-run* your want *sudo wee_database --transfer --dest-binding=dest_binding --dry-run* -tk On Tue, Mar 3, 2020 at 10:07 AM Eric

Re: [weewx-user] Re: wee_database: ImportError

2020-03-03 Thread Thomas Keffer
> > $ sudo wee_database --transfer --dest-binding = dest_binding --dry-run > Traceback (most recent call last): > File "/usr/bin/wee_database", line 794, in > main() > File "/usr/bin/wee_database", line 133, in main > config_path, config_dict = weecfg.read_config(options.config_path,

Re: [weewx-user] Almanac Extras....

2020-03-02 Thread Thomas Keffer
Do you have several versions of Python on your machine? It's possible pyephem was installed using one version, but you're trying to run weewxd under another. Try invoking python explicitly when you run wee_reports and weewxd. This will guarantee that they are using the same version of Python:

Re: [weewx-user] ImportError: No module named _mysql_exceptions

2020-03-01 Thread Thomas Keffer
Which platform are you using? Looks like you did some kind of non-standard install of WeeWX, which is fine. I doubt it is the problem. However, how did you install the mysql driver? -tk On Sat, Feb 29, 2020 at 12:06 PM Cat22 wrote: > Hi, > weewx 3.9.2 > I am adding the mysql capability to

  1   2   3   4   5   6   7   8   9   10   >