[weewx-user] Re: cheetahgenerator: Generate failed with exception ''

2019-09-16 Thread Cat22
Well i seem to have an older copy, are there any relevant changes?

## template for json data to feed the steel series gauges
## $Id: gauge-data.txt.tmpl 1279 2015-03-01 15:49:03Z mwall $
## by Matthew Wall on flight 868 ;)
## 31dec2014
## Updated 25jan2015 by M Crossley, changed cloudbase: to cloudbasevalue:

## definitions for the tags can be found here:
## http://wiki.sandaysoft.com/a/Webtags
##
## the following fields are not directly available from weewx:
##
## ver:10?
## apptemp - calculated in this template
## apptempTL
## apptempTH
## TapptempTL
## TapptempTH
## humidex - calculated in this template
## forecast - calculated by forecasting module
## LastRainTipISO
## Tbeaufort - calculated by this template
## BearingRangeFrom10 - lowest clockwise bearing in last 10 minutes
## BearingRangeTo10 - highest clockwise bearing in last 10 minutes
## CurrentSolarMax - calculated in this template
## WindRoseData
## windrun - calculated in this template
##
## ver:12
## cloudbasevalue - calculated in this template in feet
## cloudbaseunit - defined in this template as ft

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c5dbc062-d237-40c4-b005-9a4d5a6133e6%40googlegroups.com.


[weewx-user] Re: Rasberry Pi weather station with anemometer and camera only

2019-09-16 Thread Steve2Q
Hi Kevin..Steve, N2QLQ here. I could not find the instructable you referred to 
regarding adding the web cam. Very nice and informative site. 

73 Steve

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/600465c2-cd90-4f51-84a7-1f81ef60d009%40googlegroups.com.


[weewx-user] Re: Vantage Vue Station to dump its files on Raspberry Pi???

2019-09-16 Thread Lodewyk Jansen
Hi,

As mentioned i am new to this all - stupid qustion comming up...
How do i access the weewx.sdb file - would i be able to open it in a text 
editor or something like that? 




On Wednesday, 11 September 2019 02:33:51 UTC+12, vince wrote:
>
> On Monday, September 9, 2019 at 6:30:45 PM UTC-7, Lodewyk Jansen wrote:
>>
>> The noise logger is powered by a solar panel and battery box - so the 
>> power supply isn't an issue. 
>>  
>>
> I am a noob when it comes to python and any type of programming - so if 
>> there is a code I can incorporate in the configuration to supply the 
>> 1-minute data interval to a day summary text file it would be much 
>> appreciated. 
>>
>
> Again, just set your station 'and' weewx to the same 60 second interval 
> and you're good to go.
>
> Ideally, it would create a days text file (and create a new one for the 
>> following day) and populate each of the day's text file with data. 
>>
>>
> I'm not sure what you are looking for there, but if you want to see 24*60 
> records per day you just query the archive table in weewx.sdb after the 
> fact to get a listing of what it stored for wind vs. date+time. 
>
>>
>>
>>
>> On Friday, 6 September 2019 15:04:06 UTC+12, vince wrote:
>>>
>>> On Thursday, September 5, 2019 at 6:43:35 PM UTC-7, Lodewyk Jansen wrote:

 The problem is that the USB logger is limited to 516 bins, thus it can 
 only hold 516-minutes of data (~8hours) which isn't near enough. I have a 
 Raspberry Pi and I am hoping that in some way the Logger can dump the raw 
 files on it while out in the field - then afterwards can "open" the files 
 in Weatherlink or some software to get the 1-minute interval data for the 
 whole period it was out in the field. 


>>> Isn't what you're asking about the same as simply setting your archive 
>>> period to 1 minute and letting weewx save the data to its archive table in 
>>> weewx.sdb normally ?
>>>
>>> How are you going to power the pi in the field for 2 weeks ?  Powering 
>>> the thing connected 'to' the Vue is the bigger issue I'd think.   Weewx 
>>> will catch up to the logger every time it starts if you were thinking about 
>>> only running the pi for a short time per day.
>>>
>>> Maybe you should explain what you're trying to do first, there's likely 
>>> a simpler solution to what you're asking about.
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ee2685f9-e2e8-4ced-a9f7-527f70a57a6f%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Pat
Kike, I've added my draft of the generate option. You will need to upgrade 
to the 1.1 beta skin by downloading it from the Belchertown's GitHub 
development branch 
.

Once you have upgraded, for information on how it works, why it works like 
that and how to use it, refer to the wiki's generate option 

 
section. 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f379c15b-6545-4f8b-bcc3-602751df8da3%40googlegroups.com.


[weewx-user] Re: Unable to Run Weewx

2019-09-16 Thread Lance W
It didn't like what I put in for station type, I used "Davis Vantage Pro 
Plus". Is it looking for something else?

On Monday, September 16, 2019 at 3:44:36 PM UTC-7, vince wrote:
>
> Check your weewx.conf file and make sure you defined a station_type
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1454a3fc-62a1-4336-a60e-784d7845b113%40googlegroups.com.


Re: [weewx-user] Unable to Run Weewx

2019-09-16 Thread Lance Wood
Appreciate all the ideas. This has become much more work that I expected. I 
already have a website and was hoping to get weewx working to use parts of 
it.

mountainbase.com is my site just for fun.


On Monday, September 16, 2019 at 4:14:28 PM UTC-7, p q wrote:
>
> If you must run Windows, you might be able to use a virtual machine 
> running Linux. I use Oracle Virtualbox on my main Windows PC to run Weewx. 
> I use it as a test/dev platform for my main Weewx site on a Raspberry PI. 
> Virtualbox is a free download. 
>
> I would recommend you get a cheap linux box, like a Raspberry Pi ($35-$80) 
> to run Weewx. The lower spec, older, cheaper, ones do it just fine.
>
> On Mon, Sep 16, 2019 at 4:05 PM Thomas Keffer  > wrote:
>
>> Two things.
>>
>> 1. Windows is not a supported platform. There is a branch 
>>  in the GitHub repository 
>> that has been ported to Windows, but it is not updated regularly, nor will 
>> its changes be incorporated into the upcoming V4 release.
>>
>> 2. As Vince notes, your copy of weewx.conf has not been configured. 
>> Normally, this is done by setup.py, although it can be done either by hand, 
>> or by using the utility wee_config 
>> . Neither is 
>> supported under Windows.
>>
>> -tk
>>
>>
>> On Mon, Sep 16, 2019 at 2:34 PM LanceW > 
>> wrote:
>>
>>> Let me start by saying that I am new to Python, so please bear with me. 
>>> After installing python and weewx and following the process that was laid 
>>> out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I 
>>> attempted to Run Weewx. I received several errors and they are as follows:
>>>
>>> PS C:\Users\weewx> python bin\weewxd weewx.conf
>>> Traceback (most recent call last):
>>> File "bin\weewxd", line 64, in 
>>> weewx.engine.main(options, args)
>>> File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
>>> engine = engine_class(config_dict)
>>> File "C:\Users\weewx\bin\weewx\engine.py", line 72, in *init*
>>> self.setupStation(config_dict)
>>> File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
>>> driver = config_dict[stationType]['driver']
>>> File "C:\Python27\lib\site-packages\configobj.py", line 554, in 
>>> *getitem*
>>> val = dict.*getitem*(self, key)
>>> KeyError: 'unspecified'
>>>
>>>
>>> Has anyone encountered this before. Thanks in advance.
>>>
>>>
>>> Windows 10 Pro
>>>
>>> Python 2.7
>>>
>>> Weewx-Windows
>>>
>>> Davis Vantage Pro 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 weewx...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEC73Tq5hFDBgnEkwYGmfbPUT5x%2B%3DkHBjQCH1cnnSLRwTQ%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> Peter Quinn
> (415)794-2264
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/48fd75d0-1f41-40fc-9ac3-80c40fb51d8f%40googlegroups.com.


[weewx-user] Re: Unable to Run Weewx

2019-09-16 Thread Lance Wood
I'll take a look at it and define the station and anything else that I can. 
Thanks

On Monday, September 16, 2019 at 3:44:36 PM UTC-7, vince wrote:
>
> Check your weewx.conf file and make sure you defined a station_type
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/53bc7e85-c25b-46b7-8d73-8c13a777eca3%40googlegroups.com.


Re: [weewx-user] Unable to Run Weewx

2019-09-16 Thread Greg from Oz
Hi,
I don't use windows but I heard there is a windows subsystem for Linux 
(WSL). 

I wonder if weewx would work in that or is it limited to what i can do?

I use Linux.


On Tuesday, 17 September 2019 09:05:53 UTC+10, Thomas Keffer wrote:
>
> Two things.
>
> 1. Windows is not a supported platform. There is a branch 
>  in the GitHub repository 
> that has been ported to Windows, but it is not updated regularly, nor will 
> its changes be incorporated into the upcoming V4 release.
>
> 2. As Vince notes, your copy of weewx.conf has not been configured. 
> Normally, this is done by setup.py, although it can be done either by hand, 
> or by using the utility wee_config 
> . Neither is 
> supported under Windows.
>
> -tk
>
>
> On Mon, Sep 16, 2019 at 2:34 PM LanceW > 
> wrote:
>
>> Let me start by saying that I am new to Python, so please bear with me. 
>> After installing python and weewx and following the process that was laid 
>> out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I 
>> attempted to Run Weewx. I received several errors and they are as follows:
>>
>> PS C:\Users\weewx> python bin\weewxd weewx.conf
>> Traceback (most recent call last):
>> File "bin\weewxd", line 64, in 
>> weewx.engine.main(options, args)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
>> engine = engine_class(config_dict)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 72, in *init*
>> self.setupStation(config_dict)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
>> driver = config_dict[stationType]['driver']
>> File "C:\Python27\lib\site-packages\configobj.py", line 554, in *getitem*
>> val = dict.*getitem*(self, key)
>> KeyError: 'unspecified'
>>
>>
>> Has anyone encountered this before. Thanks in advance.
>>
>>
>> Windows 10 Pro
>>
>> Python 2.7
>>
>> Weewx-Windows
>>
>> Davis Vantage Pro 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 weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/56072570-b9d7-4ffb-add7-9645610ca150%40googlegroups.com.


Re: [weewx-user] Unable to Run Weewx

2019-09-16 Thread p q
If you must run Windows, you might be able to use a virtual machine running
Linux. I use Oracle Virtualbox on my main Windows PC to run Weewx. I use it
as a test/dev platform for my main Weewx site on a Raspberry PI. Virtualbox
is a free download.

I would recommend you get a cheap linux box, like a Raspberry Pi ($35-$80)
to run Weewx. The lower spec, older, cheaper, ones do it just fine.

On Mon, Sep 16, 2019 at 4:05 PM Thomas Keffer  wrote:

> Two things.
>
> 1. Windows is not a supported platform. There is a branch
>  in the GitHub repository
> that has been ported to Windows, but it is not updated regularly, nor will
> its changes be incorporated into the upcoming V4 release.
>
> 2. As Vince notes, your copy of weewx.conf has not been configured.
> Normally, this is done by setup.py, although it can be done either by hand,
> or by using the utility wee_config
> . Neither is
> supported under Windows.
>
> -tk
>
>
> On Mon, Sep 16, 2019 at 2:34 PM LanceW  wrote:
>
>> Let me start by saying that I am new to Python, so please bear with me.
>> After installing python and weewx and following the process that was laid
>> out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I
>> attempted to Run Weewx. I received several errors and they are as follows:
>>
>> PS C:\Users\weewx> python bin\weewxd weewx.conf
>> Traceback (most recent call last):
>> File "bin\weewxd", line 64, in
>> weewx.engine.main(options, args)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
>> engine = engine_class(config_dict)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 72, in *init*
>> self.setupStation(config_dict)
>> File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
>> driver = config_dict[stationType]['driver']
>> File "C:\Python27\lib\site-packages\configobj.py", line 554, in *getitem*
>> val = dict.*getitem*(self, key)
>> KeyError: 'unspecified'
>>
>>
>> Has anyone encountered this before. Thanks in advance.
>>
>>
>> Windows 10 Pro
>>
>> Python 2.7
>>
>> Weewx-Windows
>>
>> Davis Vantage Pro 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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEC73Tq5hFDBgnEkwYGmfbPUT5x%2B%3DkHBjQCH1cnnSLRwTQ%40mail.gmail.com
> 
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM202q_x3Gb_%2BFsXrqhTCUHwabDRib0oRNoH4EYV7ZR0XPw%40mail.gmail.com.


Re: [weewx-user] Unable to Run Weewx

2019-09-16 Thread Thomas Keffer
Two things.

1. Windows is not a supported platform. There is a branch
 in the GitHub repository that
has been ported to Windows, but it is not updated regularly, nor will its
changes be incorporated into the upcoming V4 release.

2. As Vince notes, your copy of weewx.conf has not been configured.
Normally, this is done by setup.py, although it can be done either by hand,
or by using the utility wee_config
. Neither is
supported under Windows.

-tk


On Mon, Sep 16, 2019 at 2:34 PM LanceW  wrote:

> Let me start by saying that I am new to Python, so please bear with me.
> After installing python and weewx and following the process that was laid
> out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I
> attempted to Run Weewx. I received several errors and they are as follows:
>
> PS C:\Users\weewx> python bin\weewxd weewx.conf
> Traceback (most recent call last):
> File "bin\weewxd", line 64, in
> weewx.engine.main(options, args)
> File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
> engine = engine_class(config_dict)
> File "C:\Users\weewx\bin\weewx\engine.py", line 72, in *init*
> self.setupStation(config_dict)
> File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
> driver = config_dict[stationType]['driver']
> File "C:\Python27\lib\site-packages\configobj.py", line 554, in *getitem*
> val = dict.*getitem*(self, key)
> KeyError: 'unspecified'
>
>
> Has anyone encountered this before. Thanks in advance.
>
>
> Windows 10 Pro
>
> Python 2.7
>
> Weewx-Windows
>
> Davis Vantage Pro 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEC73Tq5hFDBgnEkwYGmfbPUT5x%2B%3DkHBjQCH1cnnSLRwTQ%40mail.gmail.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Pat
Marten, any of the variables found within weewx will work. I don't maintain 
a list since this is not skin specific. You can check the source code of 
the Seasons skin, the Standard skin or see if the User's Guide can offer 
any insight. 

For the signal quality, I am using this code which was borrowed and 
modified from the Season skin :)

#if $day.txBatteryStatus.has_data

  
Transmitter Battery
  
#if $current.txBatteryStatus.raw == 0
OK
#else
LOW
#end if
  

#end if
#if $day.rxCheckPercent.has_data

Signal Quality
$current.rxCheckPercent

#end if




On Monday, September 16, 2019 at 5:06:12 PM UTC-4, Marten Hinrichs wrote:
>
> Hi,
>
> Your Skin is Great and i currently Customized my Website.
>
> I am edit my about.inc template file. Now i have a problem with the 
> Variables for the Station. Is there a List of available Variables? Like
>
>  $station.hardware
>  $station.os_uptime
>  $station.uptime
> $station.version
> $belchertown_version
>
> I am interested in Signal Quality/Battery Status/ Like your Page.  Can 
> anybody Help me? I have a Davis Vantage Pro 2.
>
> MfG Marten
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c4e622e8-e3a1-4fff-90a3-abe7a503e321%40googlegroups.com.


[weewx-user] Re: Unable to Run Weewx

2019-09-16 Thread vince
Check your weewx.conf file and make sure you defined a station_type

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9cf9b127-f499-430d-a12a-33b8be8610d0%40googlegroups.com.


[weewx-user] Unable to Run Weewx

2019-09-16 Thread LanceW


Let me start by saying that I am new to Python, so please bear with me. 
After installing python and weewx and following the process that was laid 
out here: https://github.com/weewx/weewx/wiki/weewx-on-windows , I 
attempted to Run Weewx. I received several errors and they are as follows:

PS C:\Users\weewx> python bin\weewxd weewx.conf
Traceback (most recent call last):
File "bin\weewxd", line 64, in 
weewx.engine.main(options, args)
File "C:\Users\weewx\bin\weewx\engine.py", line 891, in main
engine = engine_class(config_dict)
File "C:\Users\weewx\bin\weewx\engine.py", line 72, in *init*
self.setupStation(config_dict)
File "C:\Users\weewx\bin\weewx\engine.py", line 90, in setupStation
driver = config_dict[stationType]['driver']
File "C:\Python27\lib\site-packages\configobj.py", line 554, in *getitem*
val = dict.*getitem*(self, key)
KeyError: 'unspecified'


Has anyone encountered this before. Thanks in advance.


Windows 10 Pro

Python 2.7

Weewx-Windows

Davis Vantage Pro 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/24f6c3b8-c8db-4a12-892b-48af10117623%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Marten Hinrichs
Hi,

Your Skin is Great and i currently Customized my Website.

I am edit my about.inc template file. Now i have a problem with the 
Variables for the Station. Is there a List of available Variables? Like

 $station.hardware
 $station.os_uptime
 $station.uptime
$station.version
$belchertown_version

I am interested in Signal Quality/Battery Status/ Like your Page.  Can 
anybody Help me? I have a Davis Vantage Pro 2.

MfG Marten

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/847d60ed-bb8c-47fe-9eea-bfcacd66c294%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Pat
*So you're asking for a complete re-write of the skin?* By all means fork 
it and make it your own! :)

weewx is only generating a small number of web pages for Belchertown. That 
overhead - even on a Pi - is very small. Disable Highcharts and you will 
see. Set Belchertown skin.conf option highcharts_enabled = 0. 

It's the charts with large time spans with a lot of data points. that will 
bog a Pi down. This is a known fact, and even documented with a warning 
inside of graphs.conf itself 

. 

As for the AJAX calls, it's calling 2 files and all the chart data. One is 
the weewx_data.json to populate various fields on the front page, forecast 
json for forecast data, and then all the chart data. 

Calling chart data over an AJAX call is not a problem for your Pi, only a 
problem for the client (like a cell phone not on wifi) if the data set is 
very large. 

Sorry, but I don't have the time to create and support a REST API which 
everyone can point their system to in order to get updates. This is why I 
chose MQTT and why the skin is using it. That's Scenario 5 

. 

As for the graphs, not everyone has web-facing access to MySQL, so the JSON 
files are preferred for many users of the skin based on feedback. 

There are other skins here, one of which have launched Highcharts within 
the last 3 days. That skin also uses the JSON method to transport data to 
the chart and client. 

I'm working on the generator delay option you've asked twice for. My draft 
is working but there's limitations to it. I'll commit something when I can. 



On Monday, September 16, 2019 at 12:52:04 PM UTC-4, Kike .Asekas wrote:
>
> I want to try it. I'm looking at the code but I don't know if I'll be 
> able to change it. I'm still getting it.
> I have been looking at the documentation of the weewx github wiki and I 
> think that in this skin that obtains the data with ajax it is not necessary 
> all the weewx page generation infrastructure to generate the same page at 
> each turn.
> https://github.com/weewx/weewx/wiki/dashboards
> Wouldn't it be interesting to have the skin as described in Scenario 3: 
> Upload LOOP / REC data to public-facing front-end? Weewx would handle 
> calculations, conversion, storage in the bd, publication in wu and others 
> and generate the json necessary for the skin but not the generation of web 
> pages.
>
> How about? Would it be a lot of change?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c54697cd-4c17-4232-85c0-67ecfe7506c1%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Kike .Asekas
I want to try it. I'm looking at the code but I don't know if I'll be able 
to change it. I'm still getting it.
I have been looking at the documentation of the weewx github wiki and I 
think that in this skin that obtains the data with ajax it is not necessary 
all the weewx page generation infrastructure to generate the same page at 
each turn.
https://github.com/weewx/weewx/wiki/dashboards
Wouldn't it be interesting to have the skin as described in Scenario 3: 
Upload LOOP / REC data to public-facing front-end? Weewx would handle 
calculations, conversion, storage in the bd, publication in wu and others 
and generate the json necessary for the skin but not the generation of web 
pages.

How about? Would it be a lot of change?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bca58328-20a2-44f6-8440-a78e88abb10c%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Pat
No problem. I have something drafted. I will let you know when I commit it 
to development branch and you can try it. 

On Monday, September 16, 2019 at 7:41:24 AM UTC-4, Kike .Asekas wrote:
>
> Thanks for your answer. I thought of using a new page for that series of 
> graphics to put in cheetahgenerator in skin.conf that I generate it every 
> month but I think I don't get anything with that because even if it is 
> another page the generation is in graphs.conf and they are generated equally 
> in 
> every turn.
> I hope I can help you, but I don't know if I will have enough knowledge to 
> do it.
> Greetings
>
>
> El lunes, 16 de septiembre de 2019, 12:41:01 (UTC+2), Pat escribió:
>>
>> Hi Kike, I'm glad you're enjoying the skin. You've mentioned this 
>> problem of yours before 
>> . I 
>> have it written down to look into. I volunteer my time to this project and 
>> haven't had enough time to add this feature to development. 
>>
>> If you implement a way to do this before I can, a pull request is 
>> welcomed so it can be added in. It could possibly take the "crontab" 
>> approach of "generate = daily" or "generate = hourly" in the graph group. 
>> Then belchertown.py would have to translate that to a timestamp and compare 
>> that on every run. A lot of testing would have to take place.  
>>
>> On Monday, September 16, 2019 at 4:30:26 AM UTC-4, Kike .Asekas wrote:
>>>
>>> This skin allows us to make amazing graphics and this makes us want to 
>>> have many.
>>> The problem is that when we want to make a graph that compares the 
>>> average temperatures of the last 10 years per month and another similar 
>>> with the rain, it causes in my rpi 2b + to have blockages in the database 
>>> when it coincides that weewx is writing in the database.
>>> These graphs do not need to be made at each turn because only the last 
>>> query will change minimally and the queries are repeated to obtain data 
>>> already calculated and that do not vary. I believe that something would 
>>> have to be changed so that only the last query (the last month of the last 
>>> year in the example) should be done and take advantage of the previous json 
>>> data. I don't know if it's possible or complicated to do this.
>>> Another way could be marking some graphs so that they are not generated 
>>> every turn.
>>> In my case with the rpi in theory I can have amazing graphics but in 
>>> practice I have to remove them by having many queries that cause me to have 
>>> blockages and data loss.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8ea28dd9-a4f9-45c3-8bc3-927aa905892f%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Kike .Asekas
Thanks for your answer. I thought of using a new page for that series of 
graphics to put in cheetahgenerator in skin.conf that I generate it every 
month but I think I don't get anything with that because even if it is 
another page the generation is in graphs.conf and they are generated equally in 
every turn.
I hope I can help you, but I don't know if I will have enough knowledge to 
do it.
Greetings


El lunes, 16 de septiembre de 2019, 12:41:01 (UTC+2), Pat escribió:
>
> Hi Kike, I'm glad you're enjoying the skin. You've mentioned this problem 
> of yours before 
> . I 
> have it written down to look into. I volunteer my time to this project and 
> haven't had enough time to add this feature to development. 
>
> If you implement a way to do this before I can, a pull request is welcomed 
> so it can be added in. It could possibly take the "crontab" approach of 
> "generate = daily" or "generate = hourly" in the graph group. Then 
> belchertown.py would have to translate that to a timestamp and compare that 
> on every run. A lot of testing would have to take place.  
>
> On Monday, September 16, 2019 at 4:30:26 AM UTC-4, Kike .Asekas wrote:
>>
>> This skin allows us to make amazing graphics and this makes us want to 
>> have many.
>> The problem is that when we want to make a graph that compares the 
>> average temperatures of the last 10 years per month and another similar 
>> with the rain, it causes in my rpi 2b + to have blockages in the database 
>> when it coincides that weewx is writing in the database.
>> These graphs do not need to be made at each turn because only the last 
>> query will change minimally and the queries are repeated to obtain data 
>> already calculated and that do not vary. I believe that something would 
>> have to be changed so that only the last query (the last month of the last 
>> year in the example) should be done and take advantage of the previous json 
>> data. I don't know if it's possible or complicated to do this.
>> Another way could be marking some graphs so that they are not generated 
>> every turn.
>> In my case with the rpi in theory I can have amazing graphics but in 
>> practice I have to remove them by having many queries that cause me to have 
>> blockages and data loss.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/08173a53-f985-4b09-8e6f-aa5001d0c544%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Pat
Hi Kike, I'm glad you're enjoying the skin. You've mentioned this problem 
of yours before 
. I 
have it written down to look into. I volunteer my time to this project and 
haven't had enough time to add this feature to development. 

If you implement a way to do this before I can, a pull request is welcomed 
so it can be added in. It could possibly take the "crontab" approach of 
"generate = daily" or "generate = hourly" in the graph group. Then 
belchertown.py would have to translate that to a timestamp and compare that 
on every run. A lot of testing would have to take place.  

On Monday, September 16, 2019 at 4:30:26 AM UTC-4, Kike .Asekas wrote:
>
> This skin allows us to make amazing graphics and this makes us want to 
> have many.
> The problem is that when we want to make a graph that compares the average 
> temperatures of the last 10 years per month and another similar with the 
> rain, it causes in my rpi 2b + to have blockages in the database when it 
> coincides that weewx is writing in the database.
> These graphs do not need to be made at each turn because only the last 
> query will change minimally and the queries are repeated to obtain data 
> already calculated and that do not vary. I believe that something would 
> have to be changed so that only the last query (the last month of the last 
> year in the example) should be done and take advantage of the previous json 
> data. I don't know if it's possible or complicated to do this.
> Another way could be marking some graphs so that they are not generated 
> every turn.
> In my case with the rpi in theory I can have amazing graphics but in 
> practice I have to remove them by having many queries that cause me to have 
> blockages and data loss.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1db7b861-d36d-426e-9764-22348d8b6165%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-09-16 Thread Kike .Asekas
This skin allows us to make amazing graphics and this makes us want to have 
many.
The problem is that when we want to make a graph that compares the average 
temperatures of the last 10 years per month and another similar with the 
rain, it causes in my rpi 2b + to have blockages in the database when it 
coincides that weewx is writing in the database.
These graphs do not need to be made at each turn because only the last 
query will change minimally and the queries are repeated to obtain data 
already calculated and that do not vary. I believe that something would 
have to be changed so that only the last query (the last month of the last 
year in the example) should be done and take advantage of the previous json 
data. I don't know if it's possible or complicated to do this.
Another way could be marking some graphs so that they are not generated 
every turn.
In my case with the rpi in theory I can have amazing graphics but in 
practice I have to remove them by having many queries that cause me to have 
blockages and data loss.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e258d446-ea7e-4c66-b3b7-00a7f4e5f678%40googlegroups.com.


[weewx-user] SDR driver don't kill your last process and it's unable to restart

2019-09-16 Thread Kike .Asekas
I am having problems with the sdr driver as a result of having a page with 
many queries that causes after a few hours when weewx writes in the 
database it gives the database is locked error. 
I also don't understand why weewx doesn't wait for the query to finish 
before writing.
When this happens, weewx restart but the sdr driver is unable to boot 
because there is another process rtl_433 running and it gives the error 
usb_claim_interface error -6. 
The driver enters in a loop that does not come out until I stop weewx, kill 
the rtl_433 process and start weewx again
I think the problem is that the previous rtl_433 process was not killed.

Sep 16 00:06:03 raspberrypi weewx[21121]: manager: Added record 2019-09-16 
00:05:00 CEST (1568585100) to database 'weewx.sdb'
Sep 16 00:06:03 raspberrypi weewx[21121]: manager: Added record 2019-09-16 
00:05:00 CEST (1568585100) to daily summary in 'weewx.sdb'
Sep 16 00:06:08 raspberrypi weewx[21121]: engine: Main loop exiting. 
Shutting engine down.
Sep 16 00:06:08 raspberrypi weewx[21121]: engine: Shutting down StdReport 
thread
Sep 16 00:06:09 raspberrypi weewx[21121]: Belchertown Extension: 
Query:SELECT strftime("%m", datetime(dateTime, "unixepoch")) as month, 
IFNULL(sum(rain),0) as obs FROM archive WHERE dateTime >= 1420066800 AND 
dateTime <= 1451602800 GROUP BY month;
Sep 16 00:06:14 raspberrypi weewx[21121]: reportengine: Caught 
unrecoverable exception in generator 
'user.belchertown.HighchartsJsonGenerator'
Sep 16 00:06:14 raspberrypi weewx[21121]:   database is locked
Sep 16 00:06:14 raspberrypi weewx[21121]:   Traceback (most 
recent call last):
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/weewx/reportengine.py", line 204, in run
Sep 16 00:06:14 raspberrypi weewx[21121]:   obj.start()
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/weewx/reportengine.py", line 300, in start
Sep 16 00:06:14 raspberrypi weewx[21121]:   self.run()
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/user/belchertown.py", line 1205, in run
Sep 16 00:06:14 raspberrypi weewx[21121]:   series_data = 
self._getObservationData(binding, archive, observation_type, minstamp, 
maxstamp, aggregate_type, aggregate_interval, time_length, xaxis_groupby, 
xaxis_categories, mirrored_value)
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/user/belchertown.py", line 1592, in _getObservationData
Sep 16 00:06:14 raspberrypi weewx[21121]:   for row in 
query:
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/weewx/manager.py", line 407, in genSql
Sep 16 00:06:14 raspberrypi weewx[21121]:   for _row in 
_cursor.execute(sql, sqlargs):
Sep 16 00:06:14 raspberrypi weewx[21121]: File 
"/usr/share/weewx/weedb/sqlite.py", line 43, in guarded_fn
Sep 16 00:06:14 raspberrypi weewx[21121]:   raise 
weedb.OperationalError(e)
Sep 16 00:06:14 raspberrypi weewx[21121]:   OperationalError: 
database is locked
Sep 16 00:06:14 raspberrypi weewx[21121]:   Generator terminated
Sep 16 00:06:14 raspberrypi weewx[21121]: sdr: MainThread: shutdown process 
rtl_433 -q -F json -R 32 -M utc -f 868.3M
Sep 16 00:06:24 raspberrypi weewx[21121]: sdr: MainThread: timed out 
waiting for stdout-thread
Sep 16 00:06:34 raspberrypi weewx[21121]: sdr: MainThread: timed out 
waiting for stderr-thread
Sep 16 00:06:34 raspberrypi weewx[21121]: engine: Database OperationalError 
exception: database is locked
Sep 16 00:06:34 raspberrypi weewx[21121]:   Waiting 2 minutes then 
retrying...
Sep 16 00:08:34 raspberrypi weewx[21121]: engine: retrying...
Sep 16 00:08:34 raspberrypi weewx[21121]: engine: Using configuration file 
/etc/weewx/weewx.conf
Sep 16 00:08:34 raspberrypi weewx[21121]: engine: Loading station type SDR 
(user.sdr)
Sep 16 00:08:34 raspberrypi weewx[21121]: sdr: MainThread: driver version 
is 0.64
Sep 16 00:08:34 raspberrypi weewx[21121]: sdr: MainThread: sensor map is 
{'windGust': 'wind_gust.*.FOWHx080Packet', 'windDir': 
'wind_dir.*.FOWHx080Packet', 'windSpeed': 'wind_speed.*.FOWHx080Packet', 
'outTemp': 'temperature.*.FOWHx080Packet', 'outHumidity': 
'humidity.*.FOWHx080Packet', 'rain_total': 'rain_total.*.FOWHx080Packet', 
'battery': 'battery.*.FOWHx080Packet'}
Sep 16 00:08:34 raspberrypi weewx[21121]: sdr: MainThread: deltas is 
{'rain': 'rain_total'}
Sep 16 00:08:34 raspberrypi weewx[21121]: sdr: MainThread: startup process 
'rtl_433 -q -F json -R 32 -M utc -f 868.3M'
...
...
Sep 16 00:08:35 raspberrypi weewx[21121]: engine: Starting main packet loop.
Sep 16 00:08:35 raspberrypi weewx[21121]: sdr: MainThread: err: ['rtl_433 
version unknown inputs file rtl_tcp RTL-SDR\n', 'Trying conf file at 
"rtl_433.conf"...\n', 'Trying conf file at 
"/root/.config/rtl_433/rtl_433.conf"...\n', 'Trying