[weewx-user] Re: Raspberry kernels later than 4.4 hang when running weewx.

2018-11-05 Thread Alberto Sánchez
I am testing with kernel 4.4.50, the last Cameron's driver and weewx 3.8.2.

I will inform if i have problems or not. 

Thanks for your support Cameron. 

-- 
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: Weewx Skins issue

2018-11-05 Thread dave.spicer2012
Thanks for the tip. After viewing the syslog, turns out there was a typo and 
couldn’t find the skin.

 

Thanks for the quick reply

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
gjr80
Sent: Monday, November 5, 2018 5:43 PM
To: weewx-user 
Subject: [weewx-user] Re: Weewx Skins issue

 

Hi,

 

The clue(s) to what is or is not going on will be in the log, this will likely 
be /var/log/syslog though it could be different depending on your system or if 
you have explicitly changed the weeWX log destination. It could be a case of 
your archive interval is say 30 minutes and no archive records have yet been 
generated (to cause the report cycle to be run). There could be some other 
error that is causing the skin files not to be generated. If you don't feel 
confident interpreting the log post an extract here, ideally covering the 
period from weeWX startup through until at least 15 minutes later.

 

Gary


On Tuesday, 6 November 2018 10:10:33 UTC+10, Dave Spicer wrote:

Please bare with me and sorry if this has been asked. I am very new to weewx 
(been running it for 3 days now). I want to change my skin. The skin that I am 
looking at is exfoliation. As per the directions on Github, I installed and 
restart the weewx service but the skin is not changing when I go and view the 
webpage. I have given it a few minutes just to make sure that the templates is 
the right one. Still Nothing. 

 

When I do a wee_extension --list it does show the skin is there.

 

What do I need to do it get this new skin working correctly?

 

Thanks

Dave

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


[weewx-user] Re: Android weather app for weeWx users

2018-11-05 Thread John Smith
On Tuesday, 6 November 2018 09:57:13 UTC+11, weerman wrote:
>
> Using the latest version 0.512 here. 
>> Edit: Missed the url: https://weatherfrog80.bplaced.net/weewx/ 
>> 
>>  
>>
>
I'm using the same version and used the url:

https://weatherfrog80.bplaced.net/weewx/inigo-settings.txt

and there was no problem

-- 
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 Skins issue

2018-11-05 Thread gjr80
Hi,

The clue(s) to what is or is not going on will be in the log, this will 
likely be /var/log/syslog though it could be different depending on your 
system or if you have explicitly changed the weeWX log destination. It 
could be a case of your archive interval is say 30 minutes and no archive 
records have yet been generated (to cause the report cycle to be run). 
There could be some other error that is causing the skin files not to be 
generated. If you don't feel confident interpreting the log post an extract 
here, ideally covering the period from weeWX startup through until at least 
15 minutes later.

Gary

On Tuesday, 6 November 2018 10:10:33 UTC+10, Dave Spicer wrote:
>
> Please bare with me and sorry if this has been asked. I am very new to 
> weewx (been running it for 3 days now). I want to change my skin. The skin 
> that I am looking at is exfoliation. As per the directions on Github, I 
> installed and restart the weewx service but the skin is not changing when I 
> go and view the webpage. I have given it a few minutes just to make sure 
> that the templates is the right one. Still Nothing. 
>
> When I do a wee_extension --list it does show the skin is there.
>
> What do I need to do it get this new skin working correctly?
>
> Thanks
> Dave
>

-- 
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 gjr80
Ok, the problem is that if you are starting from a clean install (including 
database) running the simulator after a daylight savings change the 
timezone/daylight savings state of your system is irrelevant, all 
times/timestamps are drawn from the system clock and if it is not changing 
(since the daylight saving cutover was in the past) then daylight saving 
cannot be the cause of the error.

Do you still have the logs on your system from when you did the clean 
install using simulator and SQLite? If so can you post the log from when 
weeWX first started after that install through until the error appeared. If 
you don't have the logs then please do a clean install using the simulator 
and SQLite and provide the log showing weeWX startup through until the 
error occurs.

Gary

On Tuesday, 6 November 2018 09:59:06 UTC+10, Jonis Maurin Ceará wrote:
>
> Ok, let me explain:
>
> 1) Remove all packages and files relates to weewx (including all dir and 
> subdirs on /etc/weewx, /usr/share/weewx, /var/lib/weewx or /usr/lib/weewx, 
> don't rememebr now). Everything
> 2) Install from .deb package and accept default settings (name, location, 
> driver=simulation, etc...)
> 3) Just start, done!
>
> When you access webpage, loads fine.but still the same error in 
> logfile, wind column not found (of course, the error is using sqlite, and 
> not mysqllite like I posted).
>
> Second attempt:
> 1) Change archive database to mysql instead of sqlite.
> 2) Re-start weewx. Tables are created and archive page is created
> 3) Still the same problem on log (wind column), but information on log's 
> say 'mysql' driver, and not sqlite.
>
> And then with fileparser driver, with exactly same results
>
>
> I found something related to brazilian daylight saving time, but I lost 
> the link of thread and also I don't knwo where to put suggested user code 
> (is modification of core code, I think).
>
>
> Em seg, 5 de nov de 2018 às 21:31, gjr80 > 
> escreveu:
>
>> On Tuesday, 6 November 2018 01:57:22 UTC+10, Jonis Maurin Ceará wrote:
>>>
>>> Content of /tmp/weather.data:
>>>
>>> rainRate=0.0
>>> windSpeed=10.0466685247
>>> windGust=16.3395133004
>>> pressure=28.0709227
>>> outTemp=84.2
>>> outHumidity=71.169482
>>> windDir=0.0
>>> UV=1.59
>>> VIS=554
>>>
>>
>> OK, so dateTime is not being overridden by your source data (for 
>> fileparse driver the default is for the dateTime field to be set from the 
>> system time).
>>
>> But the problem is that this errors ocours even with simulator on fresh 
>>> install
>>>
>>
>> There must be more to this. What do you mean by 'simulator on fresh 
>> install'. A fresh install of weeWX using the simulator I presume, but what 
>> about your database? You were using MySQL so a new weeWX install does not 
>> necessarily mean a clean database, whereas a new install using SQLite does 
>> erase the database. My apologies if your situation is very clear to you, 
>> but you have used two drivers, two different database engines and two 
>> versions of weeWX so it is not very clear to me exactly what your current 
>> setup is.
>>
>> Gary
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/llOh8p8emYY/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.


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.


[weewx-user] Weewx Skins issue

2018-11-05 Thread Dave Spicer
Please bare with me and sorry if this has been asked. I am very new to 
weewx (been running it for 3 days now). I want to change my skin. The skin 
that I am looking at is exfoliation. As per the directions on Github, I 
installed and restart the weewx service but the skin is not changing when I 
go and view the webpage. I have given it a few minutes just to make sure 
that the templates is the right one. Still Nothing. 

When I do a wee_extension --list it does show the skin is there.

What do I need to do it get this new skin working correctly?

Thanks
Dave

-- 
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 Jonis Maurin Ceará
Ok, let me explain:

1) Remove all packages and files relates to weewx (including all dir and
subdirs on /etc/weewx, /usr/share/weewx, /var/lib/weewx or /usr/lib/weewx,
don't rememebr now). Everything
2) Install from .deb package and accept default settings (name, location,
driver=simulation, etc...)
3) Just start, done!

When you access webpage, loads fine.but still the same error in
logfile, wind column not found (of course, the error is using sqlite, and
not mysqllite like I posted).

Second attempt:
1) Change archive database to mysql instead of sqlite.
2) Re-start weewx. Tables are created and archive page is created
3) Still the same problem on log (wind column), but information on log's
say 'mysql' driver, and not sqlite.

And then with fileparser driver, with exactly same results


I found something related to brazilian daylight saving time, but I lost the
link of thread and also I don't knwo where to put suggested user code (is
modification of core code, I think).


Em seg, 5 de nov de 2018 às 21:31, gjr80  escreveu:

> On Tuesday, 6 November 2018 01:57:22 UTC+10, Jonis Maurin Ceará wrote:
>>
>> Content of /tmp/weather.data:
>>
>> rainRate=0.0
>> windSpeed=10.0466685247
>> windGust=16.3395133004
>> pressure=28.0709227
>> outTemp=84.2
>> outHumidity=71.169482
>> windDir=0.0
>> UV=1.59
>> VIS=554
>>
>
> OK, so dateTime is not being overridden by your source data (for
> fileparse driver the default is for the dateTime field to be set from the
> system time).
>
> But the problem is that this errors ocours even with simulator on fresh
>> install
>>
>
> There must be more to this. What do you mean by 'simulator on fresh
> install'. A fresh install of weeWX using the simulator I presume, but what
> about your database? You were using MySQL so a new weeWX install does not
> necessarily mean a clean database, whereas a new install using SQLite does
> erase the database. My apologies if your situation is very clear to you,
> but you have used two drivers, two different database engines and two
> versions of weeWX so it is not very clear to me exactly what your current
> setup is.
>
> Gary
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/llOh8p8emYY/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


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

2018-11-05 Thread gjr80
On Tuesday, 6 November 2018 01:57:22 UTC+10, Jonis Maurin Ceará wrote:
>
> Content of /tmp/weather.data:
>
> rainRate=0.0
> windSpeed=10.0466685247
> windGust=16.3395133004
> pressure=28.0709227
> outTemp=84.2
> outHumidity=71.169482
> windDir=0.0
> UV=1.59
> VIS=554
>

OK, so dateTime is not being overridden by your source data (for fileparse 
driver the default is for the dateTime field to be set from the system 
time).

But the problem is that this errors ocours even with simulator on fresh 
> install
>

There must be more to this. What do you mean by 'simulator on fresh 
install'. A fresh install of weeWX using the simulator I presume, but what 
about your database? You were using MySQL so a new weeWX install does not 
necessarily mean a clean database, whereas a new install using SQLite does 
erase the database. My apologies if your situation is very clear to you, 
but you have used two drivers, two different database engines and two 
versions of weeWX so it is not very clear to me exactly what your current 
setup is.

Gary

-- 
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: Weather Dispaly Software

2018-11-05 Thread gjr80
Bearing in mind that if the '3rd party software' is Weather Display (or any 
other PWS application) and you are using it to interact with your station 
then depending on the station you may have issues with two applications try 
to access/control the station at the same time.

Gary

On Tuesday, 6 November 2018 09:04:42 UTC+10, vince wrote:
>
> On Monday, November 5, 2018 at 6:49:14 AM UTC-8, Moto_JW wrote:
>>
>> Forgive me if this has been asked before.
>>
>> Is there a way to run a 3rd party software program on my PI at the same 
>> time as weewx? 
>>
>
> Linux is a multi-user multi-process operating system, so yes 'of course' 
> you can do that.
>  
>

-- 
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] Tendency of the moon: increasing or decreasing

2018-11-05 Thread gjr80
My apologies Thomas, my logic was reversed and you are quite correct about 
the almanac moon phase tags; I had clearly been staring at the almanac for 
too long, will teach me to reply early in the morning! i should also have 
pointed out the code was untested.

Looking at your template you can cut down you code a lot as there is a lot 
of repetition. If you make use of the $almanac.moon_fullness tag to 
directly construct your file name you can greatly simply your code. 
Something like this should do what you want:

$almanac.next_full_moon





#if $almanac.moon_fullness == 0
## we have a new moon

#else if $almanac.moon_fullness 
== 100
## we have a full moon

#else if 
$almanac.next_full_moon.raw > $almanac.next_new_moon.raw
## we have a waning moon
   
 
#else
## we have a waxing moon
#set $file_name = (100 - 
$almanac.moon_fullness) + 100

#end if


$almanac.moon.rise.format("%H:%M 
%p")




$almanac.moon.set.format("%H:%M 
%p")













This time I have run this code and I think it does what you want.

Gary  

On Tuesday, 6 November 2018 06:27:02 UTC+10, Thomas Sch wrote:
>
>
>
> Am Montag, 5. November 2018 21:14:18 UTC+1 schrieb Thomas Sch:
>>
>> So I tested your solution but it says Waxing Moon. But we have waning 
>> Moon currently. 
>>
>> And $almanac.moon.next_full_moon.raw / $almanc.moon.next_new_moon.raw 
>> didnt Work. I Gott the Error: cannot find "next_full_moon" while searching 
>> for "almanac.moon.next_full_moon.raw"
>>
>> I Had to use $almanac.next_full_moon.raw / $almanac.next_new_moon.raw. 
>>
>> In my best post I will Show you What I tryed.
>>
>
> With moon.html.tmpl I tested your solution gjr80. moon.html = output
> with test.html.tmpl I tested my current solution. test.html = output 
>

-- 
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: acurite bridge 09150 help

2018-11-05 Thread Kyle Filipski
It's the 09150 model smart hub... No USB on the display either.

-- 
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: acurite bridge 09150 help

2018-11-05 Thread Kyle Filipski
Thanks I'll try that

-- 
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: Weather Dispaly Software

2018-11-05 Thread vince
On Monday, November 5, 2018 at 6:49:14 AM UTC-8, Moto_JW wrote:
>
> Forgive me if this has been asked before.
>
> Is there a way to run a 3rd party software program on my PI at the same 
> time as weewx? 
>

Linux is a multi-user multi-process operating system, so yes 'of course' 
you can do that.
 

-- 
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: Android weather app for weeWx users

2018-11-05 Thread weerman


Am Montag, 5. November 2018 23:49:26 UTC+1 schrieb weerman:
>
> Hi all,
>>
>
> I discovered the WeeWx App just recently and thought i give it a try. 
> Followed the instructions and the inigo-data file gets created and uploaded 
> every five minutes to my weewx folder. 
> However when i enter the url in the app to my inigo-settings.txt it 
> doesn't connect at all and i get the "invalid url" message. I made sure 
> that everything is correct regarding the url to inigo-data file, tried to 
> correct the paths and even changed file permissions but it still won't 
> connect.
> Using the latest version 0.512 here. 
>
> Regards
>
> George
>
>
> Edit: Missed the url: https://weatherfrog80.bplaced.net/weewx/ 
>

-- 
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: Suggestion: Re-fill DB if sensor data is missing

2018-11-05 Thread Thomas Keffer
It depends on the observation type, but for most values, the average is
stored in the record.

-tk

On Mon, Nov 5, 2018 at 1:38 PM Per Edström  wrote:

> I loaded the suggested engine.py and now there is only a record saved
> every 5 minutes:
>
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Loading service
> weewx.engine.StdArchive
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Archive will use data
> binding wx_binding
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Record generation will be
> attempted in 'software'
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Using archive interval of
> 300 seconds (software record generation)
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Use LOOP data in hi/low
> calculations: 1
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: manager: Daily summary version is
> 1.0
> Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Using binding 'wx_binding'
> to database 'weewx.sdb'
>
> But stille the WMR200 is providing sensor values every minute. Which value
> is used for the 5-minute-storage? An average or the latest? Or is the
> WMR200 pulled once every 5 minutes?
> There is still quite a busy log here:
>
> Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing
> live packet rx:53 live_queue_len:1
> Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop()
> Yielding live queued packet id:56
> Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing
> live packet rx:54 live_queue_len:1
> Nov  5 22:37:15 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop()
> Yielding live queued packet id:57
> Nov  5 22:37:15 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing
> live packet rx:55 live_queue_len:1
> Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop()
> Yielding live queued packet id:58
> Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D   adjust_rain
> rain_total:31.90 Rain.rain_total_last:31.90 rain_interval:0.00
> Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing
> live packet rx:56 live_queue_len:1
>
> --
> 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.


[weewx-user] Re: Android weather app for weeWx users

2018-11-05 Thread weerman

>
> Hi all,
>

I discovered the WeeWx App just recently and thought i give it a try. 
Followed the instructions and the inigo-data file gets created and uploaded 
every five minutes to my weewx folder. 
However when i enter the url in the app to my inigo-settings.txt it doesn't 
connect at all and i get the "invalid url" message. I made sure that 
everything is correct regarding the url to inigo-data file, tried to 
correct the paths and even changed file permissions but it still won't 
connect.
Using the latest version 0.512 here. 

Regards

George



-- 
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: Suggestion: Re-fill DB if sensor data is missing

2018-11-05 Thread Per Edström
I loaded the suggested engine.py and now there is only a record saved every 
5 minutes:

Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Loading service 
weewx.engine.StdArchive
Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Archive will use data 
binding wx_binding
Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Record generation will be 
attempted in 'software'
Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Using archive interval of 
300 seconds (software record generation)
Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Use LOOP data in hi/low 
calculations: 1
Nov  5 22:34:21 RPi3_L5E weewx[25497]: manager: Daily summary version is 1.0
Nov  5 22:34:21 RPi3_L5E weewx[25497]: engine: Using binding 'wx_binding' 
to database 'weewx.sdb'

But stille the WMR200 is providing sensor values every minute. Which value 
is used for the 5-minute-storage? An average or the latest? Or is the 
WMR200 pulled once every 5 minutes?
There is still quite a busy log here:

Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing live 
packet rx:53 live_queue_len:1
Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:56
Nov  5 22:37:14 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing live 
packet rx:54 live_queue_len:1
Nov  5 22:37:15 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:57
Nov  5 22:37:15 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing live 
packet rx:55 live_queue_len:1
Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:58
Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D   adjust_rain 
rain_total:31.90 Rain.rain_total_last:31.90 rain_interval:0.00
Nov  5 22:37:16 RPi3_L5E weewx[25497]: wmr200: MainThread: D   Queuing live 
packet rx:56 live_queue_len:1

-- 
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] Tendency of the moon: increasing or decreasing

2018-11-05 Thread Michael Hornsby
I have 28 moon images 

http://www.standrewsbeach.net.au/weather/current/

and use this extension


#
# Find the Image name for the Current Moon
#


from datetime import datetime
import ephem

from weewx.cheetahgenerator import SearchList


class MoonImage(SearchList):

def __init__(self, generator):
SearchList.__init__(self, generator)

def get_extension_list(self, timespan, db_lookup):

date = ephem.Date( datetime.now() )

nnm = ephem.next_new_moon( date )
pnm = ephem.previous_new_moon( date )

lunation = ( date - pnm ) / ( nnm - pnm )
imageno = lunation * 26
imagename = "moon_" + str( int( imageno + 0.5) - 1 ) + ".gif"

search_list_extension = {'cmoon_image' : imagename }

return [search_list_extension]



And also this to find the next moon phases

#
# find the next 4 phases of the moon ordered by date
#

from datetime import datetime
import ephem
from weewx.cheetahgenerator import SearchList


class NextMoons(SearchList):

def __init__(self, generator):
SearchList.__init__(self, generator)

def get_extension_list(self, timespan, db_lookup):

moons = []

date = datetime.now()

nextdate = ephem.next_new_moon( date )
moons.append( ( nextdate.datetime() , 
nextdate.datetime().strftime("%a %-d %b") ,  'New Moon' , 'moon_0.gif' ) )

nextdate = ephem.next_first_quarter_moon( date  )
moons.append( ( nextdate.datetime() , 
nextdate.datetime().strftime("%a %-d %b") , 'First Qtr' , 'moon_7.gif' ) )

nextdate = ephem.next_full_moon( date  )
moons.append( ( nextdate.datetime() , 
nextdate.datetime().strftime("%a %-d %b") , 'Full Moon' , 'moon_14.gif' ) )

nextdate = ephem.next_last_quarter_moon( date )
moons.append( ( nextdate.datetime() , 
nextdate.datetime().strftime("%a %-d %b") , 'Last Qtr' , 'moon_21.gif' ) )

moons.sort(key=lambda x: x[0])

search_list_extension = {'nextmoons' : moons }

return [search_list_extension]



On Tuesday, 6 November 2018 07:27:02 UTC+11, Thomas Sch wrote:
>
>
>
> Am Montag, 5. November 2018 21:14:18 UTC+1 schrieb Thomas Sch:
>>
>> So I tested your solution but it says Waxing Moon. But we have waning 
>> Moon currently. 
>>
>> And $almanac.moon.next_full_moon.raw / $almanc.moon.next_new_moon.raw 
>> didnt Work. I Gott the Error: cannot find "next_full_moon" while searching 
>> for "almanac.moon.next_full_moon.raw"
>>
>> I Had to use $almanac.next_full_moon.raw / $almanac.next_new_moon.raw. 
>>
>> In my best post I will Show you What I tryed.
>>
>
> With moon.html.tmpl I tested your solution gjr80. moon.html = output
> with test.html.tmpl I tested my current solution. test.html = output 
>

-- 
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] Tendency of the moon: increasing or decreasing

2018-11-05 Thread Thomas Sch
So I tested your solution but it says Waxing Moon. But we have waning Moon 
currently. 

And $almanac.moon.next_full_moon.raw / $almanc.moon.next_new_moon.raw didnt 
Work. I Gott the Error: cannot find "next_full_moon" while searching for 
"almanac.moon.next_full_moon.raw"

I Had to use $almanac.next_full_moon.raw / $almanac.next_new_moon.raw. 

In my best post I will Show you What I tryed.

-- 
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: Belchertown skin for weewx now available!

2018-11-05 Thread Jonis Maurin Ceará
Pat, tks for this great skin! 

Just one question: do you have any plans to include option to add an custom 
html/code on main page and maybe tranlations?
If not, I'll modify mine to include my webcam and maybe translate...but 
if you have plan's, I don't want to broke default code and can't update in 
the future.

Tks!



Em terça-feira, 21 de agosto de 2018 15:45:13 UTC-3, Pat escreveu:
>
> The Belchertown skin for weewx is now available. This skin is modeled 
> after https://belchertownweather.com 
>
> The skin features
>
>- Real time streaming updates on the front page without needing to 
>reload the site (weewx-mqtt extension required)
>- Forecast data updated every hour without needing to reload (a free 
>DarkSky API key required)
>- Information on your closest Earthquake updated automatically every 3 
>hours
>- Weather station observation graphs which update without needing to 
>reload
>- Weather records for the current year, and for all time
>- A mobile and iPad ready display. You could use an iPad as a "2nd 
>console". 
>
> There are dozens of options to configure within the skin. Please view the 
> readme on GitHub  for a 
> detailed explanation. 
>
> The GitHub page: https://github.com/poblabs/weewx-belchertown
>
> Direct download of v0.1: 
> https://github.com/poblabs/weewx-belchertown/archive/weewx-belchertown-0.1.tar.gz
>
> Quick install:
>
> wget https://
> github.com/poblabs/weewx-belchertown/archive/weewx-belchertown-0.1.tar.gz
>
> sudo wee_extension --install weewx-belchertown-0.1.tar.gz
>
> Configure weewx.conf with your options
>
> Restart weewx
>
> Out of the box, it is a very basic theme. Make sure to check out the readme 
> for all options available !
>
>
> This is my first skin, and I've done all I could to test it out in various 
> environments to iron out any initial bugs. If you do find something that's 
> a little off, or room for improvement, please let me know!
>
>

-- 
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: acurite bridge 09150 help

2018-11-05 Thread Kevin Hedgepeth
What version Acurite station are you using?  you may not even need the 
bridge if you have a model Acurite that has USB from the display.  We are 
using the 01036 model and I plug the USB cable into a powered USB hub then 
the hub into the Raspberry pi.  I am using a Pi 3 here but it should work 
just fine with a Pi 2 also.

You can see our data at nb7o.ddns.net:83 or https://aprs.fi/weather/a/NB7O

kevin
Hermiston, Oregon

On Sunday, November 4, 2018 at 10:19:35 AM UTC-8, Kyle Filipski wrote:
>
> OK, I followed all the instructions... I Have WeeWx installed on my 
> Raspberry Pi 2. Now what do I need to connect the bridge to the RaspPi2? 
> The 09150 bridge only has a ethernet port, nothing else. Are there 
> directions that I haven't seen? Do I need an ethernet, usb dongle? Please 
> help... Acurite screwed us, killing our uploads to weatherunderground 
> without buying their new product ($130). Thank you.
>

-- 
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 Jonis Maurin Ceará
Content of /tmp/weather.data:

rainRate=0.0
windSpeed=10.0466685247
windGust=16.3395133004
pressure=28.0709227
outTemp=84.2
outHumidity=71.169482
windDir=0.0
UV=1.59
VIS=554


But the problem is that this errors ocours even with simulator on fresh
install


Em seg, 5 de nov de 2018 às 13:28, gjr80  escreveu:

> That report indicates there are no future dated records. Just out of
> interest what s the content of the file that the fileparse driver is
> reading, /var/weather.data, it doesn't have a field named dateTime does it?
>
> Gary
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/llOh8p8emYY/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


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

2018-11-05 Thread gjr80
That report indicates there are no future dated records. Just out of interest 
what s the content of the file that the fileparse driver is reading, 
/var/weather.data, it doesn't have a field named dateTime does it?

Gary

-- 
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 Jonis Maurin Ceará
Sure!
Log attached

I tought about thatdaylight saving started yesterday (should be started
a week ago, when problem started, but was delayed one week by our
president).

The only thing that I don't understand is that even with empty database
fresh created by weewx, the problem persist!

In this debug, I'm using my old database with my old data saved (but
without any aditional field, like 'wind', just original schema)



Em seg, 5 de nov de 2018 às 12:41, gjr80  escreveu:

> This is unlikely to be a MySQL or SQLIte error and it definitely is not
> due to a missing wind or gustdir field. The original missing wind field
> error is possibly because your archive has some future dated records which
> causes some of the aggregates to misbehave. To rule this out we need to see
> some info about your database. The easiest way to do this without
> explaining a number of SQL commands is for you to post the output of
> wee_debug (http://weewx.com/docs/utilities.htm#wee_debug_utility). Just
> make sure you check the output before positing to ensure any passwords,
> logins or other sensitive data has been obfuscated.
>
> Gary
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/llOh8p8emYY/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


weewx.debug
Description: Binary data


[weewx-user] Re: help with #FTP.last file

2018-11-05 Thread Eric Gammeter
OK now.  Your suggestions have resolved my issue.  Thank you Thomas.   /Eric

On Wednesday, October 31, 2018 at 4:43:42 PM UTC-4, Eric Gammeter wrote:
>
> Hi, 
>
> I lost my ISP modem the other day-  now I have a new modem and am back up 
> and connected to internet-  supposedly sending (FTP'ing) WX reports to 
> WeatherUnderground.  I thought!  My Index.HTML file is not getting updated 
> and ftp'd up to WU.  I find this "#FTP.last" file in the html filesystem.  
> I don't know what to do to resolve.  Any suggestions would be appreciated.  
> Thank you-   /eric  
>

-- 
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] Weather Dispaly Software

2018-11-05 Thread Moto_JW
Forgive me if this has been asked before.

Is there a way to run a 3rd party software program on my PI at the same 
time as weewx?  I am new to this and had a friend set up the Pi for my 
Vantage Pro2.  I want to log in and see the custom gauges and GUI.  TIA

Jason 

-- 
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 gjr80
This is unlikely to be a MySQL or SQLIte error and it definitely is not due to 
a missing wind or gustdir field. The original missing wind field error is 
possibly because your archive has some future dated records which causes some 
of the aggregates to misbehave. To rule this out we need to see some info about 
your database. The easiest way to do this without explaining a number of SQL 
commands is for you to post the output of wee_debug 
(http://weewx.com/docs/utilities.htm#wee_debug_utility). Just make sure you 
check the output before positing to ensure any passwords, logins or other 
sensitive data has been obfuscated.

Gary

-- 
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: Transmitter ID

2018-11-05 Thread Kalli
Ich habe die Froggit WH 4000

Am Sonntag, 4. November 2018 10:58:18 UTC+1 schrieb Kalli:
>
> Hallo
>
> gibt es eine möglichkeit , das man sich die Transmitter IDs anzeigen 
> lassen kann .
>
> Ich möchte gerne sehen ob die sich ändern.
>
> cu. kalli
>

-- 
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 Jonis Maurin Ceará
Thomas, I mixed my answers...but is not config mistake. I've made tests 
with both drivers, sqlite and MySQL, both has the same problem/error (with 
their corresponding errors/drivers).


Em segunda-feira, 5 de novembro de 2018 11:16:39 UTC-2, Thomas Keffer 
escreveu:
>
> Hello, Jonis
>
> You say you are using MySQL, but your first error was actually raised by 
> the sqlite driver. Check weewx.conf and make sure it is using the database 
> you think it is using.
>
> -tk
>
> On Mon, Nov 5, 2018 at 4:32 AM Jonis Maurin Ceará  > wrote:
>
>> Hi.
>>
>> I have weewx 3.8.1 running on my RPi for almost one year. Last week my 
>> archive page stoped working and looking for any problem, I found some 
>> problems in database querybut looking for solutions in this group, I 
>> found that was related to saving time here in Brazil, which changed to one 
>> week later than usual.
>> After waiting this one week, problem persist. The problem is that 'wind' 
>> column does not exist in database (Mysql or sqlite).
>> After creating this field (as double), I got another error: Invalid 
>> aggregation type 'gustdir'
>>
>> What could be wrong? I'm using MySQL.
>>
>> What I've done: remove of weewx package (I'm using .deb on raspberry pi 
>> with debian 9.4), remove all databases and files (including /var/lib/weewx 
>> and /usr/share/weex, /etc/weex) everything.and reinstall package, leave 
>> with default configuration and simulator. Weewx create new databases 
>> (tested with sqlite and mysql), but still with same error on both tests! 
>>
>> This is the first error and the second (after creating wind column).
>>
>> cheetahgenerator: Generate failed with exception '>> 'weedb.NoColumnError'>'
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Ignoring 
>>> template /etc/weewx/skins/Standard/week.html.tmpl
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Reason: 
>>> no such column: wind
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   Traceback (most recent 
>>> call last):
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   print >> _file, 
>>> compiled_template
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>>> __str__
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   rc = getattr(self, 
>>> mainMethName)()
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 949, in respond
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 245, in __errorCatcher26
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File "", line 
>>> 1, in 
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/tags.py", line 329, in __getattr__
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>>> self._do_query(aggregate_type)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/tags.py", line 343, in _do_query
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   val=val, 
>>> **self.option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/wxmanager.py", line 60, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>>> weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type, 
>>> aggregateType, **option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 1249, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   **option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 458, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _row = 
>>> self.getSql(select_stmt % interpolate_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 394, in getSql
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _cursor.execute(sql, 
>>> sqlargs)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   raise 
>>> weedb.NoColumnError(e)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   NoColumnError: no such 
>>> column: wind
>>
>>
>>
>> Second:
>>
>> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05 
>>> 10:25:00 -02 (1541420700) to database 'weewx'
>>> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 
>>> 2018-11-05 10:25:00 -02 (1541420700) to daily summary in 'weewx'
>>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator: Generate 
>>> failed with exception ''
>>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Ignoring 
>>> 

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

2018-11-05 Thread Jonis Maurin Ceará
Tks Andrew, I have re-installed again and keept as original database 
schema. But it doesn't make sense, unless the standard skin is not even 
working anymore?!
As I said, I'm using default installation with default 
configuration/skin/simulation driver. Tried with sqlite and Mysql, both 
smae errors. Standard skin is broken?!



Em segunda-feira, 5 de novembro de 2018 11:03:36 UTC-2, Andrew Milner 
escreveu:
>
> there is no wind column as such in the database
>
> see this thread for a description of wind and how it may be used as part 
> of daily summary
>
> https://groups.google.com/forum/?fromgroups#!searchin/weewx-user/wind$20column%7Csort:date/weewx-user/siTLWVi_fLM/hMwqeKygBwAJ
>
> - so introducing a wind column was probably not the correct thing to do in 
> the first place.  You probably need to go back to the original problem and 
> solve that one
>
>
>
> On Monday, 5 November 2018 14:32:15 UTC+2, Jonis Maurin Ceará wrote:
>>
>> Hi.
>>
>> I have weewx 3.8.1 running on my RPi for almost one year. Last week my 
>> archive page stoped working and looking for any problem, I found some 
>> problems in database querybut looking for solutions in this group, I 
>> found that was related to saving time here in Brazil, which changed to one 
>> week later than usual.
>> After waiting this one week, problem persist. The problem is that 'wind' 
>> column does not exist in database (Mysql or sqlite).
>> After creating this field (as double), I got another error: Invalid 
>> aggregation type 'gustdir'
>>
>> What could be wrong? I'm using MySQL.
>>
>> What I've done: remove of weewx package (I'm using .deb on raspberry pi 
>> with debian 9.4), remove all databases and files (including /var/lib/weewx 
>> and /usr/share/weex, /etc/weex) everything.and reinstall package, leave 
>> with default configuration and simulator. Weewx create new databases 
>> (tested with sqlite and mysql), but still with same error on both tests! 
>>
>> This is the first error and the second (after creating wind column).
>>
>> cheetahgenerator: Generate failed with exception '>> 'weedb.NoColumnError'>'
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Ignoring 
>>> template /etc/weewx/skins/Standard/week.html.tmpl
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Reason: 
>>> no such column: wind
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   Traceback (most recent 
>>> call last):
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   print >> _file, 
>>> compiled_template
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>>> __str__
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   rc = getattr(self, 
>>> mainMethName)()
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 949, in respond
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 245, in __errorCatcher26
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File "", line 
>>> 1, in 
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/tags.py", line 329, in __getattr__
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>>> self._do_query(aggregate_type)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/tags.py", line 343, in _do_query
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   val=val, 
>>> **self.option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/wxmanager.py", line 60, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>>> weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type, 
>>> aggregateType, **option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 1249, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   **option_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 458, in getAggregate
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _row = 
>>> self.getSql(select_stmt % interpolate_dict)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weewx/manager.py", line 394, in getSql
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _cursor.execute(sql, 
>>> sqlargs)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>>> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   raise 
>>> weedb.NoColumnError(e)
>>> Nov  5 10:05:19 SkyWeather weewx[30088]:   NoColumnError: no such 
>>> column: wind
>>
>>
>>
>> Second:
>>
>> Nov  5 10:25:16 SkyWeather weewx[30611]: 

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

2018-11-05 Thread Thomas Keffer
Hello, Jonis

You say you are using MySQL, but your first error was actually raised by
the sqlite driver. Check weewx.conf and make sure it is using the database
you think it is using.

-tk

On Mon, Nov 5, 2018 at 4:32 AM Jonis Maurin Ceará  wrote:

> Hi.
>
> I have weewx 3.8.1 running on my RPi for almost one year. Last week my
> archive page stoped working and looking for any problem, I found some
> problems in database querybut looking for solutions in this group, I
> found that was related to saving time here in Brazil, which changed to one
> week later than usual.
> After waiting this one week, problem persist. The problem is that 'wind'
> column does not exist in database (Mysql or sqlite).
> After creating this field (as double), I got another error: Invalid
> aggregation type 'gustdir'
>
> What could be wrong? I'm using MySQL.
>
> What I've done: remove of weewx package (I'm using .deb on raspberry pi
> with debian 9.4), remove all databases and files (including /var/lib/weewx
> and /usr/share/weex, /etc/weex) everything.and reinstall package, leave
> with default configuration and simulator. Weewx create new databases
> (tested with sqlite and mysql), but still with same error on both tests!
>
> This is the first error and the second (after creating wind column).
>
> cheetahgenerator: Generate failed with exception '> 'weedb.NoColumnError'>'
>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Ignoring
>> template /etc/weewx/skins/Standard/week.html.tmpl
>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Reason:
>> no such column: wind
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   Traceback (most recent
>> call last):
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   print >> _file,
>> compiled_template
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>> __str__
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   rc = getattr(self,
>> mainMethName)()
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 949, in respond
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 245, in __errorCatcher26
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File "", line 1,
>> in 
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/tags.py", line 329, in __getattr__
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return
>> self._do_query(aggregate_type)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/tags.py", line 343, in _do_query
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   val=val,
>> **self.option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/wxmanager.py", line 60, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return
>> weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type,
>> aggregateType, **option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/manager.py", line 1249, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   **option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/manager.py", line 458, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _row =
>> self.getSql(select_stmt % interpolate_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weewx/manager.py", line 394, in getSql
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _cursor.execute(sql,
>> sqlargs)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File
>> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   raise
>> weedb.NoColumnError(e)
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   NoColumnError: no such
>> column: wind
>
>
>
> Second:
>
> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05
>> 10:25:00 -02 (1541420700) to database 'weewx'
>> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05
>> 10:25:00 -02 (1541420700) to daily summary in 'weewx'
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator: Generate
>> failed with exception ''
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Ignoring
>> template /etc/weewx/skins/Standard/week.html.tmpl
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Reason:
>> Invalid aggregation type 'gustdir'
>> Nov  5 10:25:18 SkyWeather weewx[30611]:   Traceback (most recent
>> call last):
>> Nov  5 10:25:18 SkyWeather weewx[30611]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>> Nov  5 10:25:18 SkyWeather weewx[30611]: 

Re: [weewx-user] problem with python

2018-11-05 Thread Thomas Keffer
How did you delete the readings? Did you use a tool like DB Browser for
sqlite? If so, when it deletes a value, unless you tell it otherwise, it
inserts an empty string, instead of a "null" value, which will cause your
problem.

The tool wee_database
 can fix this.
First run with the --check-strings

option, then the --fix-strings
 option.

-tk

On Mon, Nov 5, 2018 at 2:24 AM Richard Cain  wrote:

> Hi
> I recently had my usual problem with inaccurate rain readings so I had to
> stop weewx, delete the wrong readings and restart. However, now weewx won't
> restart. I have attached the log but the main problem seems to be this:
>
> engine: Caught unrecoverable exception in engine:
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   unsupported operand
> type(s) for +=: 'float' and 'unicode'
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   Traceback (most
> recent call last):
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/engine.py", line 865, in main
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   engine =
> engine_class(config_dict)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/engine.py", line 77, in __init__
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: 
> self.loadServices(config_dict)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/engine.py", line 141, in loadServices
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: 
> self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/engine.py", line 491, in __init__
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: 
> self.setup_database(config_dict)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/engine.py", line 604, in setup_database
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   _nrecs, _ndays =
> dbmanager.backfill_day_summary() # @UnusedVariable
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/manager.py", line 1464, in
> backfill_day_summary
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: 
> day_accum.addRecord(rec, weight=weight)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/accum.py", line 242, in addRecord
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   func(self,
> record, obs_type, add_hilo, weight)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/accum.py", line 301, in add_value
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: 
> self[obs_type].addSum(val, weight=weight)
> Nov  5 10:07:59 richard-ub1710 weewx[8005]: File
> "/home/richard/weewx/bin/weewx/accum.py", line 88, in addSum
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   self.sum +=
> val
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   TypeError:
> unsupported operand type(s) for +=: 'float' and 'unicode'
> Nov  5 10:07:59 richard-ub1710 weewx[8005]:   Exiting.
>
> I have no idea about python but I recently upgraded my system from Ubuntu
> 18.04 to 18.10 and presume it is something to do with this.
> I have attached a more complete log.
> Hope someone can help.
> Regards
> Richard
>
> --
> 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.


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

2018-11-05 Thread Andrew Milner
there is no wind column as such in the database

see this thread for a description of wind and how it may be used as part of 
daily summary
https://groups.google.com/forum/?fromgroups#!searchin/weewx-user/wind$20column%7Csort:date/weewx-user/siTLWVi_fLM/hMwqeKygBwAJ

- so introducing a wind column was probably not the correct thing to do in 
the first place.  You probably need to go back to the original problem and 
solve that one



On Monday, 5 November 2018 14:32:15 UTC+2, Jonis Maurin Ceará wrote:
>
> Hi.
>
> I have weewx 3.8.1 running on my RPi for almost one year. Last week my 
> archive page stoped working and looking for any problem, I found some 
> problems in database querybut looking for solutions in this group, I 
> found that was related to saving time here in Brazil, which changed to one 
> week later than usual.
> After waiting this one week, problem persist. The problem is that 'wind' 
> column does not exist in database (Mysql or sqlite).
> After creating this field (as double), I got another error: Invalid 
> aggregation type 'gustdir'
>
> What could be wrong? I'm using MySQL.
>
> What I've done: remove of weewx package (I'm using .deb on raspberry pi 
> with debian 9.4), remove all databases and files (including /var/lib/weewx 
> and /usr/share/weex, /etc/weex) everything.and reinstall package, leave 
> with default configuration and simulator. Weewx create new databases 
> (tested with sqlite and mysql), but still with same error on both tests! 
>
> This is the first error and the second (after creating wind column).
>
> cheetahgenerator: Generate failed with exception '> 'weedb.NoColumnError'>'
>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Ignoring 
>> template /etc/weewx/skins/Standard/week.html.tmpl
>> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Reason: 
>> no such column: wind
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   Traceback (most recent 
>> call last):
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   print >> _file, 
>> compiled_template
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>> __str__
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   rc = getattr(self, 
>> mainMethName)()
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 949, in respond
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 245, in __errorCatcher26
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File "", line 1, 
>> in 
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/tags.py", line 329, in __getattr__
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>> self._do_query(aggregate_type)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/tags.py", line 343, in _do_query
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   val=val, 
>> **self.option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/wxmanager.py", line 60, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
>> weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type, 
>> aggregateType, **option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/manager.py", line 1249, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   **option_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/manager.py", line 458, in getAggregate
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _row = 
>> self.getSql(select_stmt % interpolate_dict)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weewx/manager.py", line 394, in getSql
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   _cursor.execute(sql, 
>> sqlargs)
>> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
>> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   raise 
>> weedb.NoColumnError(e)
>> Nov  5 10:05:19 SkyWeather weewx[30088]:   NoColumnError: no such 
>> column: wind
>
>
>
> Second:
>
> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05 
>> 10:25:00 -02 (1541420700) to database 'weewx'
>> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05 
>> 10:25:00 -02 (1541420700) to daily summary in 'weewx'
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator: Generate 
>> failed with exception ''
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Ignoring 
>> template /etc/weewx/skins/Standard/week.html.tmpl
>> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  

[weewx-user] Multiple errors in weewx 3.8.2

2018-11-05 Thread Jonis Maurin Ceará
Hi.

I have weewx 3.8.1 running on my RPi for almost one year. Last week my 
archive page stoped working and looking for any problem, I found some 
problems in database querybut looking for solutions in this group, I 
found that was related to saving time here in Brazil, which changed to one 
week later than usual.
After waiting this one week, problem persist. The problem is that 'wind' 
column does not exist in database (Mysql or sqlite).
After creating this field (as double), I got another error: Invalid 
aggregation type 'gustdir'

What could be wrong? I'm using MySQL.

What I've done: remove of weewx package (I'm using .deb on raspberry pi 
with debian 9.4), remove all databases and files (including /var/lib/weewx 
and /usr/share/weex, /etc/weex) everything.and reinstall package, leave 
with default configuration and simulator. Weewx create new databases 
(tested with sqlite and mysql), but still with same error on both tests! 

This is the first error and the second (after creating wind column).

cheetahgenerator: Generate failed with exception ' 'weedb.NoColumnError'>'
> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Ignoring 
> template /etc/weewx/skins/Standard/week.html.tmpl
> Nov  5 10:05:19 SkyWeather weewx[30088]: cheetahgenerator:  Reason: no 
> such column: wind
> Nov  5 10:05:19 SkyWeather weewx[30088]:   Traceback (most recent call 
> last):
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Nov  5 10:05:19 SkyWeather weewx[30088]:   print >> _file, 
> compiled_template
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Nov  5 10:05:19 SkyWeather weewx[30088]:   rc = getattr(self, 
> mainMethName)()
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 949, in respond
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 245, in __errorCatcher26
> Nov  5 10:05:19 SkyWeather weewx[30088]: File "", line 1, 
> in 
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/tags.py", line 329, in __getattr__
> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
> self._do_query(aggregate_type)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/tags.py", line 343, in _do_query
> Nov  5 10:05:19 SkyWeather weewx[30088]:   val=val, 
> **self.option_dict)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/wxmanager.py", line 60, in getAggregate
> Nov  5 10:05:19 SkyWeather weewx[30088]:   return 
> weewx.manager.DaySummaryManager.getAggregate(self, timespan, obs_type, 
> aggregateType, **option_dict)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/manager.py", line 1249, in getAggregate
> Nov  5 10:05:19 SkyWeather weewx[30088]:   **option_dict)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/manager.py", line 458, in getAggregate
> Nov  5 10:05:19 SkyWeather weewx[30088]:   _row = 
> self.getSql(select_stmt % interpolate_dict)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weewx/manager.py", line 394, in getSql
> Nov  5 10:05:19 SkyWeather weewx[30088]:   _cursor.execute(sql, 
> sqlargs)
> Nov  5 10:05:19 SkyWeather weewx[30088]: File 
> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn
> Nov  5 10:05:19 SkyWeather weewx[30088]:   raise 
> weedb.NoColumnError(e)
> Nov  5 10:05:19 SkyWeather weewx[30088]:   NoColumnError: no such 
> column: wind



Second:

Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05 
> 10:25:00 -02 (1541420700) to database 'weewx'
> Nov  5 10:25:16 SkyWeather weewx[30611]: manager: Added record 2018-11-05 
> 10:25:00 -02 (1541420700) to daily summary in 'weewx'
> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator: Generate failed 
> with exception ''
> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Ignoring 
> template /etc/weewx/skins/Standard/week.html.tmpl
> Nov  5 10:25:18 SkyWeather weewx[30611]: cheetahgenerator:  Reason: 
> Invalid aggregation type 'gustdir'
> Nov  5 10:25:18 SkyWeather weewx[30611]:   Traceback (most recent call 
> last):
> Nov  5 10:25:18 SkyWeather weewx[30611]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Nov  5 10:25:18 SkyWeather weewx[30611]:   print >> _file, 
> compiled_template
> Nov  5 10:25:18 SkyWeather weewx[30611]: File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Nov  5 10:25:18 SkyWeather weewx[30611]:   rc = getattr(self, 
> mainMethName)()
> Nov  5 10:25:18 SkyWeather weewx[30611]: 

[weewx-user] problem with python

2018-11-05 Thread Richard Cain
Hi
I recently had my usual problem with inaccurate rain readings so I had to 
stop weewx, delete the wrong readings and restart. However, now weewx won't 
restart. I have attached the log but the main problem seems to be this:

engine: Caught unrecoverable exception in engine:
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   unsupported operand 
type(s) for +=: 'float' and 'unicode'
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   Traceback (most 
recent call last):
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/engine.py", line 865, in main
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   engine = 
engine_class(config_dict)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/engine.py", line 77, in __init__
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   
self.loadServices(config_dict)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/engine.py", line 141, in loadServices
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/engine.py", line 491, in __init__
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   
self.setup_database(config_dict)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/engine.py", line 604, in setup_database
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   _nrecs, _ndays = 
dbmanager.backfill_day_summary() # @UnusedVariable
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/manager.py", line 1464, in 
backfill_day_summary
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   
day_accum.addRecord(rec, weight=weight)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/accum.py", line 242, in addRecord
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   func(self, 
record, obs_type, add_hilo, weight)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/accum.py", line 301, in add_value
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   
self[obs_type].addSum(val, weight=weight)
Nov  5 10:07:59 richard-ub1710 weewx[8005]: File 
"/home/richard/weewx/bin/weewx/accum.py", line 88, in addSum
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   self.sum += 
val
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   TypeError: 
unsupported operand type(s) for +=: 'float' and 'unicode'
Nov  5 10:07:59 richard-ub1710 weewx[8005]:   Exiting.

I have no idea about python but I recently upgraded my system from Ubuntu 
18.04 to 18.10 and presume it is something to do with this.
I have attached a more complete log.
Hope someone can help.
Regards
Richard

-- 
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
Description: Binary data