[weewx-user] Re: Creating custom graphs to display archive data

2017-02-09 Thread Thomas Carlin
That is pretty much what I expected.  While I am not a programer by 
training or by trade, I do dabble from time to time, and as time allows, I 
might dig around and see if I can come up with anything.  I haven't looked 
through the developer docs yet, but do you have any thoughts or insight on 
how difficult (or even possible) this might be?

I have this fantastic image in my head of a graph with 4 temperature lines 
on it, the lines getting lighter for each older period, and I'm having a 
hard time getting it out of my mind!

-tk:
   I had that thought also, and I think that I will pursue it once I am 
done with my current project.  
-m:
   If this has already made it to the list of "Things that would be cool in 
the future" add a hash mark next to it for me please!

Thanks again for all your work on this project!

My station can be seen here:  http://carlincomputing.duckdns.org/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.


[weewx-user] Re: Creating custom graphs to display archive data

2017-02-09 Thread mwall
On Thursday, February 9, 2017 at 6:54:19 PM UTC-5, Thomas Carlin wrote:
>
> I would like to be able to create images with the same data value, but 
> from multiple time ranges. For the yearly say, have the last 365 days as 
> one line, but then have another line that has the same date range, but from 
> 1 year ago.  Is something like this possible with the current image 
> generator?
>
> I would also like to be able to generate historic graphs.  Is there a way 
> to do this historically, and moving forward, so next year I can look at 
> this February's graph?
>

unfortunately there is not (yet) a mechanism to do this.

it would be nice if you could specify (time_start, time_length) or 
(time_start, time_end) or (time_length, time_end).  and the plot generator 
should be smart enough to know that any plot whose time parameters are not 
a function of 'now' only needs to be generated once.

perhaps it could look something like this:

[ImageGenerator]
...
[[yesterday_images]] # like day_images, but for 24 hour period up to 24 
hours ago
time_length = 86400
time_end = now - 86400
...
[[last_year_images]]
time_length = 31536000 # one year
time_start = 1451606400 # 1 january 2016
...

so time_start and time_end must be an epoch or a 'now' expression.  a 'now' 
expression is now plus or minus some offset, in seconds.

m

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


Re: [weewx-user] Creating custom graphs to display archive data

2017-02-09 Thread Thomas Keffer
Unfortunately, neither of those are possible with the present image
generation engine.

You could run wee_reports, using a timestamp of a year ago, saving the
images to a separate spot. Then you would be able to display this month's
graph, and the same month a year ago. But, they would be in separate graphs.

-tk

On Thu, Feb 9, 2017 at 3:54 PM, Thomas Carlin 
wrote:

> I have a couple questions about image generation that doesn't seem to be
> covered in the docs anywhere.
>
> I would like to be able to create images with the same data value, but
> from multiple time ranges. For the yearly say, have the last 365 days as
> one line, but then have another line that has the same date range, but from
> 1 year ago.  Is something like this possible with the current image
> generator?
>
> I would also like to be able to generate historic graphs.  Is there a way
> to do this historically, and moving forward, so next year I can look at
> this February's graph?
>
> Thank you!
>
> My station can be seen here:  http://carlincomputing.duckdns.org/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.
>

-- 
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: forecast extension NWS error

2017-02-09 Thread mwall
pete,

please update to forecast 3.2.13

there must have been something about the forecast on 7 feb, because the 
current forecast for RAH/NCZ041 is not causing the problem.

i did some minor refactoring and added some logging, so if it happens again 
you'll get a log message and the forecast service will not crap out.

the log message is "NWS: mode unset for label 'xxx'" where xxx is the label 
in the nws forecast that is causing the problem.

m

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


[weewx-user] Creating custom graphs to display archive data

2017-02-09 Thread Thomas Carlin
I have a couple questions about image generation that doesn't seem to be 
covered in the docs anywhere.

I would like to be able to create images with the same data value, but from 
multiple time ranges. For the yearly say, have the last 365 days as one 
line, but then have another line that has the same date range, but from 1 
year ago.  Is something like this possible with the current image generator?

I would also like to be able to generate historic graphs.  Is there a way 
to do this historically, and moving forward, so next year I can look at 
this February's graph?

Thank you!

My station can be seen here:  http://carlincomputing.duckdns.org/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: forecast extension NWS error

2017-02-09 Thread Pete Geenhuizen

   [[NWS]]
lid = NCZ041
foid = RAH

The first failure was Feb 7 @ 07:14


On 02/09/17 18:00, mwall wrote:

On Thursday, February 9, 2017 at 4:37:15 PM UTC-5, pgeenhuizen wrote:

Here's a snippet from the log which hopefully is sufficient, if
not let
me know what else you need.


what is your location identifier?

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


--
Unencumbered by the thought process.
 -- Click and Clack the Tappet brothers

--
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: forecast extension NWS error

2017-02-09 Thread mwall
On Thursday, February 9, 2017 at 4:37:15 PM UTC-5, pgeenhuizen wrote:
>
> Here's a snippet from the log which hopefully is sufficient, if not let 
> me know what else you need. 
>

what is your location identifier?

-- 
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] forecast extension NWS error

2017-02-09 Thread Pete Geenhuizen

Oops my bad I upgraded to forecast-3.2.12.


On 02/09/17 16:37, Pete Geenhuizen wrote:

Matt,

For the past few days I've been getting an error downloading forecasts 
from NWS.  I just upgraded to forecast 0.40 to see if that solved the 
problem but alas it doesn't.


Here's a snippet from the log which hopefully is sufficient, if not 
let me know what else you need.


Feb  9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: downloading 
forecast from 
'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=RAH'
Feb  9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: forecast 
failure: local variable 'mode' referenced before assignment

Feb  9 16:30:16 host weewx[562]: Traceback (most recent call last):
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1177, in do_forecast

Feb  9 16:30:16 host weewx[562]: self.config_dict['DataBindings'],
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1679, in get_forecast
Feb  9 16:30:16 host weewx[562]: logerr('%s: no PFM found for %s 
in forecast from %s' %
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1790, in NWSParseForecast

Feb  9 16:30:16 host weewx[562]: mode = 3
Feb  9 16:30:16 host weewx[562]: UnboundLocalError: local variable 
'mode' referenced before assignment


Thanks

Pete




--
Unencumbered by the thought process.
 -- Click and Clack the Tappet brothers

--
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] forecast extension NWS error

2017-02-09 Thread Pete Geenhuizen

Matt,

For the past few days I've been getting an error downloading forecasts 
from NWS.  I just upgraded to forecast 0.40 to see if that solved the 
problem but alas it doesn't.


Here's a snippet from the log which hopefully is sufficient, if not let 
me know what else you need.


Feb  9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: downloading 
forecast from 
'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=RAH'
Feb  9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: forecast 
failure: local variable 'mode' referenced before assignment

Feb  9 16:30:16 host weewx[562]: Traceback (most recent call last):
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1177, in do_forecast

Feb  9 16:30:16 host weewx[562]: self.config_dict['DataBindings'],
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1679, in get_forecast
Feb  9 16:30:16 host weewx[562]: logerr('%s: no PFM found for %s in 
forecast from %s' %
Feb  9 16:30:16 host weewx[562]:   File 
"/usr/share/weewx/user/forecast.py", line 1790, in NWSParseForecast

Feb  9 16:30:16 host weewx[562]: mode = 3
Feb  9 16:30:16 host weewx[562]: UnboundLocalError: local variable 
'mode' referenced before assignment


Thanks

Pete


--
Unencumbered by the thought process.
 -- Click and Clack the Tappet brothers

--
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: Split weewx processing between two RPi's

2017-02-09 Thread Bill Morrow
Andrew, I'm doing something similar to Matthew's option 1. Outside is an 
Arduino Pro Min based logger, reporting to an inside Pi using RF24 library 
based code on both ends. I wrote the code. The Pi end of the channel 
publishes the data on my LAN as MQTT. 

Inside I also have an Adafruit Feather Huzzah with an HTU21D 
temperature/humidity sensor attached reporting over the LAN, using MQTT.

My desktop server runs a Mosqitto MQTT broker. It also runs weewx which 
uses https://github.com/morrowwm/weewxMQTT to subscribe to the MQTT and 
generate loop packets. All this could be on your inside Rpi.

So, to answer "further thoughts on the concept", add something like the 
Adafruit device.

On Thursday, 9 February 2017 00:14:14 UTC-4, Andrew Milner wrote:
>
> Thanks matthew - as ever some very helpful some food for thought in your 
> response.  
> Since posting I've realised I have a bigger problem to resolve though - if 
> the console goes outdoors I lose indoor temperature so now I have to work 
> out how to get an indoor temperature into the system!!  At the moment this 
> is blocking progress and further thoughts on the concept!!!
>
>
> On Wednesday, 8 February 2017 16:29:35 UTC+2, mwall wrote:
>
>> On Tuesday, February 7, 2017 at 11:14:25 AM UTC-5, Andrew Milner wrote:
>>>
>>> I have been considering having an old RPi outdoors connected to my 
>>> WH2080 for the sole purpose of extracting the data from the station and 
>>> would like to get the loop data so read into another instance of weewx via 
>>> Wi-Fi running on another RPi indoors - also on the same local network.  
>>> Thye database and report generation would all take place on the second 
>>> machine - the sole purpose for the first one is to capture the data.  
>>> Anyone got any suggestions as to how to achieve this??
>>>
>>
>> piA is rpi connected to wh2080
>> piB is rpi indoors
>>
>> option 1: mqtt.  run weewx with fousb driver and mqtt uploader on piA, 
>> disable all reports except for a simple status report written to tmpfs, and 
>> logs to tmpfs.  on piB, run an mqtt broker and weewx with an mqtt driver.  
>> piA sends each loop packet as json mqtt payload.  weewx on piB is mqtt 
>> consumer and receives each loop packet via the mqtt broker.
>>
>> option 2: database replication using rsync.  both piA and piB use sqlite 
>> database.  run some process outside of weewx that does rsync of the piA 
>> database to piB between archive records.  only run wee_reports on piB.
>>
>> option 3: remote database.  make weewx on piA save to mysql database on 
>> piB.  only run wee_reports on piB.
>>
>> option 4: self-hosted 'cloud'.  piA runs a standard weewx installation, 
>> but with reports and logs to tmpfs.  piA also runs rsync report that syncs 
>> the tmpfs reports (and logs?) to piB.  piB does not run weewx - just a web 
>> server to display whatever reports piA has transferred to it.
>>
>> oops! now i see that you want loop data, and options 2,3,4 only do 
>> archive records.
>>
>> so many options, so little time!
>>
>> m 
>>
>

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


[weewx-user] Re: Almanac hours of daylight calc possible?

2017-02-09 Thread Ruben Navarro Huedo
Running now Dave.

Problem was i hadn't extended almanac.

Using this topic i could add it:
https://groups.google.com/forum/#!topic/weewx-user/xViPKlo6ToE

Now all fine: http://meteoelche.es

Thank's a lot.

El domingo, 29 de diciembre de 2013, 17:24:20 (UTC+1), Steve escribió:
>
> Hi all,
>
> I was wondering if it is possible for the Almanac data to calculate and 
> display hours of daylight?
>
> i.e Sunset - Sunrise = hh:mm:ss and / or End Civil twilight - Start Civil 
> twilight = hh:mm:ss
>
> (What (to me) would even be better is if the daylight hh:mm:ss each day 
> was somehow included in the DB so it could be graphed and viewed as a sine 
> wave over a year / ramps up and down for month & week views, I guess it 
> would just flat line in a daily view?).
>
> It's interesting to me because I have a PV solar system on my roof too, 
> and the weather plays a great deal with what it generates.
>
> Regards,
>
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Almanac hours of daylight calc possible?

2017-02-09 Thread Dave Webb KB1PVH
Ruben,

 Below is a larger portion of my index.html so you can see placement.


  #else

  New moon:
  $almanac.next_new_moon


  Full moon:
  $almanac.next_full_moon

#end if

  Phase:
  $almanac.moon_phase($almanac.moon_fullness%
illuminated)

  
 
#set $now = $current.dateTime.raw
#set $yesterday = $now - 24*3600
#set $today_daylight = $almanac.sun.set.raw -
 $almanac.sun.rise.raw
#set $yesterday_daylight =
$almanac($almanac_time=$yesterday).sun.set.raw -
$almanac($almanac_time=$yesterday).sun.rise.raw
#set $difference = $today_daylight - $yesterday_daylight
#set $seconds = $almanac.sun.set.raw - $almanac.sun.rise.raw
#set $hours = $seconds //3600
#set $seconds %= 3600
#set $minutes = $seconds//60
#set $seconds %= 60
$("Today has %d hours, %d minutes, and %d seconds of
daylight" % ($hours, $minutes, $seconds)),
#if $difference > 0
$("%d seconds more than yesterday." % $difference)
#else
$("%d seconds less than yesterday." % -$difference)
#end if
#else
## No extended almanac information available. Fall back to a
simple table.

  
Sunrise:
$almanac.sunrise
  
  
Sunset:
$almanac.sunset
  
  
Moon Phase:


You can also read this thread

https://groups.google.com/forum/#!searchin/weewx-user/hours$20of$20daylight%7Csort:relevance/weewx-user/gc1urPvD_1M/-S_fvND15vsJ


Dave-KB1PVH

On Thu, Feb 9, 2017 at 9:19 AM, Dave Webb KB1PVH  wrote:

> Ruben,
>
>  I will copy a bigger portion of the index.html.tmpl shortly so you can
> see exactly where I put it.
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S7
>
> On Feb 9, 2017 9:15 AM, "Ruben Navarro Huedo"  wrote:
>
>> A lot of thank's.
>>
>> I have tried to add your code to calculate hours of daylight but weewx
>> doesn't show in my web site :-(
>>
>>
>> El jueves, 9 de febrero de 2017, 14:34:05 (UTC+1), Dave Webb escribió:
>>>
>>> Ruben,
>>>
>>> I use the widget from here.
>>>
>>> http://blog.darksky.net/forecast-embeds/
>>>
>>> Dave-KB1PVH
>>>
>>>
>>> Sent from my Galaxy S7
>>>
>>> On Feb 9, 2017 8:29 AM, "Ruben Navarro Huedo"  wrote:
>>>
>>> A lot of thanks for info Dave
>>>
>>> I tried add forecast to my weewx website but using includes all tables
>>> were incorrectly formatted.
>>>
>>> How did you insert forecast in the main page?
>>>
>>> 73 de EA5BZ
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to weewx-user+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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: Almanac hours of daylight calc possible?

2017-02-09 Thread Dave Webb KB1PVH
Ruben,

 I will copy a bigger portion of the index.html.tmpl shortly so you can see
exactly where I put it.

Dave-KB1PVH


Sent from my Galaxy S7

On Feb 9, 2017 9:15 AM, "Ruben Navarro Huedo"  wrote:

> A lot of thank's.
>
> I have tried to add your code to calculate hours of daylight but weewx
> doesn't show in my web site :-(
>
>
> El jueves, 9 de febrero de 2017, 14:34:05 (UTC+1), Dave Webb escribió:
>>
>> Ruben,
>>
>> I use the widget from here.
>>
>> http://blog.darksky.net/forecast-embeds/
>>
>> Dave-KB1PVH
>>
>>
>> Sent from my Galaxy S7
>>
>> On Feb 9, 2017 8:29 AM, "Ruben Navarro Huedo"  wrote:
>>
>> A lot of thanks for info Dave
>>
>> I tried add forecast to my weewx website but using includes all tables
>> were incorrectly formatted.
>>
>> How did you insert forecast in the main page?
>>
>> 73 de EA5BZ
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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: Almanac hours of daylight calc possible?

2017-02-09 Thread Ruben Navarro Huedo
A lot of thank's.

I have tried to add your code to calculate hours of daylight but weewx 
doesn't show in my web site :-(


El jueves, 9 de febrero de 2017, 14:34:05 (UTC+1), Dave Webb escribió:
>
> Ruben,
>
> I use the widget from here.
>
> http://blog.darksky.net/forecast-embeds/
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S7
>
> On Feb 9, 2017 8:29 AM, "Ruben Navarro Huedo"  > wrote:
>
> A lot of thanks for info Dave
>
> I tried add forecast to my weewx website but using includes all tables 
> were incorrectly formatted.
>
> How did you insert forecast in the main page?
>
> 73 de EA5BZ
>
> --
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

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


[weewx-user] Re: acurite 5 in 1, once or twice a month random amounts of rain (2000mm more or less)

2017-02-09 Thread epeank
I've been seeing this on my AcuRite as well.  The values aren't displayed 
on the console either.  I'd just been marking it up to either deer or dogs 
tripping over the guy wires stabilizing my mounting pole.

Is the QC setting is applied to each reading and rain total is emitted 
every 36 seconds, so the mixmax threshold should be what I feel would be 
reasonable for rainfall in a 36 second window? Or is this applied in the 5 
minute loop so must allow for larger values that could accumulate in 5 
minutes?

Looking at my archive data I ran:
select min(rain), max(rain), avg(rain) from archive where rain > 0 and rain 
< .5
returning
min(rain) max(rain) avg(rain)
0.00907 0.47 0.0251541850220265

Granted we've not had spring rains yet to compare with, but I'm thinking a 
upper boundary of .1 rain in a 36 second window.
 
Thanks
Chad

On Wednesday, November 30, 2016 at 2:01:36 PM UTC-6, Marc Ratés wrote:
>
> Hello,
>
> I've been using weewx with acurite 5 in 1 and the big problem is the rain.
> Now installed version 3.6.2.
>
> The class or plugin in charge of acurite 5 in 1 inserts randoms inputs of 
> rain, today 2000mm. 
> It's very annoying because I have to delete by hand the sqlite.db. and I 
> lose the accuracy of the liters.
>
> I've configured the unit in mode 4.
>
>
> Anyone with same problem?
>
> Thanks.
>

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


Re: [weewx-user] No configuration for device 'driver' when running wee_device

2017-02-09 Thread Thomas Keffer
Your missing a line in your configuration file. It should be:

[FineOffsetUSB]
model = WH1080
polling_mode = ADAPTIVE
driver = weewx.drivers.fousb

-tk


On Thu, Feb 9, 2017 at 5:12 AM, Russell Seymour <
russell.seym...@turtlesystems.co.uk> wrote:

> I have just rebuilt my Raspberry PI device and am in the process of
> putting weewx back on.
>
> I have a Maplin Weather Station so I am using the FineOffsetUSB driver.
>
> Here are the relevant parts of the configuration file:
>
> [Station]
>
> station_type = FineOffsetUSB
>
> [FineOffsetUSB]
>
> model = WH1080
> polling_mode = ADAPTIVE
>
>
>
> When I run `wee_device --help` I get the following error message:
>
> Using configuration file /etc/weewx/weewx.conf
> No configuration for device 'driver'
>
> To see if I could get more information  I ran `weewxd` as root and I got
> the following stack trace:
>
> Traceback (most recent call last):
>   File "/usr/bin/weewxd", line 64, in 
> weewx.engine.main(options, args)
>   File "/usr/share/weewx/weewx/engine.py", line 841, in main
> engine = engine_class(config_dict)
>   File "/usr/share/weewx/weewx/engine.py", line 70, in __init__
> self.setupStation(config_dict)
>   File "/usr/share/weewx/weewx/engine.py", line 88, in setupStation
> driver = config_dict[stationType]['driver']
>   File "/usr/local/lib/python2.7/dist-packages/configobj.py", line 554, in
> __getitem__
> val = dict.__getitem__(self, key)
> KeyError: 'driver'
>
> I am pretty sure that the configuration file is correct, but am very happy
> to be corrected.
>
>  - weewx version = 3.6.2-1
>  - raspbian version = 8
>  - python version = 2.7.9
>
> Does anyone have any ideas on what this might be?  Happy to provide more
> information if required, although there are no logs being generated so
> would need some advice on what extra information and how to gather it.
>
> Thanks, Russell
>
>
> --
> 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.


Re: [weewx-user] Re: Almanac hours of daylight calc possible?

2017-02-09 Thread Dave Webb KB1PVH
Ruben,

I use the widget from here.

http://blog.darksky.net/forecast-embeds/

Dave-KB1PVH


Sent from my Galaxy S7

On Feb 9, 2017 8:29 AM, "Ruben Navarro Huedo"  wrote:

A lot of thanks for info Dave

I tried add forecast to my weewx website but using includes all tables were
incorrectly formatted.

How did you insert forecast in the main page?

73 de EA5BZ

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


Re: [weewx-user] Re: Almanac hours of daylight calc possible?

2017-02-09 Thread Ruben Navarro Huedo
A lot of thanks for info Dave

I tried add forecast to my weewx website but using includes all tables were 
incorrectly formatted. 

How did you insert forecast in the main page?

73 de EA5BZ

-- 
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] No configuration for device 'driver' when running wee_device

2017-02-09 Thread Russell Seymour
I have just rebuilt my Raspberry PI device and am in the process of putting 
weewx back on.

I have a Maplin Weather Station so I am using the FineOffsetUSB driver.

Here are the relevant parts of the configuration file:

[Station]

station_type = FineOffsetUSB

[FineOffsetUSB]

model = WH1080
polling_mode = ADAPTIVE



When I run `wee_device --help` I get the following error message:

Using configuration file /etc/weewx/weewx.conf
No configuration for device 'driver'

To see if I could get more information  I ran `weewxd` as root and I got 
the following stack trace:

Traceback (most recent call last):
  File "/usr/bin/weewxd", line 64, in 
weewx.engine.main(options, args)
  File "/usr/share/weewx/weewx/engine.py", line 841, in main
engine = engine_class(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 70, in __init__
self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 88, in setupStation
driver = config_dict[stationType]['driver']
  File "/usr/local/lib/python2.7/dist-packages/configobj.py", line 554, in 
__getitem__
val = dict.__getitem__(self, key)
KeyError: 'driver'

I am pretty sure that the configuration file is correct, but am very happy 
to be corrected.

 - weewx version = 3.6.2-1
 - raspbian version = 8
 - python version = 2.7.9

Does anyone have any ideas on what this might be?  Happy to provide more 
information if required, although there are no logs being generated so 
would need some advice on what extra information and how to gather it.

Thanks, Russell


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