Re: [weewx-user] Re: script to wait for NTP sync at boot

2019-04-22 Thread tomnykds
Couple of corrections after looking at this again:

ntpq_stat = subprocess.check_output(["/usr/local/bin/ntpq", "-pn"], 
shell=False, stderr=subprocess.STDOUT)

while is_ntp_up() == 0:

Chris

On Sunday, April 21, 2019 at 6:22:06 PM UTC-7, crich...@gmail.com wrote:
>
> Here's an alternative that I'm putting into extensions.py.  Seems to do 
> the trick, but could be a little more elegant...
> python's re lib isn't as helpful as perl's about capturing values.
>
> import re
> import time
> import subprocess
>
> def is_ntp_up():
> ntpq_stat = sybprocess.call_check(["/usr/local/bin/ntpq", "-pn"], 
> buffsize=1024, shell=False, stderr=subprocess.STDOUT)
> for line in ntpq_stat.split('\n'):
> if re.match("\*\d+\..*\s+\S+\s+\d+", line):
> fields = line.split()
> if int(fields[2]) > -1 and int(fields[2]) < 16:
> return 1
> return 0
>
> wait_loop_limit = 60 # wait up to 5 minutes for ntp to sync
> wait_loops  =  0
> while is_ntp_up == 0:
> time.sleep(5)
> print "Waiting for NTP to come up"
> wait_loops += 1
> if wait_loops > wait_loop_limit:
> raise Exception(" No ntp sync, exiting now")
>
> Chris
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: script to wait for NTP sync at boot

2019-04-21 Thread tomnykds
Here's an alternative that I'm putting into extensions.py.  Seems to do the 
trick, but could be a little more elegant...
python's re lib isn't as helpful as perl's about capturing values.

import re
import time
import subprocess

def is_ntp_up():
ntpq_stat = sybprocess.call_check(["/usr/local/bin/ntpq", "-pn"], 
buffsize=1024, shell=False, stderr=subprocess.STDOUT)
for line in ntpq_stat.split('\n'):
if re.match("\*\d+\..*\s+\S+\s+\d+", line):
fields = line.split()
if int(fields[2]) > -1 and int(fields[2]) < 16:
return 1
return 0

wait_loop_limit = 60 # wait up to 5 minutes for ntp to sync
wait_loops  =  0
while is_ntp_up == 0:
time.sleep(5)
print "Waiting for NTP to come up"
wait_loops += 1
if wait_loops > wait_loop_limit:
raise Exception(" No ntp sync, exiting now")

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Help with minor edit to Seasons main page

2019-03-31 Thread tomnykds
So, trying to have a separate element and get it positioned (copied rss 
.css setup) didn't work, Adding the two links
to the RSS block in titlebar.inc worked, and all 3 links are on the right 
side now.

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Help with minor edit to Seasons main page

2019-03-31 Thread tomnykds
OK, it's getting there.  Never messed with .css before, so it will take a 
few iterations to get this how I want it.
Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Help with minor edit to Seasons main page

2019-03-30 Thread tomnykds
Thanks, that's sort-of what I was thinking, but couldn't find any clues 
about about where they'd be placed. The existing elements are far left
and right, but I couldn't see why.

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Help with minor edit to Seasons main page

2019-03-30 Thread tomnykds
I updated my VP-2 weewx to 3.9.2 and like it very much, except that I lost 
the links to the other two weewx
instances I had previously.  I'd like the links somewhere at the top of the 
page, either in the title bar or maybe
past the Week Month Year links in the list for History.  I looked through 
the new skins code, and can sort-of see
how this might be done, but figured I'd ask since there's likely a simple 
answer I might not guess correctly.

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Is more than one station_type possible in a single instance of WeeWX?

2019-02-05 Thread tomnykds
For a while, I was running two instances of weewx on a machine with the 
same installation, but
separate trees for the db_archive, output web files, skins, and separate 
config files.  I didn't have any
problem with it, just changed hardware and needed to move the one close to 
the console (VP2 in the kitchen),
which is now on an RPi model B+.  Actually, I might have had all 3 
instances in that one install.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: (Off Topic?) How does weewx tell systemctl it is running

2018-12-12 Thread tomnykds
BTW, if there's nothing useful in /var/log/messages (or where ever you log 
weewx), try journalctl (that's a cmd).  It dumps systemd's log.
googling that message does imply that weewx crashed, so also check the log 
for weewx's pid before and after you see that.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: (Off Topic?) How does weewx tell systemctl it is running

2018-12-11 Thread tomnykds
Try 
here: https://people.redhat.com/mskinner/rhug/q1.2014/Demystifying_Systemd.pdf

Not an answer, but background.  On a new box I'm setting up, I went as far 
as finding a distribution
that doesn't use systemd, if that ways anything.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Second crash after 11 days

2018-11-20 Thread tomnykds
Two things.  You don't have to run top as root, and if root's crontab you 
are editing is /etc/crontab, then the entry has to include the userID after 
the time spec,
whereas a regular user's crontab entries do not.
Chris


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Multiple errors in weewx 3.8.2

2018-11-05 Thread tomnykds
FWIW, this is a recent install (for all the time periods):

cer8000_/home/weewx/weewx-3.8.2/skins/Standard> grep gustdir * | & grep tmpl
index.html.tmpl:  $day.wind.max from $day.wind.gustdir at 
$day.wind.maxtime

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Second crash after 11 days

2018-10-19 Thread tomnykds
I was going to say that if the thing that's growing memory is the memory 
monitor, the developers "have some 'splainin to do."
I haven't used pmon or cmon.  I tend to roll my own inferior solutions 
since at least at work they have to run in user space.
I'm more a fan of periodic snapshots than a daemon sort of thing. 

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Stopping Weewx from auto starting

2018-10-12 Thread tomnykds
One point... if you are on a recent OS and using systemd, part of the 
advertising for it is faster startup by paralleling things at startup.  
Another feature of the service files is the ability to have one service 
wait for another to get going.  In this case, you'd want the weewx.service 
to require the RTC service to have started.  This is a decent, but brief 
overview of 
systemd: 
https://people.redhat.com/mskinner/rhug/q1.2014/Demystifying_Systemd.pdf

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx-opensprinkler weather skin

2018-10-09 Thread tomnykds

>
> So, I was able to port the OpenSprinkler weather server to python as a cgi 
> script.  It isn't ready for public consumption, but does cover most of the 
> capabilities of the original.  It queries Open Weather Map and Dark Sky 
> using my private keys for each, as well as pulling in a weewx generated web 
> page with the last 2 days rain, so that part would have to be figured out.  
> It does require a local web server at this point.  I wasn't able to (didn't 
> try too hard) to get a python web server to simply serve the cgi results 
> internally verses running the same code via cgi mechanisms.  The scale from 
> the two sources are averaged for now.  If anyone is interested I can 
> package in some form or another.
>

Chris 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx-opensprinkler weather skin

2018-10-03 Thread tomnykds


I’ve been messing around with this for a few months.  Initially, the 
external weather offset

was always returning a scale of zero because of how it was pulling OWM 
data, so I brought that

service inside the house and updated the OWM code to work better.  I also 
implemented the

same thing using DarkSky data and calculate the scale from both.  The 
external thing runs on

NodeJS, which was pain to get running on an RPi, so I’m rewriting the whole 
mess in python.

What’s left is to get it working as a CGI server so the OS controller can 
talk to it.  In terms of weewx

data, all I’m pulling at the moment is the last ~2 days of rain using a 
template to write a web

page the new code fetches.  That gets added to the forecast calculations.  
The scale numbers

between old way and new code track, but often don’t match because of the 
math related to the

3 parameters (temp and humidity mostly), which vary slightly between OWM 
and DS.


No idea if the OS guys every fixed the forecasting thing or not, but they 
knew it was a problem.

I’d rather have all this inside my network anyway.  The WU thing only works 
when you have a key,

and WU quite giving them away, which is why the OS guys switched to the OWM 
api.

Once I get this in a usable state I can share it.  I hadn't thought of 
serving it from the main
httpd I have in the house, but that might speed things up.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] New VP2 setup, rain cups and calibration

2018-03-04 Thread tomnykds
The light isn't on, so that's not it.  I am seeing the same numbers between 
the console and weewx now, which is nice.  Offsetting the temp
didn't change the humidity delta, but it sounds like I need to get ahold of 
Davis next.
Thx, Chris

On Sunday, March 4, 2018 at 4:25:38 PM UTC-8, Dave Webb wrote:
>
> Chris,
>
>  Is the inside temp higher than the outside temp? If it is, is the console 
> light on? I found a 2-3 degree difference with console light on because it 
> generates heat inside the console. 
>
>
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S7
>
> On Mar 4, 2018 6:03 PM,  wrote:
>
>> I sprung for Vantage Pro 2 with aspiration.  I have it hooked up to an 
>> RPi with the serial logger.  That part seems to work OK so far.
>> My question is about which wind cups (large or small) is included in the 
>> standard kit these days?  The Davis site is woefully lacking
>> in detail, and even the specs in the books are missing that one.  The 
>> other question is about calibration.  I have the console and ISS
>> sitting in the same place, and the temp and humidity don't match (off a 
>> couple of degrees and few percent).  I found where to offset
>> the values in the console, but not sure if either are correct.  Is this a 
>> matter of averaging the values of a bunch of thermometers
>> and adjusting?  I found two more temp/hum units, and I've adjusted the 
>> console as needed, but does setting calibration change
>> the values that the data-logger sees?  It doesn't seem like it, meaning I 
>> need to duplicate the offsets in the weewx.conf.
>>
>> Thx, Chris
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] New VP2 setup, rain cups and calibration

2018-03-04 Thread tomnykds
I sprung for Vantage Pro 2 with aspiration.  I have it hooked up to an RPi 
with the serial logger.  That part seems to work OK so far.
My question is about which wind cups (large or small) is included in the 
standard kit these days?  The Davis site is woefully lacking
in detail, and even the specs in the books are missing that one.  The other 
question is about calibration.  I have the console and ISS
sitting in the same place, and the temp and humidity don't match (off a 
couple of degrees and few percent).  I found where to offset
the values in the console, but not sure if either are correct.  Is this a 
matter of averaging the values of a bunch of thermometers
and adjusting?  I found two more temp/hum units, and I've adjusted the 
console as needed, but does setting calibration change
the values that the data-logger sees?  It doesn't seem like it, meaning I 
need to duplicate the offsets in the weewx.conf.

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] minor documentation issue

2018-01-27 Thread tomnykds
To whom it may concern...  :^)  There are a few spots in the Customization 
guide referencing this;

wee_database weewx.conf --rebuild-daily


but the help from wee_database actually supports
 Actions:
  --backfill-daily  Rebuild the daily summaries from the archive database.

--rebuild-daily failed when I tried last week, but since the summaries 
rebuild when weewx starts up
anyway, I let it go.  Added something else today, got the same failure, and 
spent a few extra seconds to
figure out why,

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: inDewpoint fails to calculate

2018-01-22 Thread tomnykds
Should have seen that one coming... :^)  Just asked in case someone else 
had done something similar.

Thx, Chris

On Monday, January 22, 2018 at 10:29:14 AM UTC-8, Andrew Milner wrote:
>
> not unless you write the program to do it!!
>
> On Monday, 22 January 2018 18:44:15 UTC+2, tomn...@frontier.com wrote:
>
>> That seems to have done the trick.  I added the changes in extensions.py  
>> It took a while to find the specs on the graph, because there is no
>> historical data to plot.  Can that be fixed since it's a calculated value?
>>
>>>



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: inDewpoint fails to calculate

2018-01-22 Thread tomnykds
That seems to have done the trick.  I added the changes in extensions.py  
It took a while to find the specs on the graph, because there is no
historical data to plot.  Can that be fixed since it's a calculated value?

Jan 22 08:03:53 router weewx[8609]: manager: Daily summaries up to date

thx, Chris

On Monday, January 22, 2018 at 6:40:09 AM UTC-8, Andrew Milner wrote:
>
> http://weewx.com/docs/customizing.htm#add_archive_type
>
> should help
>
>
> On Monday, 22 January 2018 16:30:00 UTC+2, tomn...@frontier.com wrote:
>
>> I wanted to fiddle with my graphs so I could see dewpoint both inside and 
>> outside.  I found the value to plot, but
>> that failed (log below).
>> [[[dayhumidity]]]
>> inTemp
>> inHumidity
>> #   inDewpoint
>> # label = Cavern Dewpoint
>>
>>inDewpoint is listed in the calculations in the config file:
>> [StdWXCalculate]
>> [[Calculations]]
>> dewpoint   = prefer_hardware
>> inDewpoint = prefer_hardware
>>
>> and I can see the code that would generate the value here:
>> /home/weewx> egrep "(calc_inDewpoint|calc_dewpoint)" `find . -type f 
>> -name "*.py" -print`
>> ./bin/weewx/wxservices.py:def calc_dewpoint(self, data, data_type):  
>> # @UnusedVariable
>> ./bin/weewx/wxservices.py:def calc_inDewpoint(self, data, 
>> data_type):  # @UnusedVariable
>>
>> Where it seems to be missing is in the schema:
>> weewx> egrep "(Dewpoint|dewpoint)" `find . -type f -name "*.py" -print`
>> ./bin/schemas/wview.py:  ('dewpoint', 'REAL'),
>>
>> How does one go about adding this?
>>
>> Thx, Chris
>>
>> Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 
>> 05:50:00 PST (1516629000) to database 'weewx.sdb'
>> Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 
>> 05:50:00 PST (1516629000) to daily summary in 'weewx.sdb'
>> Jan 22 05:58:00 router weewx[5212]: cheetahgenerator: Generated 6 files 
>> for report StandardReport in 0.22 seconds
>> Jan 22 05:58:00 router weewx[5212]: reportengine: Caught unrecoverable 
>> exception in generator weewx.imagegenerator.ImageGenerator
>> Jan 22 05:58:00 router weewx[5212]:   no such column: 
>> inDewpoint
>> Jan 22 05:58:00 router weewx[5212]:   Traceback (most recent 
>> call last):
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/reportengine.py", line 238, in run
>> Jan 22 05:58:00 router weewx[5212]:   obj.start()
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/reportengine.py", line 271, in start
>> Jan 22 05:58:00 router weewx[5212]:   self.run()
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/imagegenerator.py", line 31, in run
>> Jan 22 05:58:00 router weewx[5212]:   
>> self.genImages(self.gen_ts)
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/imagegenerator.py", line 141, in genImages
>> Jan 22 05:58:00 router weewx[5212]:   
>> aggregate_interval=aggregate_interval)
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/manager.py", line 496, in getSqlVectors
>> Jan 22 05:58:00 router weewx[5212]:   aggregate_type, 
>> aggregate_interval)
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weewx/manager.py", line 742, in _getSqlVectors
>> Jan 22 05:58:00 router weewx[5212]:   for _rec in 
>> _cursor.execute(sql_str, (startstamp, stopstamp)):
>> Jan 22 05:58:00 router weewx[5212]: File 
>> "/home/weewx/bin/weedb/sqlite.py", line 37, in guarded_fn
>> Jan 22 05:58:00 router weewx[5212]:   raise 
>> weedb.OperationalError(e)
>> Jan 22 05:58:00 router weewx[5212]:   OperationalError: no 
>> such column: inDewpoint
>> Jan 22 05:58:00 router weewx[5212]:   Generator terminated
>> Jan 22 05:58:00 router weewx[5212]: reportengine: copied 0 files to 
>> /home/weewx/public_html.weather
>> Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 
>> 05:55:00 PST (1516629300) to database 'weewx_aclogger.sdb'
>> Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 
>> 05:55:00 PST (1516629300) to daily summary in 'weewx_aclogger.sdb'
>> Jan 22 05:59:59 router weewx[1033]: cheetahgenerator: Generated 6 files 
>> for report StandardReport in 0.13 seconds
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] inDewpoint fails to calculate

2018-01-22 Thread tomnykds
I wanted to fiddle with my graphs so I could see dewpoint both inside and 
outside.  I found the value to plot, but
that failed (log below).
[[[dayhumidity]]]
inTemp
inHumidity
#   inDewpoint
# label = Cavern Dewpoint

   inDewpoint is listed in the calculations in the config file:
[StdWXCalculate]
[[Calculations]]
dewpoint   = prefer_hardware
inDewpoint = prefer_hardware

and I can see the code that would generate the value here:
/home/weewx> egrep "(calc_inDewpoint|calc_dewpoint)" `find . -type f -name 
"*.py" -print`
./bin/weewx/wxservices.py:def calc_dewpoint(self, data, data_type):  # 
@UnusedVariable
./bin/weewx/wxservices.py:def calc_inDewpoint(self, data, data_type):  
# @UnusedVariable

Where it seems to be missing is in the schema:
weewx> egrep "(Dewpoint|dewpoint)" `find . -type f -name "*.py" -print`
./bin/schemas/wview.py:  ('dewpoint', 'REAL'),

How does one go about adding this?

Thx, Chris

Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 
05:50:00 PST (1516629000) to database 'weewx.sdb'
Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 
05:50:00 PST (1516629000) to daily summary in 'weewx.sdb'
Jan 22 05:58:00 router weewx[5212]: cheetahgenerator: Generated 6 files for 
report StandardReport in 0.22 seconds
Jan 22 05:58:00 router weewx[5212]: reportengine: Caught unrecoverable 
exception in generator weewx.imagegenerator.ImageGenerator
Jan 22 05:58:00 router weewx[5212]:   no such column: inDewpoint
Jan 22 05:58:00 router weewx[5212]:   Traceback (most recent 
call last):
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/reportengine.py", line 238, in run
Jan 22 05:58:00 router weewx[5212]:   obj.start()
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/reportengine.py", line 271, in start
Jan 22 05:58:00 router weewx[5212]:   self.run()
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/imagegenerator.py", line 31, in run
Jan 22 05:58:00 router weewx[5212]:   
self.genImages(self.gen_ts)
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/imagegenerator.py", line 141, in genImages
Jan 22 05:58:00 router weewx[5212]:   
aggregate_interval=aggregate_interval)
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/manager.py", line 496, in getSqlVectors
Jan 22 05:58:00 router weewx[5212]:   aggregate_type, 
aggregate_interval)
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weewx/manager.py", line 742, in _getSqlVectors
Jan 22 05:58:00 router weewx[5212]:   for _rec in 
_cursor.execute(sql_str, (startstamp, stopstamp)):
Jan 22 05:58:00 router weewx[5212]: File 
"/home/weewx/bin/weedb/sqlite.py", line 37, in guarded_fn
Jan 22 05:58:00 router weewx[5212]:   raise 
weedb.OperationalError(e)
Jan 22 05:58:00 router weewx[5212]:   OperationalError: no such 
column: inDewpoint
Jan 22 05:58:00 router weewx[5212]:   Generator terminated
Jan 22 05:58:00 router weewx[5212]: reportengine: copied 0 files to 
/home/weewx/public_html.weather
Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 
05:55:00 PST (1516629300) to database 'weewx_aclogger.sdb'
Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 
05:55:00 PST (1516629300) to daily summary in 'weewx_aclogger.sdb'
Jan 22 05:59:59 router weewx[1033]: cheetahgenerator: Generated 6 files for 
report StandardReport in 0.13 seconds

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Back for more... need place for count type data

2017-11-11 Thread tomnykds
Hi All,

  I'm back working on my crawl space 'weather' system, and trying to figure 
out how to map another
value.  It's a sump pump activation count, so it doesn't have an analog 
value like much of the items
that weewx normally deals with.  This is a third pump, and the first two 
got mapped to rainRate and
hailRate, but there aren't any more rate type values to hijack.  Those 
aren't count types, but I did find
these in bin/weewx/units.py:
  "leafWet1"   : "group_count",
  "leafWet2"   : "group_count",

Not suite sure how these are used in terms of values expected in the loop 
data.  I also pulled
down the lightening detector driver (weewx-as3935-0.6.tgz), and that also 
counts, but for me,
I'm adding something to an existing setup, so that's not quite right either.

I'm looking for suggestions on how to map event data (once/day, one/week, 
not sure) into
something weewx can plot.  I'm trying to avoid DB schema changes some my 
grasp on those
sorts of things is pretty weak, but I'm game if that's the way to go.

Thx, Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.