Re: [weewx-user] Problem with Unit Conversion

2018-01-17 Thread Joe Percival
Thanks. It is sounding like my best, if not only, option is to trash the current database and to start over after modifying my service to record snow depth in inches and change the. usUnits to US. Fortunately this is a very new service and we have had zero snow. Unfortunately I am not able to

Re: [weewx-user] Problem with Unit Conversion

2018-01-17 Thread Joe Percival
The data is in a separate dB as snow_depth. It is measured and archived in mm. The usUnits in each record is METRIC. If I am not mistaken, weewx has no idea how to convert snow_depth to anything else. Hence, if I am not mistaken, I will either need to convert the data before graphs are

[weewx-user] Problem with Unit Conversion

2018-01-17 Thread Joe Percival
I know I was assured that no matter the units of the data in the database, I could convert them to what ever I want later. While I suspect that this is true inside the text elements of the template, since Chetah apparently provides nearly full access to python capabilities, I have not found

[weewx-user] Change Database Content

2018-01-15 Thread Joe Percival
The new service I added saves snow depth measurements to its own sqlite database in archive format with measurements in mm. However, so far (since yesterday) the field usUnits has been posted as weewx.METRIC. I suspect that it should be set to weewx.METRICWX. 1) does it really matter what the

Re: [weewx-user] SSH Known Hosts issue

2018-01-14 Thread Joe Percival
Thanks! I ended up solving the problem by specifying the path to the file using pysftp.CnOpts. The service seems to be working now but we won’t know for sure until we get some snow here in the DRY Sierra Nevada mountains. > On Jan 14, 2018, at 1:06 PM, gjr80 wrote: > >

[weewx-user] SSH Known Hosts issue

2018-01-14 Thread Joe Percival
The new service I've written uses pysftp which in turn uses SSH. when I run a test script it works. When the service runs I'm getting an SSH exception: SSHException: No hostkey for host 192.168.1.175 found I thought that the problem might be that there was no .ssh/known_hosts file under

Re: [weewx-user] Extension Installer Syntax Error

2018-01-13 Thread Joe Percival
Yay! "Finished installing extension '/home/pi/Downloads/weewx_snow.zip’" > On Jan 13, 2018, at 3:24 PM, Joe Percival <j...@bigtreestech.com> wrote: > > I think I found the problem here also… I found one section in the earlier > configuration section where I

Re: [weewx-user] Extension Installer Syntax Error

2018-01-13 Thread Joe Percival
I think I found the problem here also… I found one section in the earlier configuration section where I had not used a closing brace. > On Jan 13, 2018, at 3:12 PM, Joe Percival <j...@bigtreestech.com> wrote: > > Though this section is almost an exact duplicate of th

[weewx-user] Extension Installer Syntax Error

2018-01-13 Thread Joe Percival
Though this section is almost an exact duplicate of the mem extension install.py file, I am getting a syntax error on the last section of the file. File "/var/tmp/weewx_snow/install.py", line 48 files=[('bin/user', ['bin/user/snow.py']), ^ SyntaxError: invalid syntax here is

Re: [weewx-user] Extension Installer Error

2018-01-13 Thread Joe Percival
yes. though I have taken out the readme and changelog for the time being. I have found the problem. I created the zip on a Mac and it created a second directory inside the archive called _MACOS. That was confusing the installer. Deleting that directory allowed the installer to proceed (and

[weewx-user] Extension Installer Error

2018-01-13 Thread Joe Percival
I have tried using the extension installer following the guidance from the github wiki on an extension package created by modifying the mem extension example. I do not understand the error message I am getting. Can someone please explain where I've gone wrong? My extension package is a

[weewx-user] Re: 1st Installer Attempt

2018-01-12 Thread Joe Percival
completed troubleshooting, with the snow report going to it's own location on the server. Later, once everything is working smoothly I may actually integrate the snow data into the standard report. On Friday, January 12, 2018 at 2:04:12 PM UTC-8, Joe Percival wrote: > > Here is what I am pl

[weewx-user] Re: 1st Installer Attempt

2018-01-12 Thread Joe Percival
def __init__(self): > super(SnowDepthInstaller, self).__init__( > version="0.2", > name='snow', > description='Collect and display snow depth.', > author="Joe Percival", > author_ema

[weewx-user] 1st Installer Attempt

2018-01-12 Thread Joe Percival
t;0.2", name='snow', description='Collect and display snow depth.', author="Joe Percival", author_email="m...@mysite.com", process_services='user.snow.SnowDepth', config={ 'SnowDepth': {

[weewx-user] Storing Credentials

2017-12-22 Thread Joe Percival
I am writing an extension that requires login credentials for a remote machine. What is the best mechanism for doing this that does not require hard coding in the python script? thanks in advance! joe -- You received this message because you are subscribed to the Google Groups "weewx-user"

[weewx-user] Using existing schema element for new data

2017-12-20 Thread Joe Percival
Many years ago I wrote a custom service which retrieved power data from and APC UPS and stored it in the leaf wetness field (and another that I don't recall). I then used a custom skin and report to generate statistics and graphs using that data (don't recall how but will figure it out). My

[weewx-user] Re: Network Database with one parameter

2017-12-14 Thread Joe Percival
it. Then I could use all the suggestions in the documentation for a 2nd data source. I'd just have to anticipate error conditions and figure out how to deal with them. On Thursday, December 14, 2017 at 10:53:30 AM UTC-8, Joe Percival wrote: > > I am going to have a network accessible database which

[weewx-user] Re: Network Database with one parameter

2017-12-14 Thread Joe Percival
to the schema, run that instance of weewx in simulator mode, and write a new service that grabs the snow depth data and stores it. I did something similar ages ago using one of the many unused parameters in the existing schema. On Thursday, December 14, 2017 at 10:53:30 AM UTC-8, Joe Percival

[weewx-user] Network Database with one parameter

2017-12-14 Thread Joe Percival
I am going to have a network accessible database which holds a single parameter, snowDepth, as well as dateTime (and usUnits and interval if necessary). I've read the customization documentation about using more than one database but the assumption there was both databases were using the weewx

[weewx-user] Replacing Davis Sensor Suite

2017-10-06 Thread Joe Percival
Well, it ran for over 10 years so i shouldn’t complain but it looks like my vantage pro 2 sensor suite has died. Is there anything special I need to do with weewx when I replace the sensors? Thanks in advance -- You received this message because you are subscribed to the Google Groups

[weewx-user] UPS monitoring service

2017-09-27 Thread Joe Percival
Back in the day, about 7 years ago, when I first built my weewx based weather information server, one of the things I did was to build a custom service that captured status from my UPS using apcupsd. The line voltage was stored in the database using an existing but unused parameter like leaf

Re: [weewx-user] Re: New location for custom generators

2017-09-24 Thread Joe Percival
Woot! It's working! -- 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

Re: [weewx-user] Re: New location for custom generators

2017-09-24 Thread Joe Percival
Whoops... HTML root is defined in the skin config file, not the weewx config file. -- 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

Re: [weewx-user] Re: New location for custom generators

2017-09-24 Thread Joe Percival
Except WEEWX_ROOT is no longer under station and HTML_ROOT is now under StdReport. I'm trying with this modified parameter architecture -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails

[weewx-user] Re: New location for custom generators

2017-09-24 Thread Joe Percival
On Friday, September 22, 2017 at 11:27:16 AM UTC-7, Joe Percival wrote: > > I'm moving from a very old version of weewx (1.9.2 I think) to the latest > 3.7.1. I had developed a custom generator to capture and manipulate webcam > images. A couple questions... > 1). The old lo

Re: [weewx-user] New location for custom generators

2017-09-23 Thread Joe Percival
that are to be run: # [Generators] generator_list = weewx.cameragenerator.CameraGenerator #weewx.filegenerator.FileGenerator, weewx.imagegenerator.ImageGenerator, weewx.reportengine.CopyGenerator On Saturday, September 23, 2017 at 10:08:53 AM UTC-7, Joe Percival wrote: > > an

Re: [weewx-user] New location for custom generators

2017-09-23 Thread Joe Percival
draw.rectangle([0,0,640,20],(0,0,0,10)) draw.text((5,5),"Cam " + str(port+1)+' updated on '+timestr,font=font) outImage.save(localpath+str(port+1)+'.jpg') On Saturday, September 23, 2017 at 10:04:46 AM UTC-7, Joe Percival wrote: > > First, an explana

Re: [weewx-user] New location for custom generators

2017-09-23 Thread Joe Percival
or): """Class for managing the cam image generator.""" Is that the right place to start? Thanks, joe On Friday, September 22, 2017 at 5:31:18 PM UTC-7, Tom Keffer wrote: > > It should go in bin/user. > > -tk > > On Fri, Sep 22, 2017 at 5:26 PM, Jo

Re: [weewx-user] New location for custom generators

2017-09-22 Thread Joe Percival
Actually the most important first question I have is regarding the custom generator location bin/weewx or do I need to move it to bin/user? -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving

Re: [weewx-user] New location for custom generators

2017-09-22 Thread Joe Percival
Precisely. Will post architecture and redacted code tomorrow -- 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

Re: [weewx-user] New location for custom generators

2017-09-22 Thread Joe Percival
. I have spent a lot of hours reading. I think I'm close to figuring out where to put things but will post more detail tomorrow. Basically I want to run a custom python script every time a new report is generated that places some webcam images in a directory that feta ftpd up to my host. I

[weewx-user] New location for custom generators

2017-09-22 Thread Joe Percival
I'm moving from a very old version of weewx (1.9.2 I think) to the latest 3.7.1. I had developed a custom generator to capture and manipulate webcam images. A couple questions... 1). The old location for the custom generator was alongside the weewx generators in weewx/bin/weewx. In the new

Re: [weewx-user] No /dev/ttyUSB0

2017-09-22 Thread Joe Percival
. After getting the new raspberry 3 B set up and configured to boot from hard drive, run NUT, and configured as a RealVNC server, installing and getting weewx running and talking to my station was really straightforward! Thanks so much for awesome software, documentation, and support! --

Re: [weewx-user] No /dev/ttyUSB0

2017-09-18 Thread Joe Percival
Thank you for being so responsive and tolerant! Will start work on rpi 3 tomorrow. I found a YouTube video by a guy running weewx on rpi 3 so am hopeful. The Azulle had to have a custom build of ubuntu because of other driver issues, like wifi. I suspect this is just one more of its

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
Will the raspberry pi 3 work? This is not the first major problem ive had with tha byte plus -- 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

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
When I disconnect the vantage, reconnect it, and then do dmesg I get: USB disconnect, device number 10 new full-speed USB device number 11 using xhci_hcd Every time I disconnect and reconnect, the device number increments -- You received this message because you are subscribed to the Google

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
They only have files for Linux kernels 2.x and 3.x. Ubuntu 16.04 uses kernel version 4.4  -- 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

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
Nothing came back from the find command -- 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

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
Oh, and when I do a lsusb -t the driver for this connection is empty. On Sunday, September 17, 2017 at 12:00:07 PM UTC-7, Joe Percival wrote: > > I don't see anything like that. Could this be a clue? > When I did a lsusb the vantage connection indicates that it is a cp210x >

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
Not osmosis... lsmod  -- 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

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
I'm about ready to give up on this box and go with the well known rasberry pi 3. -- 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

Re: [weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
I don't see anything like that. Could this be a clue? When I did a lsusb the vantage connection indicates that it is a cp210x UART bridge. When I do a osmosis, cp210x is not listed. Usbserial is also missing. Does this mean that the build that came with my machine is incompatible? -- You

[weewx-user] No /dev/ttyUSB0

2017-09-17 Thread Joe Percival
Trying to check connection to vantage pro 2 USB but I have no file /dev/ttyUSB0, nor anything similar. I'm running ubuntu 16.04 LTS on an Azulle Byte Plus. Station is on and plugged into the USB 2.0 port and some other things are plugged into a hub on one of the USB 3.0 ports. Any idea what I

Re: [weewx-user] Cache Problem

2017-03-16 Thread Joe Percival
> > helpful? > > -tk > > On Thu, Mar 16, 2017 at 7:59 AM, Joe Percival <j...@bigtreestech.com > > wrote: > >> Recently my webhost (bluehost) started adding scripts, without notice or >> permission, that institute both page and browser caching which has result

[weewx-user] Cache Problem

2017-03-16 Thread Joe Percival
Recently my webhost (bluehost) started adding scripts, without notice or permission, that institute both page and browser caching which has resulted in users being presented with old images unless the image name is changed somehow. I was wondering if there might be a way to do the following: 1)

[weewx-user] start problem

2017-03-10 Thread Joe Percival
I have tried sudo weewxd weewx.conf but I get an error message saying there there is no command weewxd. I installed using setup.py on ubuntu 16.04 I have since upgraded to ubuntu 16.10 in an attempt to fix a bluetooth keyboard problem (unsuccessfully). I put /home/weewx/bin on the PATH and have

[weewx-user] Pillow vs PIL

2017-03-07 Thread Joe Percival
I followed the setup.py installation instructions. One of those instructions is to execute: sudo apt-get install python-imaging >From what I have read, under Ubuntu, this may install Pillow instead of the older PIL, and I have seen suggestions that this may result in the need to install more

[weewx-user] Re: Ownership

2017-03-05 Thread Joe Percival
thank you! On Sunday, March 5, 2017 at 6:00:09 PM UTC-8, Joe Percival wrote: > > Do I have to leave all the weewx files under root ownership? > With my Ubuntu install, while I am a super user, I am not root, and do not > know what root's password might be. > So far, I changed own

[weewx-user] Python Version

2017-03-05 Thread Joe Percival
The new box I'm configuring for WeeWx has ubuntu 16.04 and Python 2.7.12 installed. Is it worth the trouble to install the latest Python 2.7.13? Thanks, joe -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop

[weewx-user] Re: Cheetah

2017-03-05 Thread Joe Percival
, 2017 at 12:50:42 PM UTC-8, mwall wrote: > > On Sunday, March 5, 2017 at 1:44:01 PM UTC-5, Joe Percival wrote: >> >> Question(s) of the day: >> It seems that most / all the links to Cheetah documentation within Weewx >> documentation are broken. >> 1) Is Cheetah

[weewx-user] Cheetah

2017-03-05 Thread Joe Percival
It has been years since I was involved with Weewx and I have a steep climb to get back up to speed. While Weewx has been running faithfully for those years, recently my webhost made some changes that have broken a number of things on my site so I need to redesign pretty much everything. I am