[weewx-user] Current wisdom on the end of DST

2016-10-27 Thread Robin
Daylight savings time ends this weekend. I recall experiencing problems 
last year.

What is the current 'best practice'and advice?

Thank you.
Robin


-- 
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] Acurite 986 and sdr.py

2016-10-27 Thread Andy
Got one of the Acurite 986 

 sensors 
and modified the sdr.py but seem to be missing something in the regex. 
 Created the new 986 class and added an entry to the KNOWN.PACKETS section..

root@chip:/home/weewx# PYTHONPATH=bin python bin/user/sdr.py --debug 
--cmd="/usr/local/bin/rtl_433 -U -G"

out: ['2016-10-28 04:13:12 Acurite 986 sensor 0x2c87 - 2F: 19.4 C 67 F\n']
unparsed: ['2016-10-28 04:13:12 Acurite 986 sensor 0x2c87 - 2F: 19.4 C 67 
F\n']


class Acurite986Packet(Packet):
#2016-10-28 02:28:20 Acurite 986 sensor 0x2c87 - 2F: 20.0 C 68 F
IDENTIFIER = "Acurite 986 sensor"
PATTERN = re.compile('0x([0-9a-fA-F]+) - 2F: ([\d.]+) C ([\d.]+) F')
#PATTERN = re.compile('0x([0-9a-fA-F]+) - ([0-9a-fA-F]+): ([\d.]+) C 
([\d.]+) F')
#PATTERN = re.compile('0x([0-9a-fA-F]+) Ch ([A-C]): ([\d.]+) C ([\d.]+) 
F ([\d]+) % RH')
@staticmethod
def parse(ts, payload, lines):
pkt = dict()
m = Acurite986Packet.PATTERN.search(lines[0])
if m:
pkt['dateTime'] = ts
pkt['usUnits'] = weewx.METRIC
sensor_id = m.group(1)
#channel = m.group(2)
pkt['temperature'] = float(m.group(2))
pkt['temperature_F'] = float(m.group(3))
pkt = Packet.add_identifiers(
pkt, sensor_id, Acurite986Packet.__name__)
else:
loginf("Acurite986Packet: unrecognized data: '%s'" % lines[0])

Andy

-- 
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.
#!/usr/bin/env python
# Copyright 2016 Matthew Wall, all rights reserved
"""
Collect data from stl-sdr.  Run rtl_433 on a thread and push the output onto
a queue.

The SDR detects many different sensors and sensor types, so this driver
includes a mechanism to filter the incoming data, and to map the filtered
data onto the weewx database schema and identify the type of data from each
sensor.

Sensors are filtered based on a tuple that identifies uniquely each sensor.
A tuple consists of the observation name, a unique identifier for the hardware,
and the packet type, separated by periods:

  ..

The filter and data types are specified in a sensor_map stanza in the driver
stanza.  For example:

[SDR]
driver = user.sdr
[[sensor_map]]
inTemp = temperature.25A6.AcuriteTowerPacket
outTemp = temperature.24A4.AcuriteTowerPacket
rain_total = rain_total.A52B.Acurite5n1Packet

If no sensor_map is specified, no data will be collected.

The deltas stanza indicates which observations are cumulative measures and
how they should be split into delta measures.

[SDR]
...
[[deltas]]
rain = rain_total

In this case, the value for rain will be a delta calculated from sequential
rain_total observations.

To identify sensors, run the driver directly.  Alternatively, use the options
log_unknown_sensors and log_unmapped_sensors to see data from the SDR that are
not yet recognized by your configuration.

[SDR]
driver = user.sdr
log_unknown_sensors = True
log_unmapped_sensors = True

The default for each of these is False.
"""

# FIXME: data_type is not yet implemented.  quite possibly it does not belong
#in the driver anyway.

from __future__ import with_statement
from calendar import timegm
import Queue
import os
import re
import subprocess
import syslog
import threading
import time

import weewx.drivers
from weeutil.weeutil import tobool

DRIVER_NAME = 'SDR'
DRIVER_VERSION = '0.9'

# -q - suppress non-data messages
# -U - print timestamps in UTC
# -F json - emit data in json format (not all drivers support this)
DEFAULT_CMD = 'rtl_433 -q -U -G'


def loader(config_dict, _):
return SDRDriver(**config_dict[DRIVER_NAME])

def confeditor_loader():
return SDRConfigurationEditor()


def logmsg(level, msg):
syslog.syslog(level, 'sdr: %s: %s' %
  (threading.currentThread().getName(), msg))

def logdbg(msg):
logmsg(syslog.LOG_DEBUG, msg)

def loginf(msg):
logmsg(syslog.LOG_INFO, msg)

def logerr(msg):
logmsg(syslog.LOG_ERR, msg)


class AsyncReader(threading.Thread):

def __init__(self, fd, queue, label):
threading.Thread.__init__(self)
self._fd = fd
self._queue = queue
self.setDaemon(True)
self.setName(label)

def run(self):
for line in iter(self._fd.readline, ''):
self._queue.put(line)

def eof(self):
return not self.is_alive() and self._queue.empty()


class ProcManager():
TS = re.compile('^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d[\s]+')

def __init__(self):
self._cmd = None
self._process = None
self.stdout_queue = Queue.Queue()
self.s

[weewx-user] Re: Attempting to use a Pete Bros. Ultimeter2100 on a RPi3 with a serial to usb converter

2016-10-27 Thread mwall
On Thursday, October 27, 2016 at 9:15:45 PM UTC-4, Ralph Underwood wrote:
>
> Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Unable to load driver: 
> could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: 
> '/dev/ttyUSB0'
>

hi ralph,

it looks like your rpi does not have the kernel module installed for the 
usb-serial converter that you are using.

you could try updating your pi to the latest kernel with 'sudo rpi-update'

otherwise you might have to build the kernel module yourself

when the pi is working properly you should see /dev/ttyUSB0 when you plug 
in the usb-serial converter

m

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


[weewx-user] Attempting to use a Pete Bros. Ultimeter2100 on a RPi3 with a serial to usb converter

2016-10-27 Thread Ralph Underwood
I could use some hints on what I need to modify to get the Ultimter to talk 
to WeeWx. 

I have a serial to usb converter as the Rpi does not have a serial port and 
I somehow missed that the Ultimeter was not USB when I ordered it. 

I tried to use this in my weewx.conf :


##

[Ultimeter]
# This section is for the PeetBros Ultimeter series of weather stations.

# Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
port = /dev/ttyUSB0

# The station model, e.g., Ultimeter 2000, Ultimeter 100
model = Ultimeter

# The driver to use:
driver = weewx.drivers.ultimeter

##

part of the tail :

Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Platform 
Linux-4.4.21-v7+-armv7l-with-debian-8.0
Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Using configuration file 
/home/weewx/weewx.conf
Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Initializing engine
Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Loading station type 
Ultimeter (weewx.drivers.ultimeter)
Oct 27 17:24:15 raspberrypi weewx[6672]: ultimeter: driver version is 0.16
Oct 27 17:24:15 raspberrypi weewx[6672]: ultimeter: using serial port 
/dev/ttyUSB0
Oct 27 17:24:15 raspberrypi weewx[6672]: ultimeter: open serial port 
/dev/ttyUSB0
Oct 27 17:24:15 raspberrypi weewx[6672]: import of driver failed: could not 
open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' 
()
Oct 27 17:24:15 raspberrypi weewx[6672]: engine: Unable to load driver: 
could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: 
'/dev/ttyUSB0'
Oct 27 17:24:15 raspberrypi weewx[6672]:   Exiting...


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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weewx to weatherdisplay

2016-10-27 Thread gjr80
Hi Mike,

I am not sure what you are trying to achieve here, are you wanting to 
somehow use weewx as a front end for Weather Display? As far as I know 
Weather Display supports connection to a wide variety of weather station 
hardware and sensors but I am not sure it supports any other type of input. 
Weewx-WD is a weewx extension that seeks to mimic a number of the output 
data files produced by Weather Display. The aim here being to use weewx to 
drive some of the presentation type suites that are driven by Weather 
Display (eg Weather Display Live, Saratoga templates - actually can be 
driven by other weather software but Weather Display provides the most 
comprhensive dsplay, SteelSeries Gauges - probably not such an issue now 
that SteelSeries Gauges now support weewx directly). If you like, Weewx-WD 
fools the presentation suite concerned into thinking it is receiving data 
from Weather Display. Weewx-WD was never developed with the intent of 
Weather Display 'using' the Weewx-WD products eg clientraw.tx, testtags.php 
etc nor am I aware that Weather Display can somehow use these products.

The beauty of weewx is that it is open source and its architecture is such 
that interfacing to almost any source is (generally) as simple as writing a 
driver for the source. I do not know that any other weather software has 
such a feature.

Gary

On Friday, 28 October 2016 03:49:04 UTC+10, Mike Whimick wrote:
>
> Hi All,
>
> Has any one managed to conect Weatherdisplay windows version to weewx, so 
> WD recieves it's data from weewx through a home network.
>
> I have installed and have running the weewxwd-1.0.0 extention, but so fare 
> not been able to work how to connect WD to the clientraw.txt in my 
> Raspberry Pi
>
> If you can please can please can you explain how to do it.
> Regards Whimick
>

-- 
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: No data from station

2016-10-27 Thread vince
On Thursday, October 27, 2016 at 1:12:29 PM UTC-7, Roland Ehle wrote:
>
> Downgrade to python-usb 0.4.3 did not change the behavior. Clean install 
> of Ubuntu 14.04.5 followed by a clean install of weewx 3.6.1 did not change 
> the behavior. No I took a brand new Raspberry, put weewx on it, but I have 
> exactly the same issue. In the past I was running my station on a Raspberry 
> with weewx 3.5.0 successfully.
>
>
At this point it's unclear to me if it's software or hardware, so I'd 
suggest a clean Raspbian with weewx 3.5.0 on it to try to recreate the same 
config you had when it last worked.

-- 
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: No data from station

2016-10-27 Thread 'Roland Ehle' via weewx-user
Downgrade to python-usb 0.4.3 did not change the behavior. Clean install of 
Ubuntu 14.04.5 followed by a clean install of weewx 3.6.1 did not change 
the behavior. No I took a brand new Raspberry, put weewx on it, but I have 
exactly the same issue. In the past I was running my station on a Raspberry 
with weewx 3.5.0 successfully.

Station was reset using the reset button

Am Donnerstag, 27. Oktober 2016 03:19:59 UTC+2 schrieb mwall:
>
> On Tuesday, October 25, 2016 at 12:23:45 PM UTC-4, Roland Ehle wrote:
>>
>> Thanks for your response. If necessary I am willing to downgrade to 
>> ubuntu 14.04
>>
>> I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic 
>> I have 
>> python-usb 1.0.0~b2
>> libusb-1.0-0 1.0.20-1
>> libusb-0.1-4 0.1.23-28
>>
>>
> roland,
>
> before you try a different version of ubuntu, please try downgrading 
> python-usb (to 0.4.3)
>
> m
>

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


[weewx-user] Weewx to weatherdisplay

2016-10-27 Thread 'Mike Whimick' via weewx-user
Hi All,

Has any one managed to conect Weatherdisplay windows version to weewx, so 
WD recieves it's data from weewx through a home network.

I have installed and have running the weewxwd-1.0.0 extention, but so fare 
not been able to work how to connect WD to the clientraw.txt in my 
Raspberry Pi

If you can please can please can you explain how to do it.
Regards Whimick

-- 
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: bad wind direction

2016-10-27 Thread Thomas Keffer
After updating the archive database, did you drop, then rebuild the daily
summaries?

-tk

On Wed, Oct 26, 2016 at 9:49 PM, ttech  wrote:

> I fully cleared out the archives and reinstalled. That fixed it. Weird,
> but it works now.
>
> --
> 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.
>

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