Re: [weewx-user] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Hi Kevin,

No not quite. Just like $day gives aggregates since the start of the day, $hour 
provides aggregates from the start of the hour. So to use $hour you use exactly 
the same syntax as with $day eg:

$hour.rain.sum displays total rainfall since the top of the hour

and

$hour.windGust.max displays the highest windGust seen since the top of the hour 

On the other hand $span provides an aggregate over some time span, that time 
span can be 1 or more hours, 1 or more days etc. So using $span with 1 hour 
gives you aggregates over the last hour. The $span syntax is slightly different 
in that we need to specify how long the 'span' is. To to that we use the 
$hour_delta parameter (or the $day_delta or the $week_delta parameter etc). So 

$span($hour_delta=1).rain.sum displays the total rainfall over the last 1 hour

and

$span($hour_delta=1).windGust.max displays the highest windGust over the last 1 
hour

$day, $hour etc also have a similar parameter (though not used as often); 
$_ago (where  is day or hour etc) to give you an aggregate over the day 
before, the day before that, the hour before the current, the hour before that 
etc. $day, $hour and friends always start on a day or hour etc boundary whereas 
that is not necessarily the case with $span. Probably best explained in the 
Customization Guide (http://weewx.com/docs/customizing.htm) under the 
Customizing templates section 
(http://weewx.com/docs/customizing.htm#customizing_templates), should have 
pointed you there before but was on the mobile and typing much on the mobile is 
a pain (well for me anyway).

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

That's very helpful. Thank you. Now that you mention it, showing from the
top of the hour would probably be better. So to be clear...

If I want to display the total rain since the top of the hour, I would use:
$span($hour.rain.sum)

If I want to display the max wind gust since the top of the hour, I would
use: $span($hour.windGust.sum)

Is that correct?

On Fri, Oct 12, 2018 at 8:18 PM gjr80  wrote:

> Kevin, in this case you want the sum so $span($hour_delta=1).rain.sum
> should do what you want. Note that this gives the sum over the last 60
> minutes, you can use $hour.rain.sum to get the total rain since the top of
> the hour (same for windGust).
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin, in this case you want the sum so $span($hour_delta=1).rain.sum should do 
what you want. Note that this gives the sum over the last 60 minutes, you can 
use $hour.rain.sum to get the total rain since the top of the hour (same for 
windGust). 

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

2018-10-12 Thread Cameron D
There is a slightly more complicated, but safer process...examine the 
history first by running the driver standalone

stop weewx

cd to the folder above where weewx is installed - e.g. mine is 
/usr/share/weewx, so
 cd /usr/share
 PYTHONPATH=weewx python weewx/user/wmr300-v19rc6+f3.py --get-history  > ~/
weewx-history.txt

You might need to adjust the names of the folder and the driver if they are 
different.

This uses just the driver to extract the history, and you can then check 
whether the wind data look good.
You also know the earliest date-time retained in the WMR300 console history.

You can then decide to either delete the data and reload it, or edit the 
text to generate SQL code to just update the wind speed and gust.

-- 
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: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

That worked!

The most recent tweet:

Time: 12/10/18 08:00:00 PM Temp: 11.4°C Wind Chill: 11.4°C Heat Index:
11.4°C Dewpoint: 4.4°C Humidity: 62% Barometer: 1017.4 hPa Wind: 10 km/h
from WNW Max Wind Gust this hour: 18 km/h Rain Rate: 0.0 mm/hr

Sorry, one more quick thing (I promise). What can I add/change to show
total rain rate for the hour?


On Fri, Oct 12, 2018 at 7:54 PM Kevin Lloyd 
wrote:

> Thanks Gary! I'll give that a try and let you know what happens. :)
>
> On Fri, Oct 12, 2018 at 7:47 PM gjr80  wrote:
>
>> Kevin,
>>
>> Try $span($hour_delta=1).windGust.max
>>
>> 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/sO7TbQlGySU/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.
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Thanks Gary! I'll give that a try and let you know what happens. :)

On Fri, Oct 12, 2018 at 7:47 PM gjr80  wrote:

> Kevin,
>
> Try $span($hour_delta=1).windGust.max
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin, 

Try $span($hour_delta=1).windGust.max

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

Here's what part of my RSS tmpl file looks like right now:


 Time:$current.dateTime
 Outside Temperature: $current.outTemp
 Wind Chill:  $current.windchill
 Heat Index:  $current.heatindex
 Dewpoint:$current.dewpoint
 Humidity:$current.outHumidity
 Barometer:   $current.barometer
 Wind:$current.windSpeed from
$current.windDir.ordinal_compass
 Rain Rate:   $current.rainRate


So, I would add something like this(?): Wind Gust:$day.windGust.max

"$day can be replaced with $month or $year. Other periods are available too
with custom search lists."

Max wind gust for the day would work, but max wind gust for the hour would
be even better, since the main benefit of Twitter is that it's real-time.

What would I need to change/add to do that?

On Fri, Oct 12, 2018 at 5:02 PM gjr80  wrote:

> Sorry, assumed you meant today but I see you did not say that. $day can be
> replaced with $month or $year. Other periods are available too with custom
> search lists.
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] redownload data from station

2018-10-12 Thread Cameron D
Juan,
I presume you are referring to the WMR300 and missing wind speed.
If you have a 5-minute archive period then the console storage will 
increase by close to 1% per day.

If you use the default history clear at 20% then you have *up to* 20 days, 
however it is not possible to *partially *clear the history, so depending 
when the buffer was cleared, you might or might not have much data.

I tend to set it at 6% and I am not certain which setting you are using.  
To be more sure of saving archive/history you could set the parameter:
history_limit = 90

My rule would be - if the live data is working well then use a low 
percentage for:

   1. to leave an empty buffer in case the computer goes down for a long 
   time
   2. each clear is shorter and less interruption to live data flow

but use a high percentage if:

   1. your live data is unreliable and you need to go back over some days 
   worth of data.

-- 
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: Wind scatter graph

2018-10-12 Thread Neil Trimboy
Correct and can easily turn off the lines and the color fading

On Sat, 13 Oct 2018, 13:47 gjr80  wrote:

> Good to hear you are still around Neil. Yes, will have to get it finished.
>
> I knew there were example plots around somewhere but could not remember
> where. The scatter plot without the lines joining the dots would be similar
> to the linked plot.
>
> 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/UmRlbLV5k6A/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-user] Re: Wind scatter graph

2018-10-12 Thread gjr80
Good to hear you are still around Neil. Yes, will have to get it finished.

I knew there were example plots around somewhere but could not remember where. 
The scatter plot without the lines joining the dots would be similar to the 
linked plot.

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Sorry, assumed you meant today but I see you did not say that. $day can be 
replaced with $month or $year. Other periods are available too with custom 
search lists.

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin,

Try $day.windGust.max

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] weewx database details

2018-10-12 Thread Thomas Keffer
Did you check out the section *The database
* in the
Customizing Guide? Take a look, then come back with any questions you might
have.

-tk

On Fri, Oct 12, 2018 at 4:31 PM CCOR58  wrote:

> Is there any big picture tech descriptives about the tables in the
> weewx archive database?
>
> I connect to the mysql database using LibreOffice-base as well as
> phpmyadmin and I see a large number of tables but each table seems to
> only have two columns usually.
>
> I would like to create custom reports using libreOffice base but I need
> to get a better handle on what I am seeing.
>
> Usually I would expect to find a table with single record containing
> multiple fields each holding the latest data collected from the sensors
> at aspecified sample date and time.
>
> The weewx database appears to be set up under a different paradigm I
> fail to grasp.
>
> If there is any place that has refinfo that would help me understand
> what was used to design the database I would appreciate it.
>
> Thanks
> Andy
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 database details

2018-10-12 Thread CCOR58
Is there any big picture tech descriptives about the tables in the
weewx archive database?

I connect to the mysql database using LibreOffice-base as well as
phpmyadmin and I see a large number of tables but each table seems to
only have two columns usually.

I would like to create custom reports using libreOffice base but I need
to get a better handle on what I am seeing.

Usually I would expect to find a table with single record containing
multiple fields each holding the latest data collected from the sensors
at aspecified sample date and time.

The weewx database appears to be set up under a different paradigm I
fail to grasp.

If there is any place that has refinfo that would help me understand
what was used to design the database I would appreciate it.

Thanks
Andy 

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


Re: [weewx-user] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Actually, I have one more related thought. Having wind direction show up in
the RSS and Twitter feeds is important, but I'd like to also have the max
wind gust show up as well. What do I need to change or add to make that
happen?

As always, I really appreciate the help. :)


On Fri, Oct 12, 2018 at 4:04 PM Kevin Lloyd 
wrote:

> Finally found some time to figure this out today! Your suggestions worked,
> Gary! Thank you so much for helping me with that! Hopefully others will
> benefit as well! :)
>
> On Tue, Oct 9, 2018 at 6:33 AM Kevin Lloyd 
> wrote:
>
>> I am indeed referring to that xml file. Thank you so much, Gary! I'll
>> backup the tmpl file and give that a try and see what happens, and post an
>> update here. :)
>>
>> On Mon, Oct 8, 2018 at 6:20 PM gjr80  wrote:
>>
>>> Hi,
>>>
>>> When you refer to the 'RSS feed' I presume you are referring to the
>>> weewx_rss.xml file that appears in public_html/RSS ?
>>>
>>> You can control what appears in weewx_rss.xml through the
>>> skins/Standard/RSS/weewx_rss.xml.tmpl template file. `Wind: 6 km/h from
>>> 106°` will likely be produced by the following:
>>>
>>> $current.windSpeed from $current.windDir
>>>
>>> though it really depends on what you are picking up and tweeting from
>>> weewx_rss.xml. In this case the tag $current.windDir will give you a
>>> numeric direction with degree sign (the default format). If you change that
>>> to use $current.windDir.ordinal_compass instead of just $current.windDir
>>> you will get an ordinal direction like ESE. If you wan to include both you
>>> could use $current.windDir ($current.windDir.ordinal_compass) or 
>>> $current.windDir.ordinal_compass
>>> ($current.windDir) to get 106° (ESE) or ESE (106°) respectively.
>>>
>>> You might want to have a read through the Tags section
>>>  of the Customization Guide
>>>  or if you are really
>>> adventurous the Wind section
>>> .
>>>
>>> Any changes you do make to weewx_rss.xml.tmpl should be safe across
>>> WeeWX upgrades but you may wish to make a copy of your modified
>>> weewx_rss.xml.tmpl just in case.
>>>
>>> Gary
>>>
>>> PS. You may also want to have a look at the twitter extension
>>> , might save you a bit of
>>> double handling.
>>>
>>> --
>>> 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/sO7TbQlGySU/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.
>>>
>>
>>
>> --
>> *Kevin Lloyd*
>> @kevinlovestech 
>> 780-937-7428
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Finally found some time to figure this out today! Your suggestions worked,
Gary! Thank you so much for helping me with that! Hopefully others will
benefit as well! :)

On Tue, Oct 9, 2018 at 6:33 AM Kevin Lloyd  wrote:

> I am indeed referring to that xml file. Thank you so much, Gary! I'll
> backup the tmpl file and give that a try and see what happens, and post an
> update here. :)
>
> On Mon, Oct 8, 2018 at 6:20 PM gjr80  wrote:
>
>> Hi,
>>
>> When you refer to the 'RSS feed' I presume you are referring to the
>> weewx_rss.xml file that appears in public_html/RSS ?
>>
>> You can control what appears in weewx_rss.xml through the
>> skins/Standard/RSS/weewx_rss.xml.tmpl template file. `Wind: 6 km/h from
>> 106°` will likely be produced by the following:
>>
>> $current.windSpeed from $current.windDir
>>
>> though it really depends on what you are picking up and tweeting from
>> weewx_rss.xml. In this case the tag $current.windDir will give you a
>> numeric direction with degree sign (the default format). If you change that
>> to use $current.windDir.ordinal_compass instead of just $current.windDir
>> you will get an ordinal direction like ESE. If you wan to include both you
>> could use $current.windDir ($current.windDir.ordinal_compass) or 
>> $current.windDir.ordinal_compass
>> ($current.windDir) to get 106° (ESE) or ESE (106°) respectively.
>>
>> You might want to have a read through the Tags section
>>  of the Customization Guide
>>  or if you are really adventurous
>> the Wind section .
>>
>> Any changes you do make to weewx_rss.xml.tmpl should be safe across
>> WeeWX upgrades but you may wish to make a copy of your modified
>> weewx_rss.xml.tmpl just in case.
>>
>> Gary
>>
>> PS. You may also want to have a look at the twitter extension
>> , might save you a bit of
>> double handling.
>>
>> --
>> 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/sO7TbQlGySU/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.
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread Sean Lane
Any special permissions needed on that file/ folder
Thank you

Sent from my iPhone

> On Oct 12, 2018, at 6:45 PM, steeple ian  wrote:
> 
> Just change the setting to /var/tmp/realtime.txt when you access 
> easyweathersetup.php from the settings menu. Alternatively you edit 
> settings1.php directly.
> 
> Sent from my iPad
> 
>> On 12 Oct 2018, at 22:36, Sean Lane  wrote:
>> 
>> I have CRT all installed and its kicking out a file in /var/tmp.
>> 
>> My question is around the setup of the skin.. Its looking for 
>> http://server.xyx/realtime.. 
>> 
>> How do i reference the file thats in /var/tmp?
>> 
>> 
>> 
>>> On Fri, Oct 12, 2018 at 6:30 PM steeple ian  wrote:
>>> Have you installed the weewx crt extension and restarted weewx? The 
>>> real-time refers to the realtime.txt file that weewx emits when the 
>>> extension is installed. See the quick start instructions for a link to 
>>> weewx-crt.
>>> 
>>> Sent from my iPhone
>>> 
 On 12 Oct 2018, at 20:04, Sean Lane  wrote:
 
 It’s asking for an http:// path for real-time data.. can we not use file 
 path? I am doing this on the pi and it appears I am missing the real-time 
 clock.
 
 
 Sent from my iPhone
 
> On Oct 12, 2018, at 3:19 PM, steeple ian  wrote:
> 
> assuming that your web root directory is html run the following from the 
> terminal window
> 
> sudo chmod -R 775 /var/www/html
> sudo chmod g+rwx /var/www/html
> 
> o chmod g+rwx /var/www/html/
> 
>> On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:
>> getting this when running easyweathersetup.php.
>> 
>> Unable to open settings1.php file check file permissions !  
>> 
>>> On Fri, Oct 12, 2018 at 1:34 PM steeple ian  
>>> wrote:
>>> Hello Sean. Yes PHP and associated libraries must be installed. One of 
>>> the best tutorials for the RaspberryPi can be found at 
>>> https://hackedit.de/530/
>>> 
>>> Its in German but easy to follow. You can exclude MYSQL unless you plan 
>>> to use it in preference to weeWX's default of SQLite3.
>>> 
 On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
 I am using a raspberrypi.. Do i need to install PHP for this to work. 
 I don't seem to know what the prerequisites are . 
 
 Thanks in advance. 
 
> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com 
> wrote:
> Hello Thomas,
> 
> Thanks for the advice. Job done - zip files removed and files and 
> folders open for inspection.
> 
>> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer 
>> wrote:
>> Sharp looking webpage!
>> 
>> May I offer a suggestion? Right now, your GitHub repository is just 
>> acting as a place to store a bunch of .zip files, making it very 
>> hard to see what's inside them. Many people, myself included, are 
>> reluctant to download unknown zip files. 
>> 
>> Why not just store the raw files, then let GitHub do the zipping? By 
>> storing the raw files, you let people see what they're getting into, 
>> as well as allow them to fork the repository and offer pull 
>> requests. Upgrading is also much easier. GitHub is an amazing 
>> resource --- might as well take full advantage of it.
>> 
>> As you Brits would say, cheers!
>> 
>> -tk
>> 
>>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>>> I think that we can all agree that the real strengths of weeWX are 
>>> what goes on 'under the hood (or the bonnet for a Brit like me)', 
>>> its sheer adaptability and a huge community working out solutions 
>>> together.
>>> 
>>> I came to weeWX after years of being a Cumulus user (another 
>>> excellent software) but came to a grinding halt when changing to 
>>> unsupported Weather Station. It was weeWX to the rescue along with 
>>> the HP1000 driver and I was back up and running. In my Cumulus days 
>>> I had been an early adopter of the excellent weather34 template, 
>>> designed and owned by Brian Underdown. This was originally designed 
>>> for use with Cumulus as a single dashboard concept where everything 
>>> is accessible from a single web page. So could I use the template 
>>> with weeWX, yes by deploying the CRT extension to generate a 
>>> realtime.txt file.
>>> 
>>> Now I wanted it to do more, I am not a coder so it takes me a bit 
>>> longer to discover the snippets of code that I need to make things 
>>> happen and this is where this forum and others became a valuable 
>>> resource for myself along with contributions and technical support 
>>> from others. A big thanks here to David Marshall who has rescued me 

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

2018-10-12 Thread Ruben Navarro Huedo
Testing wmr300x driver with kernel 4.14.70

4 days uptime and going up.

In my first attempt with this driver and 4.14 kernel I lost connection with the 
console 48 hours after starting.

I don't know what changed since the first attempt. 

I continue testing...

-- 
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: Which fields/values does WeeWX publish via MQTT?

2018-10-12 Thread Max G
Thanks Vince; the FWIW contained the hint I needed.
I then understood how to investigate further...

subscribing to what weewx actually sends:
mosquitto_sub -v -t weewx_weather/#

(showing a subset)
weewx_weather/altimeter_mbar 1023.68869064
weewx_weather/windchill_C 14.8
weewx_weather/appTemp_C 16.0114023019
weewx_weather/outTemp_C 14.8
weewx_weather/windGustDir 202.5

then made it clear what I had actually query.

Thank you! :)


On Saturday, October 13, 2018 at 2:48:27 AM UTC+10, vince wrote:
>
> On Friday, October 12, 2018 at 5:34:48 AM UTC-7, Max G wrote:
>>
>> After being unable to find an answer, I am posting here...
>>
>> Which fields/values does WeeWX publish via MQTT?
>> Where can I configure this?
>>
>>
> It publishes everything it has by default.
> In weewx.conf as always
>
> ...
>
 

> FWIW, I just let it publish everything and only subscribe to topics I care 
> about (specifically, I just grab weather/loop and grab the pieces therein). 
>   I also set append_units_label to False so that 'if' I subscribe to a 
> specific topic, I'll just get the data value.
>
>
>
>

-- 
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] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread steeple ian
Just change the setting to /var/tmp/realtime.txt when you access 
easyweathersetup.php from the settings menu. Alternatively you edit 
settings1.php directly.

Sent from my iPad

> On 12 Oct 2018, at 22:36, Sean Lane  wrote:
> 
> I have CRT all installed and its kicking out a file in /var/tmp.
> 
> My question is around the setup of the skin.. Its looking for 
> http://server.xyx/realtime.. 
> 
> How do i reference the file thats in /var/tmp?
> 
> 
> 
>> On Fri, Oct 12, 2018 at 6:30 PM steeple ian  wrote:
>> Have you installed the weewx crt extension and restarted weewx? The 
>> real-time refers to the realtime.txt file that weewx emits when the 
>> extension is installed. See the quick start instructions for a link to 
>> weewx-crt.
>> 
>> Sent from my iPhone
>> 
>>> On 12 Oct 2018, at 20:04, Sean Lane  wrote:
>>> 
>>> It’s asking for an http:// path for real-time data.. can we not use file 
>>> path? I am doing this on the pi and it appears I am missing the real-time 
>>> clock.
>>> 
>>> 
>>> Sent from my iPhone
>>> 
 On Oct 12, 2018, at 3:19 PM, steeple ian  wrote:
 
 assuming that your web root directory is html run the following from the 
 terminal window
 
 sudo chmod -R 775 /var/www/html
 sudo chmod g+rwx /var/www/html
 
 o chmod g+rwx /var/www/html/
 
> On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:
> getting this when running easyweathersetup.php.
> 
> Unable to open settings1.php file check file permissions !  
> 
>> On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:
>> Hello Sean. Yes PHP and associated libraries must be installed. One of 
>> the best tutorials for the RaspberryPi can be found at 
>> https://hackedit.de/530/
>> 
>> Its in German but easy to follow. You can exclude MYSQL unless you plan 
>> to use it in preference to weeWX's default of SQLite3.
>> 
>>> On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
>>> I am using a raspberrypi.. Do i need to install PHP for this to work. I 
>>> don't seem to know what the prerequisites are . 
>>> 
>>> Thanks in advance. 
>>> 
 On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com 
 wrote:
 Hello Thomas,
 
 Thanks for the advice. Job done - zip files removed and files and 
 folders open for inspection.
 
> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
> Sharp looking webpage!
> 
> May I offer a suggestion? Right now, your GitHub repository is just 
> acting as a place to store a bunch of .zip files, making it very hard 
> to see what's inside them. Many people, myself included, are 
> reluctant to download unknown zip files. 
> 
> Why not just store the raw files, then let GitHub do the zipping? By 
> storing the raw files, you let people see what they're getting into, 
> as well as allow them to fork the repository and offer pull requests. 
> Upgrading is also much easier. GitHub is an amazing resource --- 
> might as well take full advantage of it.
> 
> As you Brits would say, cheers!
> 
> -tk
> 
>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>> I think that we can all agree that the real strengths of weeWX are 
>> what goes on 'under the hood (or the bonnet for a Brit like me)', 
>> its sheer adaptability and a huge community working out solutions 
>> together.
>> 
>> I came to weeWX after years of being a Cumulus user (another 
>> excellent software) but came to a grinding halt when changing to 
>> unsupported Weather Station. It was weeWX to the rescue along with 
>> the HP1000 driver and I was back up and running. In my Cumulus days 
>> I had been an early adopter of the excellent weather34 template, 
>> designed and owned by Brian Underdown. This was originally designed 
>> for use with Cumulus as a single dashboard concept where everything 
>> is accessible from a single web page. So could I use the template 
>> with weeWX, yes by deploying the CRT extension to generate a 
>> realtime.txt file.
>> 
>> Now I wanted it to do more, I am not a coder so it takes me a bit 
>> longer to discover the snippets of code that I need to make things 
>> happen and this is where this forum and others became a valuable 
>> resource for myself along with contributions and technical support 
>> from others. A big thanks here to David Marshall who has rescued me 
>> on more than one occasion.
>> 
>> Recently Brian Underwood took the decision to only support the 
>> Meteobridge version of his template going forward. However, he was 
>> very happy for the other versions of the template to hosted 

Re: [weewx-user] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread Sean Lane
I have CRT all installed and its kicking out a file in /var/tmp.

My question is around the setup of the skin.. Its looking for
http://server.xyx/realtime..

How do i reference the file thats in /var/tmp?



On Fri, Oct 12, 2018 at 6:30 PM steeple ian  wrote:

> Have you installed the weewx crt extension and restarted weewx? The
> real-time refers to the realtime.txt file that weewx emits when the
> extension is installed. See the quick start instructions for a link to
> weewx-crt.
>
> Sent from my iPhone
>
> On 12 Oct 2018, at 20:04, Sean Lane  wrote:
>
> It’s asking for an http:// path for real-time data.. can we not use file
> path? I am doing this on the pi and it appears I am missing the real-time
> clock.
>
>
> Sent from my iPhone
>
> On Oct 12, 2018, at 3:19 PM, steeple ian  wrote:
>
> assuming that your web root directory is html run the following from the
> terminal window
>
> sudo chmod -R 775 /var/www/html
> sudo chmod g+rwx /var/www/html
>
> o chmod g+rwx /var/www/html/
>
> On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:
>
>> getting this when running easyweathersetup.php.
>>
>> Unable to open settings1.php file check file permissions !
>>
>> On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:
>>
>>> Hello Sean. Yes PHP and associated libraries must be installed. One of
>>> the best tutorials for the RaspberryPi can be found at
>>> https://hackedit.de/530/
>>>
>>> Its in German but easy to follow. You can exclude MYSQL unless you plan
>>> to use it in preference to weeWX's default of SQLite3.
>>>
>>> On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
>>>
 I am using a raspberrypi.. Do i need to install PHP for this to work. I
 don't seem to know what the prerequisites are .

 Thanks in advance.

 On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com
 wrote:
>
> Hello Thomas,
>
> Thanks for the advice. Job done - zip files removed and files and
> folders open for inspection.
>
> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>>
>> Sharp looking webpage!
>>
>> May I offer a suggestion? Right now, your GitHub repository is just
>> acting as a place to store a bunch of .zip files, making it very hard to
>> see what's inside them. Many people, myself included, are reluctant to
>> download unknown zip files.
>>
>> Why not just store the raw files, then let GitHub do the zipping? By
>> storing the raw files, you let people see what they're getting into, as
>> well as allow them to fork the repository and offer pull requests.
>> Upgrading is also much easier. GitHub is an amazing resource --- might as
>> well take full advantage of it.
>>
>> As you Brits would say, cheers!
>>
>> -tk
>>
>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>>
>>> I think that we can all agree that the real strengths of weeWX are
>>> what goes on 'under the hood (or the bonnet for a Brit like me)', its 
>>> sheer
>>> adaptability and a huge community working out solutions together.
>>>
>>> I came to weeWX after years of being a Cumulus user (another
>>> excellent software) but came to a grinding halt when changing to
>>> unsupported Weather Station. It was weeWX to the rescue along with the
>>> HP1000 driver and I was back up and running. In my Cumulus days I had 
>>> been
>>> an early adopter of the excellent weather34 template, designed and 
>>> owned by
>>> Brian Underdown. This was originally designed for use with Cumulus as a
>>> single dashboard concept where everything is accessible from a single 
>>> web
>>> page. So could I use the template with weeWX, yes by deploying the CRT
>>> extension to generate a realtime.txt file.
>>>
>>> Now I wanted it to do more, I am not a coder so it takes me a bit
>>> longer to discover the snippets of code that I need to make things 
>>> happen
>>> and this is where this forum and others became a valuable resource for
>>> myself along with contributions and technical support from others. A big
>>> thanks here to David Marshall who has rescued me on more than one 
>>> occasion.
>>>
>>> Recently Brian Underwood took the decision to only support the
>>> Meteobridge version of his template going forward. However, he was very
>>> happy for the other versions of the template to hosted and maintained by
>>> others. On this basis, both the weeWX and Cumulus versions live on. I am
>>> now hosting the weeWX version and actively maintaining it in the spirit 
>>> of
>>> Brian's original concept. You can find it here: -
>>>
>>>
>>> https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
>>>
>>> The latest version is now using the weeWX archive database to
>>> generate the pop-up CanvasJS charts instead of relying on Weather
>>> Underground. The 

Re: [weewx-user] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread steeple ian
Have you installed the weewx crt extension and restarted weewx? The real-time 
refers to the realtime.txt file that weewx emits when the extension is 
installed. See the quick start instructions for a link to weewx-crt.

Sent from my iPhone

> On 12 Oct 2018, at 20:04, Sean Lane  wrote:
> 
> It’s asking for an http:// path for real-time data.. can we not use file 
> path? I am doing this on the pi and it appears I am missing the real-time 
> clock.
> 
> 
> Sent from my iPhone
> 
>> On Oct 12, 2018, at 3:19 PM, steeple ian  wrote:
>> 
>> assuming that your web root directory is html run the following from the 
>> terminal window
>> 
>> sudo chmod -R 775 /var/www/html
>> sudo chmod g+rwx /var/www/html
>> 
>> o chmod g+rwx /var/www/html/
>> 
>>> On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:
>>> getting this when running easyweathersetup.php.
>>> 
>>> Unable to open settings1.php file check file permissions !  
>>> 
 On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:
 Hello Sean. Yes PHP and associated libraries must be installed. One of the 
 best tutorials for the RaspberryPi can be found at https://hackedit.de/530/
 
 Its in German but easy to follow. You can exclude MYSQL unless you plan to 
 use it in preference to weeWX's default of SQLite3.
 
> On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
> I am using a raspberrypi.. Do i need to install PHP for this to work. I 
> don't seem to know what the prerequisites are . 
> 
> Thanks in advance. 
> 
>> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com 
>> wrote:
>> Hello Thomas,
>> 
>> Thanks for the advice. Job done - zip files removed and files and 
>> folders open for inspection.
>> 
>>> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>>> Sharp looking webpage!
>>> 
>>> May I offer a suggestion? Right now, your GitHub repository is just 
>>> acting as a place to store a bunch of .zip files, making it very hard 
>>> to see what's inside them. Many people, myself included, are reluctant 
>>> to download unknown zip files. 
>>> 
>>> Why not just store the raw files, then let GitHub do the zipping? By 
>>> storing the raw files, you let people see what they're getting into, as 
>>> well as allow them to fork the repository and offer pull requests. 
>>> Upgrading is also much easier. GitHub is an amazing resource --- might 
>>> as well take full advantage of it.
>>> 
>>> As you Brits would say, cheers!
>>> 
>>> -tk
>>> 
 On Tue, Oct 9, 2018 at 1:55 AM  wrote:
 I think that we can all agree that the real strengths of weeWX are 
 what goes on 'under the hood (or the bonnet for a Brit like me)', its 
 sheer adaptability and a huge community working out solutions together.
 
 I came to weeWX after years of being a Cumulus user (another excellent 
 software) but came to a grinding halt when changing to unsupported 
 Weather Station. It was weeWX to the rescue along with the HP1000 
 driver and I was back up and running. In my Cumulus days I had been an 
 early adopter of the excellent weather34 template, designed and owned 
 by Brian Underdown. This was originally designed for use with Cumulus 
 as a single dashboard concept where everything is accessible from a 
 single web page. So could I use the template with weeWX, yes by 
 deploying the CRT extension to generate a realtime.txt file.
 
 Now I wanted it to do more, I am not a coder so it takes me a bit 
 longer to discover the snippets of code that I need to make things 
 happen and this is where this forum and others became a valuable 
 resource for myself along with contributions and technical support 
 from others. A big thanks here to David Marshall who has rescued me on 
 more than one occasion.
 
 Recently Brian Underwood took the decision to only support the 
 Meteobridge version of his template going forward. However, he was 
 very happy for the other versions of the template to hosted and 
 maintained by others. On this basis, both the weeWX and Cumulus 
 versions live on. I am now hosting the weeWX version and actively 
 maintaining it in the spirit of Brian's original concept. You can find 
 it here: -
 
 https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
 
 The latest version is now using the weeWX archive database to generate 
 the pop-up CanvasJS charts instead of relying on Weather Underground. 
 The setup guides are provided for general guidance only due to the 
 multitude of ways weeWX can be setup by individual users.
 
 I would like to re-iterate that although Brian 

[weewx-user] Re: Wind scatter graph

2018-10-12 Thread Neil Trimboy
I'm still here  but just about to head off on a 4 week business trip !

Would be great if we could complete this some time Gary.
Its been running fine for me for months and months and as you say just a 
couple of 'tickets' in the issues list to make it a bit more user friendly.

There are sample screen shots on my original fork 
at https://github.com/nellyt/weewx-stackedwindrose

However please note that this fork is now defunct, and Gary's at 
https://github.com/gjr80/weewx-polarwindplot is the master that we agreed 
to work on.

Neil

On Friday, 12 October 2018 23:05:26 UTC+13, gjr80 wrote:
>
> Late last year Neil and myself were collaborating on a revised version of 
> my stacked windrose generator that would be able to produce 4 different 
> polar wind plots. One plot is what I call the traditional windrose and the 
> others we called trail, spiral and scatter plots. Unfortunately, I can't 
> remember for the life of me exactly what these 3 plots did (other than the 
> obvious). I looked just now but can't put my hands on any of the sample 
> plots we had working.
>
> Unfortunately again, Neil started a new job late last year and I had other 
> things come up and we did not take the new generator any further. I seem to 
> remember we basically had it working and just needed to fix a number minor 
> issues before it could be released as a WeeWX extension. I am happy to have 
> a look at it when I get home on 22nd and see if the scatter plot is what 
> you seek. It certainly should not take too much extra work to get the whole 
> thing tidied up and out the door.
>
> Not much to see other than code but the repo link is 
> https://github.com/gjr80/weewx-polarwindplot
>
> 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] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread Sean Lane
It’s asking for an http:// path for real-time data.. can we not use file path? 
I am doing this on the pi and it appears I am missing the real-time clock.


Sent from my iPhone

> On Oct 12, 2018, at 3:19 PM, steeple ian  wrote:
> 
> assuming that your web root directory is html run the following from the 
> terminal window
> 
> sudo chmod -R 775 /var/www/html
> sudo chmod g+rwx /var/www/html
> 
> o chmod g+rwx /var/www/html/
> 
>> On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:
>> getting this when running easyweathersetup.php.
>> 
>> Unable to open settings1.php file check file permissions !  
>> 
>>> On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:
>>> Hello Sean. Yes PHP and associated libraries must be installed. One of the 
>>> best tutorials for the RaspberryPi can be found at https://hackedit.de/530/
>>> 
>>> Its in German but easy to follow. You can exclude MYSQL unless you plan to 
>>> use it in preference to weeWX's default of SQLite3.
>>> 
 On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
 I am using a raspberrypi.. Do i need to install PHP for this to work. I 
 don't seem to know what the prerequisites are . 
 
 Thanks in advance. 
 
> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com 
> wrote:
> Hello Thomas,
> 
> Thanks for the advice. Job done - zip files removed and files and folders 
> open for inspection.
> 
>> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>> Sharp looking webpage!
>> 
>> May I offer a suggestion? Right now, your GitHub repository is just 
>> acting as a place to store a bunch of .zip files, making it very hard to 
>> see what's inside them. Many people, myself included, are reluctant to 
>> download unknown zip files. 
>> 
>> Why not just store the raw files, then let GitHub do the zipping? By 
>> storing the raw files, you let people see what they're getting into, as 
>> well as allow them to fork the repository and offer pull requests. 
>> Upgrading is also much easier. GitHub is an amazing resource --- might 
>> as well take full advantage of it.
>> 
>> As you Brits would say, cheers!
>> 
>> -tk
>> 
>>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>>> I think that we can all agree that the real strengths of weeWX are what 
>>> goes on 'under the hood (or the bonnet for a Brit like me)', its sheer 
>>> adaptability and a huge community working out solutions together.
>>> 
>>> I came to weeWX after years of being a Cumulus user (another excellent 
>>> software) but came to a grinding halt when changing to unsupported 
>>> Weather Station. It was weeWX to the rescue along with the HP1000 
>>> driver and I was back up and running. In my Cumulus days I had been an 
>>> early adopter of the excellent weather34 template, designed and owned 
>>> by Brian Underdown. This was originally designed for use with Cumulus 
>>> as a single dashboard concept where everything is accessible from a 
>>> single web page. So could I use the template with weeWX, yes by 
>>> deploying the CRT extension to generate a realtime.txt file.
>>> 
>>> Now I wanted it to do more, I am not a coder so it takes me a bit 
>>> longer to discover the snippets of code that I need to make things 
>>> happen and this is where this forum and others became a valuable 
>>> resource for myself along with contributions and technical support from 
>>> others. A big thanks here to David Marshall who has rescued me on more 
>>> than one occasion.
>>> 
>>> Recently Brian Underwood took the decision to only support the 
>>> Meteobridge version of his template going forward. However, he was very 
>>> happy for the other versions of the template to hosted and maintained 
>>> by others. On this basis, both the weeWX and Cumulus versions live on. 
>>> I am now hosting the weeWX version and actively maintaining it in the 
>>> spirit of Brian's original concept. You can find it here: -
>>> 
>>> https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
>>> 
>>> The latest version is now using the weeWX archive database to generate 
>>> the pop-up CanvasJS charts instead of relying on Weather Underground. 
>>> The setup guides are provided for general guidance only due to the 
>>> multitude of ways weeWX can be setup by individual users.
>>> 
>>> I would like to re-iterate that although Brian Underdown is very happy 
>>> for this version to exist and be maintained, he offers no support 
>>> whatsoever for this version. Any requests to do so will remain 
>>> unanswered. Please respect Brian's wishes in this respect. Any issues 
>>> should be directed to this forum.
>>> 
>>> My own current version of the template shows additional features which 
>>> may be included 

Re: [weewx-user] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread steeple ian
assuming that your web root directory is html run the following from the
terminal window

sudo chmod -R 775 /var/www/html
sudo chmod g+rwx /var/www/html

o chmod g+rwx /var/www/html/

On Fri, Oct 12, 2018 at 6:40 PM Sean Lane  wrote:

> getting this when running easyweathersetup.php.
>
> Unable to open settings1.php file check file permissions !
>
> On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:
>
>> Hello Sean. Yes PHP and associated libraries must be installed. One of
>> the best tutorials for the RaspberryPi can be found at
>> https://hackedit.de/530/
>>
>> Its in German but easy to follow. You can exclude MYSQL unless you plan
>> to use it in preference to weeWX's default of SQLite3.
>>
>> On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
>>
>>> I am using a raspberrypi.. Do i need to install PHP for this to work. I
>>> don't seem to know what the prerequisites are .
>>>
>>> Thanks in advance.
>>>
>>> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com
>>> wrote:

 Hello Thomas,

 Thanks for the advice. Job done - zip files removed and files and
 folders open for inspection.

 On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>
> Sharp looking webpage!
>
> May I offer a suggestion? Right now, your GitHub repository is just
> acting as a place to store a bunch of .zip files, making it very hard to
> see what's inside them. Many people, myself included, are reluctant to
> download unknown zip files.
>
> Why not just store the raw files, then let GitHub do the zipping? By
> storing the raw files, you let people see what they're getting into, as
> well as allow them to fork the repository and offer pull requests.
> Upgrading is also much easier. GitHub is an amazing resource --- might as
> well take full advantage of it.
>
> As you Brits would say, cheers!
>
> -tk
>
> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>
>> I think that we can all agree that the real strengths of weeWX are
>> what goes on 'under the hood (or the bonnet for a Brit like me)', its 
>> sheer
>> adaptability and a huge community working out solutions together.
>>
>> I came to weeWX after years of being a Cumulus user (another
>> excellent software) but came to a grinding halt when changing to
>> unsupported Weather Station. It was weeWX to the rescue along with the
>> HP1000 driver and I was back up and running. In my Cumulus days I had 
>> been
>> an early adopter of the excellent weather34 template, designed and owned 
>> by
>> Brian Underdown. This was originally designed for use with Cumulus as a
>> single dashboard concept where everything is accessible from a single web
>> page. So could I use the template with weeWX, yes by deploying the CRT
>> extension to generate a realtime.txt file.
>>
>> Now I wanted it to do more, I am not a coder so it takes me a bit
>> longer to discover the snippets of code that I need to make things happen
>> and this is where this forum and others became a valuable resource for
>> myself along with contributions and technical support from others. A big
>> thanks here to David Marshall who has rescued me on more than one 
>> occasion.
>>
>> Recently Brian Underwood took the decision to only support the
>> Meteobridge version of his template going forward. However, he was very
>> happy for the other versions of the template to hosted and maintained by
>> others. On this basis, both the weeWX and Cumulus versions live on. I am
>> now hosting the weeWX version and actively maintaining it in the spirit 
>> of
>> Brian's original concept. You can find it here: -
>>
>>
>> https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
>>
>> The latest version is now using the weeWX archive database to
>> generate the pop-up CanvasJS charts instead of relying on Weather
>> Underground. The setup guides are provided for general guidance only due 
>> to
>> the multitude of ways weeWX can be setup by individual users.
>>
>> I would like to re-iterate that although Brian Underdown is very
>> happy for this version to exist and be maintained, he offers no support
>> whatsoever for this version. Any requests to do so will remain 
>> unanswered.
>> Please respect Brian's wishes in this respect. Any issues should be
>> directed to this forum.
>>
>> My own current version of the template shows additional features
>> which may be included in future updates if there is sufficient demand. It
>> can found here https://claydonsweather.org.uk
>>
>> When used with a smartphone or a narrow browser window, the page
>> morphs into a slimline mobile version.
>>
>> --
>> You received this message because you are subscribed to the Google
>> 

Re: [weewx-user] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread Sean Lane
getting this when running easyweathersetup.php.

Unable to open settings1.php file check file permissions !

On Fri, Oct 12, 2018 at 1:34 PM steeple ian  wrote:

> Hello Sean. Yes PHP and associated libraries must be installed. One of the
> best tutorials for the RaspberryPi can be found at
> https://hackedit.de/530/
>
> Its in German but easy to follow. You can exclude MYSQL unless you plan to
> use it in preference to weeWX's default of SQLite3.
>
> On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:
>
>> I am using a raspberrypi.. Do i need to install PHP for this to work. I
>> don't seem to know what the prerequisites are .
>>
>> Thanks in advance.
>>
>> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com
>> wrote:
>>>
>>> Hello Thomas,
>>>
>>> Thanks for the advice. Job done - zip files removed and files and
>>> folders open for inspection.
>>>
>>> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:

 Sharp looking webpage!

 May I offer a suggestion? Right now, your GitHub repository is just
 acting as a place to store a bunch of .zip files, making it very hard to
 see what's inside them. Many people, myself included, are reluctant to
 download unknown zip files.

 Why not just store the raw files, then let GitHub do the zipping? By
 storing the raw files, you let people see what they're getting into, as
 well as allow them to fork the repository and offer pull requests.
 Upgrading is also much easier. GitHub is an amazing resource --- might as
 well take full advantage of it.

 As you Brits would say, cheers!

 -tk

 On Tue, Oct 9, 2018 at 1:55 AM  wrote:

> I think that we can all agree that the real strengths of weeWX are
> what goes on 'under the hood (or the bonnet for a Brit like me)', its 
> sheer
> adaptability and a huge community working out solutions together.
>
> I came to weeWX after years of being a Cumulus user (another excellent
> software) but came to a grinding halt when changing to unsupported Weather
> Station. It was weeWX to the rescue along with the HP1000 driver and I was
> back up and running. In my Cumulus days I had been an early adopter of the
> excellent weather34 template, designed and owned by Brian Underdown. This
> was originally designed for use with Cumulus as a single dashboard concept
> where everything is accessible from a single web page. So could I use the
> template with weeWX, yes by deploying the CRT extension to generate a
> realtime.txt file.
>
> Now I wanted it to do more, I am not a coder so it takes me a bit
> longer to discover the snippets of code that I need to make things happen
> and this is where this forum and others became a valuable resource for
> myself along with contributions and technical support from others. A big
> thanks here to David Marshall who has rescued me on more than one 
> occasion.
>
> Recently Brian Underwood took the decision to only support the
> Meteobridge version of his template going forward. However, he was very
> happy for the other versions of the template to hosted and maintained by
> others. On this basis, both the weeWX and Cumulus versions live on. I am
> now hosting the weeWX version and actively maintaining it in the spirit of
> Brian's original concept. You can find it here: -
>
>
> https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
>
> The latest version is now using the weeWX archive database to generate
> the pop-up CanvasJS charts instead of relying on Weather Underground. The
> setup guides are provided for general guidance only due to the multitude 
> of
> ways weeWX can be setup by individual users.
>
> I would like to re-iterate that although Brian Underdown is very happy
> for this version to exist and be maintained, he offers no support
> whatsoever for this version. Any requests to do so will remain unanswered.
> Please respect Brian's wishes in this respect. Any issues should be
> directed to this forum.
>
> My own current version of the template shows additional features which
> may be included in future updates if there is sufficient demand. It can
> found here https://claydonsweather.org.uk
>
> When used with a smartphone or a narrow browser window, the page
> morphs into a slimline mobile version.
>
> --
> 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 

[weewx-user] Re: "cannot find 'document'"

2018-10-12 Thread Auchtermuchty Weather
Ah - must have lost them along the way.  Thanks for explaining.

On Friday, 12 October 2018 18:21:46 UTC+1, Andrew Milner wrote:
>
> The original had #raw and #end raw around the js code - so that cheetah 
> would ignore the section - as the comment says - to avoid the dollars 
> causing confusion!!
>
>
>
> On Friday, 12 October 2018 17:45:06 UTC+3, Auchtermuchty Weather wrote:
>>
>> I am getting this error when I run wee_reports for the Bootstrap skin. 
>> This is using WeeWx 3.8.2 on an RPi running the latest Stretch Lite, Debian 
>> 9.
>>
>> From /var/log/syslog:
>>
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator: Generate 
>> failed with exception ''
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
>> Ignoring template /home/weewx/skins/Bootstrap/index.html.tmpl
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
>> Reason: cannot find 'document'
>> Oct 12 14:07:50 sgcweather wee_reports[28336]:   Traceback (most 
>> recent call last):
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
>> Oct 12 14:07:50 sgcweather wee_reports[28336]:   print >> _file, 
>> compiled_template
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>> __str__
>> Oct 12 14:07:50 sgcweather wee_reports[28336]:   rc = 
>> getattr(self, mainMethName)()
>> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
>> "_home_weewx_skins_Bootstrap_index_html_tmpl.py", line 216, in respond
>> Oct 12 14:07:50 sgcweather wee_reports[28336]:   NotFound: cannot 
>> find 'document'
>> Oct 12 14:07:53 sgcweather wee_reports[28336]: cheetahgenerator: 
>> Generated 9 files for report HTMLPages in 28.55 seconds
>>
>> Unfortunately it doesn't give the name of what it can't find.
>>
>> The index.html.tmpl file exists:
>>
>> $ ls /home/weewx/skins/Bootstrap/index.html.tmpl
>> /home/weewx/skins/Bootstrap/index.html.tmpl
>>
>> It has three #include statements, the files they refer to all exist as 
>> well so I'm not sure what the error is.
>>
>> #include "gauges.html.tmpl"
>> #include "stationinfo.html.tmpl"
>> #include "graphs.html.tmpl"
>>
>>
>> Index.html.tmpl:
>>
>> 
>> 
>>   
>> 
>> 
>> 
>> $BootstrapLabels.title
>> 
>> 
>> 
>> 
>> 
>>   
>>   
>> 
>> 
>>   
>> > data-toggle="collapse" data-target=".navbar-collapse">
>>   Toggle navigation
>>   
>>   
>>   
>>   
>> 
>> > href="$BootstrapLabels.location_href">$station.location
>>
>>   
>> 
>>   > href="#">$BootstrapLabels.headings.front_page
>>   > href="stats.html">$BootstrapLabels.headings.stats
>>   > href="history.html">$BootstrapLabels.headings.history
>>   $BootstrapLabels.headings.news
>>   > href="about.html">$BootstrapLabels.headings.about
>> 
>> $BootstrapLabels.headings.last_update $current.dateTime
>>   
>>   
>> 
>> 
>>   
>> 
>>   
>> #include "gauges.html.tmpl"
>>   
>> #include "stationinfo.html.tmpl"
>>  
>> 
>> 
>>
>>  > href="#">$BootstrapLabels.timespans.day
>>  > href="week.html">$BootstrapLabels.timespans.week
>>  > href="month.html">$BootstrapLabels.timespans.month
>>  > href="year.html">$BootstrapLabels.timespans.year
>>  
>>
>> 
>> #include "graphs.html.tmpl"
>>  
>>
>>   
>> 
>> 
>>SGC 2018
>> 
>> 
>> 
>> https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
>> ">
>> 
>> 
>> 
>> 
>> 
>> $(document).delegate('*[data-toggle="lightbox"]', 'click', 
>> function(event) {
>> event.preventDefault();
>> $(this).ekkoLightbox();
>> });
>> 
>>   
>> 
>>
>> gauges.html.tmp:
>> 
>>   
>>   
>> 
>> Wind Rose
>> windRoseGuage.png
>> 
>>
>>   
>>   
>> 
>> $Labels.Generic.outTemp
>> outTempGauge.png
>> 
>>   
>> 
>> $Labels.Generic.barometer
>> barometerGauge.png
>> 
>>
>>   
>>   
>> 
>> $Labels.Generic.windDir
>> windDirGauge.png
>> 
>>   
>> 
>> $Labels.Generic.outHumidity
>> outHumidityGauge.png
>> 
>>
>>   
>>   
>> 
>> 

[weewx-user] Re: "cannot find 'document'"

2018-10-12 Thread Andrew Milner
The original had #raw and #end raw around the js code - so that cheetah 
would ignore the section - as the comment says - to avoid the dollars 
causing confusion!!



On Friday, 12 October 2018 17:45:06 UTC+3, Auchtermuchty Weather wrote:
>
> I am getting this error when I run wee_reports for the Bootstrap skin. 
> This is using WeeWx 3.8.2 on an RPi running the latest Stretch Lite, Debian 
> 9.
>
> From /var/log/syslog:
>
> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator: Generate 
> failed with exception ''
> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
> Ignoring template /home/weewx/skins/Bootstrap/index.html.tmpl
> Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
> Reason: cannot find 'document'
> Oct 12 14:07:50 sgcweather wee_reports[28336]:   Traceback (most 
> recent call last):
> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
> Oct 12 14:07:50 sgcweather wee_reports[28336]:   print >> _file, 
> compiled_template
> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> Oct 12 14:07:50 sgcweather wee_reports[28336]:   rc = 
> getattr(self, mainMethName)()
> Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
> "_home_weewx_skins_Bootstrap_index_html_tmpl.py", line 216, in respond
> Oct 12 14:07:50 sgcweather wee_reports[28336]:   NotFound: cannot find 
> 'document'
> Oct 12 14:07:53 sgcweather wee_reports[28336]: cheetahgenerator: Generated 
> 9 files for report HTMLPages in 28.55 seconds
>
> Unfortunately it doesn't give the name of what it can't find.
>
> The index.html.tmpl file exists:
>
> $ ls /home/weewx/skins/Bootstrap/index.html.tmpl
> /home/weewx/skins/Bootstrap/index.html.tmpl
>
> It has three #include statements, the files they refer to all exist as 
> well so I'm not sure what the error is.
>
> #include "gauges.html.tmpl"
> #include "stationinfo.html.tmpl"
> #include "graphs.html.tmpl"
>
>
> Index.html.tmpl:
>
> 
> 
>   
> 
> 
> 
> $BootstrapLabels.title
> 
> 
> 
> 
> 
>   
>   
> 
> 
>   
>  data-toggle="collapse" data-target=".navbar-collapse">
>   Toggle navigation
>   
>   
>   
>   
> 
>  href="$BootstrapLabels.location_href">$station.location
>
>   
> 
>href="#">$BootstrapLabels.headings.front_page
>   $BootstrapLabels.headings.stats
>href="history.html">$BootstrapLabels.headings.history
>   $BootstrapLabels.headings.news
>   $BootstrapLabels.headings.about
> 
> $BootstrapLabels.headings.last_update $current.dateTime
>   
>   
> 
> 
>   
> 
>   
> #include "gauges.html.tmpl"
>   
> #include "stationinfo.html.tmpl"
>  
> 
> 
>
>   href="#">$BootstrapLabels.timespans.day
>   href="week.html">$BootstrapLabels.timespans.week
>   href="month.html">$BootstrapLabels.timespans.month
>   href="year.html">$BootstrapLabels.timespans.year
>  
>
> 
> #include "graphs.html.tmpl"
>  
>
>   
> 
> 
>SGC 2018
> 
> 
> 
> https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
> ">
> 
> 
> 
> 
> 
> $(document).delegate('*[data-toggle="lightbox"]', 'click', 
> function(event) {
> event.preventDefault();
> $(this).ekkoLightbox();
> });
> 
>   
> 
>
> gauges.html.tmp:
> 
>   
>   
> 
> Wind Rose
> windRoseGuage.png
> 
>
>   
>   
> 
> $Labels.Generic.outTemp
> outTempGauge.png
> 
>   
> 
> $Labels.Generic.barometer
> barometerGauge.png
> 
>
>   
>   
> 
> $Labels.Generic.windDir
> windDirGauge.png
> 
>   
> 
> $Labels.Generic.outHumidity
> outHumidityGauge.png
> 
>
>   
>   
> 
> $Labels.Generic.windSpeed
> windSpeedGuage.png
> 
>   
> 
> $Labels.Generic.windGust
> windGustGuage.png
> 
>
> 
>
> stationinfo.html.tmpl:
> 
> 
> 
>   
>   
> 

Re: [weewx-user] Re: "cannot find 'document'"

2018-10-12 Thread Auchtermuchty Weather
Fab, that worked.  Thanks.

On Friday, 12 October 2018 16:21:56 UTC+1, Auchtermuchty Weather wrote:
>
> Thanks will try this, though strangely it used to generate.
>
> On Friday, 12 October 2018 15:53:06 UTC+1, Thomas Keffer wrote:
>>
>> Oh, and you're going to have the same problem with 'this'. So, you want
>>
>>   \$(document).delegate('*[data-toggle="lightbox"]', 'click', 
>> function(event) {
>> event.preventDefault();
>> \$(this).ekkoLightbox();
>> });
>>
>> On Fri, Oct 12, 2018 at 7:51 AM Thomas Keffer  wrote:
>>
>>> I suspect the problem is a collision between jQuery and Cheetah.
>>>
>>> Your index.html.tmpl template contains the phrase
>>>
>>>   $(document).delegate('*[data-toggle="lightbox"]', 'click', 
>>> function(event) {
>>> event.preventDefault();
>>> $(this).ekkoLightbox();
>>> });
>>>
>>> This is a call to the jQuery function $(), but Cheetah is treating it as 
>>> a tag. Escape the dollar sign like this:
>>>
>>>   \$(document).delegate('*[data-toggle="lightbox"]', 'click', 
>>> function(event) {
>>> event.preventDefault();
>>> $(this).ekkoLightbox();
>>> });
>>>
>>> -tk
>>>
>>> On Fri, Oct 12, 2018 at 7:47 AM Auchtermuchty Weather <
>>> shunr...@gmail.com> wrote:
>>>

 Just to add, I use 'sudo' to run wee_reports as otherwise I get 
 permission errors.

>
> -- 
 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: Which fields/values does WeeWX publish via MQTT?

2018-10-12 Thread vince
On Friday, October 12, 2018 at 5:34:48 AM UTC-7, Max G wrote:
>
> After being unable to find an answer, I am posting here...
>
> Which fields/values does WeeWX publish via MQTT?
> Where can I configure this?
>
>
It publishes everything it has by default.
In weewx.conf as always

If you look at the mqtt.py code, it seems like you can limit the 
observations it sends by explicitly setting them as desired:

class MQTT(weewx.restx.StdRESTbase):
def __init__(self, engine, config_dict):
"""This service recognizes standard restful options plus the 
following:

Required parameters:

server_url: URL of the broker, e.g., something of the form
  mqtt://username:password@localhost:1883/
Default is None

Optional parameters:

unit_system: one of US, METRIC, or METRICWX
Default is None; units will be those of data in the database

topic: the MQTT topic under which to post
Default is 'weather'

append_units_label: should units label be appended to name
Default is True

obs_to_upload: Which observations to upload.  Possible values are
none or all.  When none is specified, only items in the inputs list
will be uploaded.  When all is specified, all observations will be
uploaded, subject to overrides in the inputs list.
Default is all



FWIW, I just let it publish everything and only subscribe to topics I care 
about (specifically, I just grab weather/loop and grab the pieces therein). 
  I also set append_units_label to False so that 'if' I subscribe to a 
specific topic, I'll just get the data value.



-- 
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: Stopping Weewx from auto starting

2018-10-12 Thread vince
On Friday, October 12, 2018 at 7:15:49 AM UTC-7, Phil Green wrote:
>
> I have discovered that when I installed the rtc I forgot to remove the 
> fake-clock service. 
>
>
Yup - that'll do it all the time.
 

-- 
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] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread steeple ian
Hello Sean. Yes PHP and associated libraries must be installed. One of the
best tutorials for the RaspberryPi can be found at https://hackedit.de/530/

Its in German but easy to follow. You can exclude MYSQL unless you plan to
use it in preference to weeWX's default of SQLite3.

On Fri, Oct 12, 2018 at 2:25 PM Sean Lane  wrote:

> I am using a raspberrypi.. Do i need to install PHP for this to work. I
> don't seem to know what the prerequisites are .
>
> Thanks in advance.
>
> On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com
> wrote:
>>
>> Hello Thomas,
>>
>> Thanks for the advice. Job done - zip files removed and files and folders
>> open for inspection.
>>
>> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>>>
>>> Sharp looking webpage!
>>>
>>> May I offer a suggestion? Right now, your GitHub repository is just
>>> acting as a place to store a bunch of .zip files, making it very hard to
>>> see what's inside them. Many people, myself included, are reluctant to
>>> download unknown zip files.
>>>
>>> Why not just store the raw files, then let GitHub do the zipping? By
>>> storing the raw files, you let people see what they're getting into, as
>>> well as allow them to fork the repository and offer pull requests.
>>> Upgrading is also much easier. GitHub is an amazing resource --- might as
>>> well take full advantage of it.
>>>
>>> As you Brits would say, cheers!
>>>
>>> -tk
>>>
>>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>>>
 I think that we can all agree that the real strengths of weeWX are what
 goes on 'under the hood (or the bonnet for a Brit like me)', its sheer
 adaptability and a huge community working out solutions together.

 I came to weeWX after years of being a Cumulus user (another excellent
 software) but came to a grinding halt when changing to unsupported Weather
 Station. It was weeWX to the rescue along with the HP1000 driver and I was
 back up and running. In my Cumulus days I had been an early adopter of the
 excellent weather34 template, designed and owned by Brian Underdown. This
 was originally designed for use with Cumulus as a single dashboard concept
 where everything is accessible from a single web page. So could I use the
 template with weeWX, yes by deploying the CRT extension to generate a
 realtime.txt file.

 Now I wanted it to do more, I am not a coder so it takes me a bit
 longer to discover the snippets of code that I need to make things happen
 and this is where this forum and others became a valuable resource for
 myself along with contributions and technical support from others. A big
 thanks here to David Marshall who has rescued me on more than one occasion.

 Recently Brian Underwood took the decision to only support the
 Meteobridge version of his template going forward. However, he was very
 happy for the other versions of the template to hosted and maintained by
 others. On this basis, both the weeWX and Cumulus versions live on. I am
 now hosting the weeWX version and actively maintaining it in the spirit of
 Brian's original concept. You can find it here: -


 https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted

 The latest version is now using the weeWX archive database to generate
 the pop-up CanvasJS charts instead of relying on Weather Underground. The
 setup guides are provided for general guidance only due to the multitude of
 ways weeWX can be setup by individual users.

 I would like to re-iterate that although Brian Underdown is very happy
 for this version to exist and be maintained, he offers no support
 whatsoever for this version. Any requests to do so will remain unanswered.
 Please respect Brian's wishes in this respect. Any issues should be
 directed to this forum.

 My own current version of the template shows additional features which
 may be included in future updates if there is sufficient demand. It can
 found here https://claydonsweather.org.uk

 When used with a smartphone or a narrow browser window, the page morphs
 into a slimline mobile version.

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

Re: [weewx-user] Re: "cannot find 'document'"

2018-10-12 Thread Auchtermuchty Weather
Thanks will try this, though strangely it used to generate.

On Friday, 12 October 2018 15:53:06 UTC+1, Thomas Keffer wrote:
>
> Oh, and you're going to have the same problem with 'this'. So, you want
>
>   \$(document).delegate('*[data-toggle="lightbox"]', 'click', 
> function(event) {
> event.preventDefault();
> \$(this).ekkoLightbox();
> });
>
> On Fri, Oct 12, 2018 at 7:51 AM Thomas Keffer  > wrote:
>
>> I suspect the problem is a collision between jQuery and Cheetah.
>>
>> Your index.html.tmpl template contains the phrase
>>
>>   $(document).delegate('*[data-toggle="lightbox"]', 'click', 
>> function(event) {
>> event.preventDefault();
>> $(this).ekkoLightbox();
>> });
>>
>> This is a call to the jQuery function $(), but Cheetah is treating it as 
>> a tag. Escape the dollar sign like this:
>>
>>   \$(document).delegate('*[data-toggle="lightbox"]', 'click', 
>> function(event) {
>> event.preventDefault();
>> $(this).ekkoLightbox();
>> });
>>
>> -tk
>>
>> On Fri, Oct 12, 2018 at 7:47 AM Auchtermuchty Weather > > wrote:
>>
>>>
>>> Just to add, I use 'sudo' to run wee_reports as otherwise I get 
>>> permission errors.
>>>

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


Re: [weewx-user] Re: "cannot find 'document'"

2018-10-12 Thread Thomas Keffer
Oh, and you're going to have the same problem with 'this'. So, you want

  \$(document).delegate('*[data-toggle="lightbox"]', 'click',
function(event) {
event.preventDefault();
\$(this).ekkoLightbox();
});

On Fri, Oct 12, 2018 at 7:51 AM Thomas Keffer  wrote:

> I suspect the problem is a collision between jQuery and Cheetah.
>
> Your index.html.tmpl template contains the phrase
>
>   $(document).delegate('*[data-toggle="lightbox"]', 'click',
> function(event) {
> event.preventDefault();
> $(this).ekkoLightbox();
> });
>
> This is a call to the jQuery function $(), but Cheetah is treating it as a
> tag. Escape the dollar sign like this:
>
>   \$(document).delegate('*[data-toggle="lightbox"]', 'click',
> function(event) {
> event.preventDefault();
> $(this).ekkoLightbox();
> });
>
> -tk
>
> On Fri, Oct 12, 2018 at 7:47 AM Auchtermuchty Weather <
> shunrac...@gmail.com> wrote:
>
>>
>> Just to add, I use 'sudo' to run wee_reports as otherwise I get
>> permission errors.
>>
>>>
>>> --
>> 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: "cannot find 'document'"

2018-10-12 Thread Thomas Keffer
I suspect the problem is a collision between jQuery and Cheetah.

Your index.html.tmpl template contains the phrase

  $(document).delegate('*[data-toggle="lightbox"]', 'click',
function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});

This is a call to the jQuery function $(), but Cheetah is treating it as a
tag. Escape the dollar sign like this:

  \$(document).delegate('*[data-toggle="lightbox"]', 'click',
function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});

-tk

On Fri, Oct 12, 2018 at 7:47 AM Auchtermuchty Weather 
wrote:

>
> Just to add, I use 'sudo' to run wee_reports as otherwise I get permission
> errors.
>
>>
>> --
> 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: "cannot find 'document'"

2018-10-12 Thread Auchtermuchty Weather

Just to add, I use 'sudo' to run wee_reports as otherwise I get permission 
errors.

>
>

-- 
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] "cannot find 'document'"

2018-10-12 Thread Auchtermuchty Weather
I am getting this error when I run wee_reports for the Bootstrap skin. This 
is using WeeWx 3.8.2 on an RPi running the latest Stretch Lite, Debian 9.

>From /var/log/syslog:

Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator: Generate 
failed with exception ''
Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
Ignoring template /home/weewx/skins/Bootstrap/index.html.tmpl
Oct 12 14:07:50 sgcweather wee_reports[28336]: cheetahgenerator:  
Reason: cannot find 'document'
Oct 12 14:07:50 sgcweather wee_reports[28336]:   Traceback (most recent 
call last):
Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Oct 12 14:07:50 sgcweather wee_reports[28336]:   print >> _file, 
compiled_template
Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
Oct 12 14:07:50 sgcweather wee_reports[28336]:   rc = getattr(self, 
mainMethName)()
Oct 12 14:07:50 sgcweather wee_reports[28336]: File 
"_home_weewx_skins_Bootstrap_index_html_tmpl.py", line 216, in respond
Oct 12 14:07:50 sgcweather wee_reports[28336]:   NotFound: cannot find 
'document'
Oct 12 14:07:53 sgcweather wee_reports[28336]: cheetahgenerator: Generated 
9 files for report HTMLPages in 28.55 seconds

Unfortunately it doesn't give the name of what it can't find.

The index.html.tmpl file exists:

$ ls /home/weewx/skins/Bootstrap/index.html.tmpl
/home/weewx/skins/Bootstrap/index.html.tmpl

It has three #include statements, the files they refer to all exist as well 
so I'm not sure what the error is.

#include "gauges.html.tmpl"
#include "stationinfo.html.tmpl"
#include "graphs.html.tmpl"


Index.html.tmpl:



  



$BootstrapLabels.title





  
  


  

  Toggle navigation
  
  
  
  

$station.location
   
  

  $BootstrapLabels.headings.front_page
  $BootstrapLabels.headings.stats
  $BootstrapLabels.headings.history
  $BootstrapLabels.headings.news
  $BootstrapLabels.headings.about

$BootstrapLabels.headings.last_update $current.dateTime
  
  


  

  
#include "gauges.html.tmpl"
  
#include "stationinfo.html.tmpl"
 


   
 $BootstrapLabels.timespans.day
 $BootstrapLabels.timespans.week
 $BootstrapLabels.timespans.month
 $BootstrapLabels.timespans.year
 
   

#include "graphs.html.tmpl"
 
   
  


   SGC 2018



https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js";>





$(document).delegate('*[data-toggle="lightbox"]', 'click', 
function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});

  


gauges.html.tmp:

  
  

Wind Rose
windRoseGuage.png

   
  
  

$Labels.Generic.outTemp
outTempGauge.png

  

$Labels.Generic.barometer
barometerGauge.png

   
  
  

$Labels.Generic.windDir
windDirGauge.png

  

$Labels.Generic.outHumidity
outHumidityGauge.png

   
  
  

$Labels.Generic.windSpeed
windSpeedGuage.png

  

$Labels.Generic.windGust
windGustGuage.png

   


stationinfo.html.tmpl:



  
  
$BootstrapLabels.status.latitude
$station.latitude[0] $station.latitude[1]' 
$station.latitude[2]
  
  
$BootstrapLabels.status.longitude
$station.longitude[0] 
$station.longitude[1]' $station.longitude[2]
  
  
$BootstrapLabels.status.altitude
$station.altitude
  
  
$BootstrapLabels.status.station_uptime
$station.uptime
  
  
$BootstrapLabels.status.server_uptime
$station.os_uptime
  

[weewx-user] Re: Stopping Weewx from auto starting

2018-10-12 Thread Phil Green
Thanks for the advice. 
I have discovered that when I installed the rtc I forgot to remove the 
fake-clock service. 
That is why my time was in the past until the rtc was read at startup. 
I have re-enabled Weewx to auto start and restarted the Pi and all is fine now. 
Phil. 

-- 
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] An alternative way of applying a skin - a ready made drop-in template customised for weeWX

2018-10-12 Thread Sean Lane
I am using a raspberrypi.. Do i need to install PHP for this to work. I 
don't seem to know what the prerequisites are . 

Thanks in advance. 

On Tuesday, October 9, 2018 at 12:31:02 PM UTC-3, steep...@gmail.com wrote:
>
> Hello Thomas,
>
> Thanks for the advice. Job done - zip files removed and files and folders 
> open for inspection.
>
> On Tuesday, October 9, 2018 at 12:43:43 PM UTC+1, Thomas Keffer wrote:
>>
>> Sharp looking webpage!
>>
>> May I offer a suggestion? Right now, your GitHub repository is just 
>> acting as a place to store a bunch of .zip files, making it very hard to 
>> see what's inside them. Many people, myself included, are reluctant to 
>> download unknown zip files. 
>>
>> Why not just store the raw files, then let GitHub do the zipping? By 
>> storing the raw files, you let people see what they're getting into, as 
>> well as allow them to fork the repository and offer pull requests. 
>> Upgrading is also much easier. GitHub is an amazing resource --- might as 
>> well take full advantage of it.
>>
>> As you Brits would say, cheers!
>>
>> -tk
>>
>> On Tue, Oct 9, 2018 at 1:55 AM  wrote:
>>
>>> I think that we can all agree that the real strengths of weeWX are what 
>>> goes on 'under the hood (or the bonnet for a Brit like me)', its sheer 
>>> adaptability and a huge community working out solutions together.
>>>
>>> I came to weeWX after years of being a Cumulus user (another excellent 
>>> software) but came to a grinding halt when changing to unsupported Weather 
>>> Station. It was weeWX to the rescue along with the HP1000 driver and I was 
>>> back up and running. In my Cumulus days I had been an early adopter of the 
>>> excellent weather34 template, designed and owned by Brian Underdown. This 
>>> was originally designed for use with Cumulus as a single dashboard concept 
>>> where everything is accessible from a single web page. So could I use the 
>>> template with weeWX, yes by deploying the CRT extension to generate a 
>>> realtime.txt file.
>>>
>>> Now I wanted it to do more, I am not a coder so it takes me a bit longer 
>>> to discover the snippets of code that I need to make things happen and this 
>>> is where this forum and others became a valuable resource for myself along 
>>> with contributions and technical support from others. A big thanks here to 
>>> David Marshall who has rescued me on more than one occasion.
>>>
>>> Recently Brian Underwood took the decision to only support the 
>>> Meteobridge version of his template going forward. However, he was very 
>>> happy for the other versions of the template to hosted and maintained by 
>>> others. On this basis, both the weeWX and Cumulus versions live on. I am 
>>> now hosting the weeWX version and actively maintaining it in the spirit of 
>>> Brian's original concept. You can find it here: -
>>>
>>>
>>> https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted
>>>
>>> The latest version is now using the weeWX archive database to generate 
>>> the pop-up CanvasJS charts instead of relying on Weather Underground. The 
>>> setup guides are provided for general guidance only due to the multitude of 
>>> ways weeWX can be setup by individual users.
>>>
>>> I would like to re-iterate that although Brian Underdown is very happy 
>>> for this version to exist and be maintained, he offers no support 
>>> whatsoever for this version. Any requests to do so will remain unanswered. 
>>> Please respect Brian's wishes in this respect. Any issues should be 
>>> directed to this forum.
>>>
>>> My own current version of the template shows additional features which 
>>> may be included in future updates if there is sufficient demand. It can 
>>> found here https://claydonsweather.org.uk
>>>
>>> When used with a smartphone or a narrow browser window, the page morphs 
>>> into a slimline mobile version.
>>>
>>> -- 
>>> 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: Stopping Weewx from auto starting

2018-10-12 Thread tomnykds
One point... if you are on a recent OS and using systemd, part of the 
advertising for it is faster startup by paralleling things at startup.  
Another feature of the service files is the ability to have one service 
wait for another to get going.  In this case, you'd want the weewx.service 
to require the RTC service to have started.  This is a decent, but brief 
overview of 
systemd: 
https://people.redhat.com/mskinner/rhug/q1.2014/Demystifying_Systemd.pdf

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] Which fields/values does WeeWX publish via MQTT?

2018-10-12 Thread Max G
After being unable to find an answer, I am posting here...

Which fields/values does WeeWX publish via MQTT?
Where can I configure this?

I am getting these values (marked with a +) by using the fields provided 
under skins.conf:
... and not getting those marked with -

+ {mqtt="<[mymosquitto:weewx_weather/inTemp_C:state:default]"}
+ {mqtt="<[mymosquitto:weewx_weather/inHumidity:state:default]"}
+ {mqtt="<[mymosquitto:weewx_weather/outTemp_C:state:default]"}
+ {mqtt="<[mymosquitto:weewx_weather/outHumidity:state:default]"}
+ {mqtt="<[mymosquitto:weewx_weather/humidex_C:state:default]"}
- {mqtt="<[mymosquitto:weewx_weather/barometer:state:default]"}
- {mqtt="<[mymosquitto:weewx_weather/radiation:state:default]"}
- {mqtt="<[mymosquitto:weewx_weather/rain:state:default]"}
- {mqtt="<[mymosquitto:weewx_weather/rainRate:state:default]"}
+ {mqtt="<[mymosquitto:weewx_weather/rxCheckPercent:state:default]"}
- {mqtt="<[mymosquitto:weewx_weather/windDir:state:default]"}
{mqtt="<[mymosquitto:weewx_weather/windSpeed:state:default]"}

Any hints appreciated. 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] Re: Belchertown Skin and MQTT With Username Not Working

2018-10-12 Thread David Hindley
Phil - you are a genius. Thank you so much.  Three brackets did it, and
www.ashteadweather.com is now live!! Not sure how I managed to get only two
brackets!  For some bizarre reason, however, the temperature readings are
now way off after making this change - showing temperature as oscillating
between 66.6 degC (a tad high) and 19.2 deg c (correct) here in autumnal
England - must be a units issues somewhere, which I will explore, but if
anyone has seen this before and knows how to fix it, please advise.

David.

On Fri, 12 Oct 2018 at 12:26, Philip Kutzenco  wrote:

> I may have found it.
>
> in weewx.conf, you have a stanza:
>
> [[tls]]
> tls_version = tlsv1
> ca_certs = /etc/ssl/certs/ca-certificates.crt
>
> It should be:
>
> [[[tls]]]
> tls_version = tlsv1
> ca_certs = /etc/ssl/certs/ca-certificates.crt
>
> with 3 brackets.
>
> Try that.
>
> BTW: I do have the added lines in myconfig.conf that you do. I was in
> hurray when I posted last night.
>
> phil
>
>
> On Friday, October 12, 2018 at 6:42:41 AM UTC-4, David Hindley wrote:
>>
>> Not sure it will help solve this or not, but the Mosquitto log shows the
>> following:
>>
>>  New connection from 86.27.145.159 on port 8883.
>> 1539340809: OpenSSL Error: error:1408F10B:SSL
>> routines:ssl3_get_record:wrong version number
>> 1539340809: Socket error on client , disconnecting.
>> 1539340811: Client connection from 86.27.145.159 failed:
>> error:1408F10B:SSL routines:ssl3_get_record:wrong version number.
>> 1539340814: New connection from 86.27.145.159 on port 8883.
>>
>> So, it does seem to be SSL related, but I am not sure how to solve this.
>> Any ideas please anyone?
>>
>> David.
>>
>> On Fri, 12 Oct 2018 at 10:01, David Hindley 
>> wrote:
>>
>>> Phil/Pat
>>>
>>> Many Thanks for you reply.
>>>
>>> I did set up a password for Mosquitto and also the acl file, as per your
>>> email below.
>>>
>>> However, my myconfig.conf file is different to the one you listed below,
>>> as I am using Let's Encrypt SSL, so followed the format towards the end of
>>> Pat's post ( MQTT "tutorial"
>>>  ), as
>>> follows:
>>>
>>> persistence false
>>>
>>> allow_anonymous true
>>> password_file /etc/mosquitto/passwd
>>>
>>> acl_file /etc/mosquitto/acl
>>>
>>> #Insecure mqtt to localhost only and secure mqtt with ssl
>>> listener 1883 localhost
>>> listener 8883
>>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>>> protocol mqtt
>>>
>>> # websockets
>>> listener 9001
>>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>>> protocol websockets
>>>
>>> Did you not use SSL on your set up for  https://wx.kutzenco.com? Maybe
>>> I have done something wrong with trying to set this part up.  It is really
>>> frustrating, as the syslog reports that MQTT is sending records, as it
>>> contains several lines like:
>>>
>>> Oct 12 09:58:27 raspberrypi weewx[1147]: restx: MQTT: Published record
>>> 2018-10-12 09:58:28 BST (1539334708)
>>>
>>> Pat - if you see this, do you have any ideas what I might be doing wrong
>>> - my hunch is that it is something to do with the settings for SSL for MQTT
>>> in weewx.conf, which are shown below.  Do I need to create the
>>> ca-certificates.crt file?  Or I guess it could be some issue with my web
>>> host for www.ashteadweather.com which is 1&1 (with SSL).
>>>
>>> Thanks
>>>
>>> David.
>>>
>>> *weewx.conf file*
>>>
>>>   [[MQTT]]
>>> server_url = mqtt://x:...@mqttdh.uk:8883/
>>> topic = weather
>>> unit_system = METRIC
>>> aggregation = aggregate
>>> binding = archive,loop
>>> # log_success = False
>>> # log_failure = True
>>> [[tls]]
>>>tls_version = tlsv1
>>>ca_certs = /etc/ssl/certs/ca-certificates.crt
>>>
>>> The Belchertown skin.conf MQTT content is as follows:
>>>
>>>  # MQTT Defaults
>>> mqtt_enabled = 1
>>> mqtt_host = mqttdh.uk
>>> mqtt_port = 9001
>>> mqtt_ssl = 1
>>> mqtt_topic = "weather/loop"
>>> disconnect_live_website_visitor = 0
>>>
>>>
 --
> 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/5Qn_6oZjLP4/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 

Re: [weewx-user] Re: Belchertown Skin and MQTT With Username Not Working

2018-10-12 Thread Philip Kutzenco
I think I found it.

In weewx.conf, you have:

[[tls]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt

It should be:

[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt

Note 3 brackets around tls. Try that.

BTW. I do have the extra lines you note in 
/etc/mosquitto/conf.d/myconfig.conf. I was in a huury when posting last 
night.

phil

On Friday, October 12, 2018 at 6:42:41 AM UTC-4, David Hindley wrote:
>
> Not sure it will help solve this or not, but the Mosquitto log shows the 
> following:
>
>  New connection from 86.27.145.159 on port 8883.
> 1539340809: OpenSSL Error: error:1408F10B:SSL 
> routines:ssl3_get_record:wrong version number
> 1539340809: Socket error on client , disconnecting.
> 1539340811: Client connection from 86.27.145.159 failed: 
> error:1408F10B:SSL routines:ssl3_get_record:wrong version number.
> 1539340814: New connection from 86.27.145.159 on port 8883.
>
> So, it does seem to be SSL related, but I am not sure how to solve this.  
> Any ideas please anyone?
>
> David.
>
> On Fri, 12 Oct 2018 at 10:01, David Hindley  > wrote:
>
>> Phil/Pat
>>
>> Many Thanks for you reply. 
>>
>> I did set up a password for Mosquitto and also the acl file, as per your 
>> email below.
>>
>> However, my myconfig.conf file is different to the one you listed below, 
>> as I am using Let's Encrypt SSL, so followed the format towards the end of 
>> Pat's post ( MQTT "tutorial" 
>>  ), as 
>> follows:
>>
>> persistence false
>>
>> allow_anonymous true
>> password_file /etc/mosquitto/passwd
>>
>> acl_file /etc/mosquitto/acl
>>
>> #Insecure mqtt to localhost only and secure mqtt with ssl
>> listener 1883 localhost
>> listener 8883
>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>> protocol mqtt
>>
>> # websockets
>> listener 9001
>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>> protocol websockets
>>
>> Did you not use SSL on your set up for  https://wx.kutzenco.com? Maybe I 
>> have done something wrong with trying to set this part up.  It is really 
>> frustrating, as the syslog reports that MQTT is sending records, as it 
>> contains several lines like:
>>
>> Oct 12 09:58:27 raspberrypi weewx[1147]: restx: MQTT: Published record 
>> 2018-10-12 09:58:28 BST (1539334708)
>>
>> Pat - if you see this, do you have any ideas what I might be doing wrong 
>> - my hunch is that it is something to do with the settings for SSL for MQTT 
>> in weewx.conf, which are shown below.  Do I need to create the 
>> ca-certificates.crt file?  Or I guess it could be some issue with my web 
>> host for www.ashteadweather.com which is 1&1 (with SSL).
>>
>> Thanks
>>
>> David.
>>
>> *weewx.conf file*
>>
>>   [[MQTT]]
>> server_url = mqtt://x:...@mqttdh.uk:8883/
>> topic = weather
>> unit_system = METRIC
>> aggregation = aggregate
>> binding = archive,loop
>> # log_success = False
>> # log_failure = True
>> [[tls]]
>>tls_version = tlsv1
>>ca_certs = /etc/ssl/certs/ca-certificates.crt
>>
>> The Belchertown skin.conf MQTT content is as follows:
>>
>>  # MQTT Defaults
>> mqtt_enabled = 1
>> mqtt_host = mqttdh.uk
>> mqtt_port = 9001
>> mqtt_ssl = 1
>> mqtt_topic = "weather/loop"
>> disconnect_live_website_visitor = 0
>>
>>

-- 
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: Belchertown Skin and MQTT With Username Not Working

2018-10-12 Thread Philip Kutzenco
I may have found it.

in weewx.conf, you have a stanza:

[[tls]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt

It should be:

[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt

with 3 brackets.

Try that.

BTW: I do have the added lines in myconfig.conf that you do. I was in 
hurray when I posted last night.

phil


On Friday, October 12, 2018 at 6:42:41 AM UTC-4, David Hindley wrote:
>
> Not sure it will help solve this or not, but the Mosquitto log shows the 
> following:
>
>  New connection from 86.27.145.159 on port 8883.
> 1539340809: OpenSSL Error: error:1408F10B:SSL 
> routines:ssl3_get_record:wrong version number
> 1539340809: Socket error on client , disconnecting.
> 1539340811: Client connection from 86.27.145.159 failed: 
> error:1408F10B:SSL routines:ssl3_get_record:wrong version number.
> 1539340814: New connection from 86.27.145.159 on port 8883.
>
> So, it does seem to be SSL related, but I am not sure how to solve this.  
> Any ideas please anyone?
>
> David.
>
> On Fri, 12 Oct 2018 at 10:01, David Hindley  > wrote:
>
>> Phil/Pat
>>
>> Many Thanks for you reply. 
>>
>> I did set up a password for Mosquitto and also the acl file, as per your 
>> email below.
>>
>> However, my myconfig.conf file is different to the one you listed below, 
>> as I am using Let's Encrypt SSL, so followed the format towards the end of 
>> Pat's post ( MQTT "tutorial" 
>>  ), as 
>> follows:
>>
>> persistence false
>>
>> allow_anonymous true
>> password_file /etc/mosquitto/passwd
>>
>> acl_file /etc/mosquitto/acl
>>
>> #Insecure mqtt to localhost only and secure mqtt with ssl
>> listener 1883 localhost
>> listener 8883
>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>> protocol mqtt
>>
>> # websockets
>> listener 9001
>> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
>> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
>> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
>> protocol websockets
>>
>> Did you not use SSL on your set up for  https://wx.kutzenco.com? Maybe I 
>> have done something wrong with trying to set this part up.  It is really 
>> frustrating, as the syslog reports that MQTT is sending records, as it 
>> contains several lines like:
>>
>> Oct 12 09:58:27 raspberrypi weewx[1147]: restx: MQTT: Published record 
>> 2018-10-12 09:58:28 BST (1539334708)
>>
>> Pat - if you see this, do you have any ideas what I might be doing wrong 
>> - my hunch is that it is something to do with the settings for SSL for MQTT 
>> in weewx.conf, which are shown below.  Do I need to create the 
>> ca-certificates.crt file?  Or I guess it could be some issue with my web 
>> host for www.ashteadweather.com which is 1&1 (with SSL).
>>
>> Thanks
>>
>> David.
>>
>> *weewx.conf file*
>>
>>   [[MQTT]]
>> server_url = mqtt://x:...@mqttdh.uk:8883/
>> topic = weather
>> unit_system = METRIC
>> aggregation = aggregate
>> binding = archive,loop
>> # log_success = False
>> # log_failure = True
>> [[tls]]
>>tls_version = tlsv1
>>ca_certs = /etc/ssl/certs/ca-certificates.crt
>>
>> The Belchertown skin.conf MQTT content is as follows:
>>
>>  # MQTT Defaults
>> mqtt_enabled = 1
>> mqtt_host = mqttdh.uk
>> mqtt_port = 9001
>> mqtt_ssl = 1
>> mqtt_topic = "weather/loop"
>> disconnect_live_website_visitor = 0
>>
>>
>>>

-- 
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: Stopping Weewx from auto starting

2018-10-12 Thread Phil Green


On Friday, October 12, 2018 at 9:12:03 AM UTC+1, gjr80 wrote:
>
> There have been at least a couple of mechanisms used. Previously (since 
> v3.4.0) on startup WeeWX would wait for a system clock that was after 1 
> January 2000. More recently (since v3.8.1) on startup WeeWX waits for a 
> system clock that is later than the creation time of weewx.conf.
>
> Gary
>


Thanks for your replies.
I am running the current version 3.8.2
Yes i understand that Weewx has mechanisms for making sure that the network 
time has be set correctly following startup, however I have an RTC and 
clearly the mechanism for reading this at startup etc may be undeterminable 
when Weewx is booting.
As I said, I normally stop Weewx then start after a couple of seconds after 
boot and all is ok.
I will try disabling auto start of Weewx.
Regards
Phil
 

-- 
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: Belchertown Skin and MQTT With Username Not Working

2018-10-12 Thread David Hindley
Not sure it will help solve this or not, but the Mosquitto log shows the
following:

 New connection from 86.27.145.159 on port 8883.
1539340809: OpenSSL Error: error:1408F10B:SSL
routines:ssl3_get_record:wrong version number
1539340809: Socket error on client , disconnecting.
1539340811: Client connection from 86.27.145.159 failed: error:1408F10B:SSL
routines:ssl3_get_record:wrong version number.
1539340814: New connection from 86.27.145.159 on port 8883.

So, it does seem to be SSL related, but I am not sure how to solve this.
Any ideas please anyone?

David.

On Fri, 12 Oct 2018 at 10:01, David Hindley  wrote:

> Phil/Pat
>
> Many Thanks for you reply.
>
> I did set up a password for Mosquitto and also the acl file, as per your
> email below.
>
> However, my myconfig.conf file is different to the one you listed below,
> as I am using Let's Encrypt SSL, so followed the format towards the end of
> Pat's post ( MQTT "tutorial"
>  ), as follows:
>
> persistence false
>
> allow_anonymous true
> password_file /etc/mosquitto/passwd
>
> acl_file /etc/mosquitto/acl
>
> #Insecure mqtt to localhost only and secure mqtt with ssl
> listener 1883 localhost
> listener 8883
> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
> protocol mqtt
>
> # websockets
> listener 9001
> certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
> cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
> keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
> protocol websockets
>
> Did you not use SSL on your set up for  https://wx.kutzenco.com? Maybe I
> have done something wrong with trying to set this part up.  It is really
> frustrating, as the syslog reports that MQTT is sending records, as it
> contains several lines like:
>
> Oct 12 09:58:27 raspberrypi weewx[1147]: restx: MQTT: Published record
> 2018-10-12 09:58:28 BST (1539334708)
>
> Pat - if you see this, do you have any ideas what I might be doing wrong -
> my hunch is that it is something to do with the settings for SSL for MQTT
> in weewx.conf, which are shown below.  Do I need to create the
> ca-certificates.crt file?  Or I guess it could be some issue with my web
> host for www.ashteadweather.com which is 1&1 (with SSL).
>
> Thanks
>
> David.
>
> *weewx.conf file*
>
>   [[MQTT]]
> server_url = mqtt://x:...@mqttdh.uk:8883/
> topic = weather
> unit_system = METRIC
> aggregation = aggregate
> binding = archive,loop
> # log_success = False
> # log_failure = True
> [[tls]]
>tls_version = tlsv1
>ca_certs = /etc/ssl/certs/ca-certificates.crt
>
> The Belchertown skin.conf MQTT content is as follows:
>
>  # MQTT Defaults
> mqtt_enabled = 1
> mqtt_host = mqttdh.uk
> mqtt_port = 9001
> mqtt_ssl = 1
> mqtt_topic = "weather/loop"
> disconnect_live_website_visitor = 0
>
>
> On Fri, 12 Oct 2018 at 00:59, Philip Kutzenco  wrote:
>
>> David,
>>
>> You don't need to specify a username/password to receive data if you have
>> sett up your broker as Pat detailed in his post
>> . The
>> weewx.conf stanzas in the file I attached in my earlier post are working
>> fine at https://wx.kutzenco.com. One minor change is that I changed the
>> subscription to "weather/loop" instead of "weather/#". It works with #, but
>> I think best practice is to only subscribe to loop.
>>
>> Here are some things to look at:
>>
>> 1. Did you set up a password for Mosquitto? It is done as follows:
>> *sudo mosquitto_passwd -c /etc/mosquitto/passwd *
>> Note that the username is just for Mosquitto. It doesn't need to be a
>> linux account name.
>>
>> 1.  Did you set up an acl file (*/etc/mosquitto/acl)*? It should contain:
>>
>>
>>
>> *# Allow anonymous access to the systopic read $SYS/# # Allow anonymous
>> to read weathertopic read weather/#*
>>
>>
>> *# weewx readwrite to the loopuser topic
>> weather/#*
>>
>> 2. Does your Mosquitto myconfig.conf (*/etc/mosquitto/conf.d/myconfig.conf)
>> *file contain the following? It should have:
>>
>>
>>
>>
>>
>> *persistence falseallow_anonymous truepassword_file
>> /etc/mosquitto/passwdacl_file /etc/mosquitto/acllistener 1883protocol mqtt*
>>
>>
>>
>> *# websocketslistener 9001protocol websocket *
>>
>> I am far from an expert on this, but if you post copies of those files. I
>> will look at them in addition to the weewx.conf stanzas you already
>> published, ans see if I can spot a reason for it not working for you. (I
>> probably won't get a chance to look until tomorrow).
>>
>> phil
>>
>> On Thursday, October 11, 2018 at 5:13:23 PM UTC-4, Colin Larsen wrote:
>>>
>>> You'll also need to supply the username and password to "receive" the
>>> MQTT data (in skin.conf or Belchertown) but that is not yet supported as
>>> far as I know.
>>>
>>> Colin
>>>

[weewx-user] Re: Wind scatter graph

2018-10-12 Thread Auchtermuchty Weather
That would be terrific if you could.  No massive rush as the weather 
station that was blown away back in September hasn't been replaced yet - 
it's an insurance job as half the roof of the building it was on went as 
well.  :o

Thanks for the link to the code, but I've never coded in Python in my life 

On Friday, 12 October 2018 11:05:26 UTC+1, gjr80 wrote:
>
> Late last year Neil and myself were collaborating on a revised version of 
> my stacked windrose generator that would be able to produce 4 different 
> polar wind plots. One plot is what I call the traditional windrose and the 
> others we called trail, spiral and scatter plots. Unfortunately, I can't 
> remember for the life of me exactly what these 3 plots did (other than the 
> obvious). I looked just now but can't put my hands on any of the sample 
> plots we had working.
>
> Unfortunately again, Neil started a new job late last year and I had other 
> things come up and we did not take the new generator any further. I seem to 
> remember we basically had it working and just needed to fix a number minor 
> issues before it could be released as a WeeWX extension. I am happy to have 
> a look at it when I get home on 22nd and see if the scatter plot is what 
> you seek. It certainly should not take too much extra work to get the whole 
> thing tidied up and out the door.
>
> Not much to see other than code but the repo link is 
> https://github.com/gjr80/weewx-polarwindplot
>
> 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] Wind scatter graph

2018-10-12 Thread gjr80
Late last year Neil and myself were collaborating on a revised version of my 
stacked windrose generator that would be able to produce 4 different polar wind 
plots. One plot is what I call the traditional windrose and the others we 
called trail, spiral and scatter plots. Unfortunately, I can't remember for the 
life of me exactly what these 3 plots did (other than the obvious). I looked 
just now but can't put my hands on any of the sample plots we had working.

Unfortunately again, Neil started a new job late last year and I had other 
things come up and we did not take the new generator any further. I seem to 
remember we basically had it working and just needed to fix a number minor 
issues before it could be released as a WeeWX extension. I am happy to have a 
look at it when I get home on 22nd and see if the scatter plot is what you 
seek. It certainly should not take too much extra work to get the whole thing 
tidied up and out the door.

Not much to see other than code but the repo link is 
https://github.com/gjr80/weewx-polarwindplot

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] Wind scatter graph

2018-10-12 Thread Auchtermuchty Weather
Is there anything for WeeWx which will produce a graph similar to this one? 
 

https://uk.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/49488/versions/20/screenshot.jpg

Not worried about the colour coding for recency, just wanting the dots on 
the rose. 

-- 
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: Belchertown Skin and MQTT With Username Not Working

2018-10-12 Thread David Hindley
Phil/Pat

Many Thanks for you reply.

I did set up a password for Mosquitto and also the acl file, as per your
email below.

However, my myconfig.conf file is different to the one you listed below, as
I am using Let's Encrypt SSL, so followed the format towards the end of
Pat's post ( MQTT "tutorial"
 ), as follows:

persistence false

allow_anonymous true
password_file /etc/mosquitto/passwd

acl_file /etc/mosquitto/acl

#Insecure mqtt to localhost only and secure mqtt with ssl
listener 1883 localhost
listener 8883
certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
protocol mqtt

# websockets
listener 9001
certfile /etc/letsencrypt/live/mqttdh.uk/cert.pem
cafile /etc/letsencrypt/live/mqttdh.uk/chain.pem
keyfile /etc/letsencrypt/live/mqttdh.uk/privkey.pem
protocol websockets

Did you not use SSL on your set up for  https://wx.kutzenco.com? Maybe I
have done something wrong with trying to set this part up.  It is really
frustrating, as the syslog reports that MQTT is sending records, as it
contains several lines like:

Oct 12 09:58:27 raspberrypi weewx[1147]: restx: MQTT: Published record
2018-10-12 09:58:28 BST (1539334708)

Pat - if you see this, do you have any ideas what I might be doing wrong -
my hunch is that it is something to do with the settings for SSL for MQTT
in weewx.conf, which are shown below.  Do I need to create the
ca-certificates.crt file?  Or I guess it could be some issue with my web
host for www.ashteadweather.com which is 1&1 (with SSL).

Thanks

David.

*weewx.conf file*

  [[MQTT]]
server_url = mqtt://x:...@mqttdh.uk:8883/
topic = weather
unit_system = METRIC
aggregation = aggregate
binding = archive,loop
# log_success = False
# log_failure = True
[[tls]]
   tls_version = tlsv1
   ca_certs = /etc/ssl/certs/ca-certificates.crt

The Belchertown skin.conf MQTT content is as follows:

 # MQTT Defaults
mqtt_enabled = 1
mqtt_host = mqttdh.uk
mqtt_port = 9001
mqtt_ssl = 1
mqtt_topic = "weather/loop"
disconnect_live_website_visitor = 0


On Fri, 12 Oct 2018 at 00:59, Philip Kutzenco  wrote:

> David,
>
> You don't need to specify a username/password to receive data if you have
> sett up your broker as Pat detailed in his post
> . The
> weewx.conf stanzas in the file I attached in my earlier post are working
> fine at https://wx.kutzenco.com. One minor change is that I changed the
> subscription to "weather/loop" instead of "weather/#". It works with #, but
> I think best practice is to only subscribe to loop.
>
> Here are some things to look at:
>
> 1. Did you set up a password for Mosquitto? It is done as follows:
> *sudo mosquitto_passwd -c /etc/mosquitto/passwd *
> Note that the username is just for Mosquitto. It doesn't need to be a
> linux account name.
>
> 1.  Did you set up an acl file (*/etc/mosquitto/acl)*? It should contain:
>
>
>
> *# Allow anonymous access to the systopic read $SYS/# # Allow anonymous to
> read weathertopic read weather/#*
>
>
> *# weewx readwrite to the loopuser topic
> weather/#*
>
> 2. Does your Mosquitto myconfig.conf (*/etc/mosquitto/conf.d/myconfig.conf)
> *file contain the following? It should have:
>
>
>
>
>
> *persistence falseallow_anonymous truepassword_file
> /etc/mosquitto/passwdacl_file /etc/mosquitto/acllistener 1883protocol mqtt*
>
>
>
> *# websocketslistener 9001protocol websocket *
>
> I am far from an expert on this, but if you post copies of those files. I
> will look at them in addition to the weewx.conf stanzas you already
> published, ans see if I can spot a reason for it not working for you. (I
> probably won't get a chance to look until tomorrow).
>
> phil
>
> On Thursday, October 11, 2018 at 5:13:23 PM UTC-4, Colin Larsen wrote:
>>
>> You'll also need to supply the username and password to "receive" the
>> MQTT data (in skin.conf or Belchertown) but that is not yet supported as
>> far as I know.
>>
>> Colin
>>
>>
>> On Fri, 12 Oct 2018, 07:59 ,  wrote:
>>
>>> Hi
>>>
>>>
>>>
>>> I am trying to set up MQTT on the Belchertown skin, and just can't get
>>> it to work, but think I am very nearly there.  Like Philip Kutzenco, I
>>> am using Digital Ocean to host my MQTT broker, with my own domain name, and
>>> have followed Pat's guide to set up the MQTT broker with SSL using Let's
>>> Encrypt.   MQTT all seems to be working, as per Pat's guide.  My weather
>>> website (ashteadweather.com hosted at 1&1 with SSL certificate) says
>>> "Connected.  Waiting for data", which sounds promising, but it just stays
>>> at that message.  I copied the weewx.conf settings format for MQTT and the
>>> skin.conf format for Belchertown skin, as suggested by Philip Kutzenco, as
>>> per below:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> weewx.conf:

[weewx-user] Re: Stopping Weewx from auto starting

2018-10-12 Thread gjr80
There have been at least a couple of mechanisms used. Previously (since v3.4.0) 
on startup WeeWX would wait for a system clock that was after 1 January 2000. 
More recently (since v3.8.1) on startup WeeWX waits for a system clock that is 
later than the creation time of weewx.conf.

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: Stopping Weewx from auto starting

2018-10-12 Thread Auchtermuchty Weather


On Thursday, 11 October 2018 22:50:15 UTC+1, vince wrote:
>
> Recent weewx versions should already delay startup until you get accurate 
> system time.
>

Out of interest, how does it 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] redownload data from station

2018-10-12 Thread Juan Antonio Mosquera
I understand, thanks!

O 03:45, Ven., 12 de out. de 2018, gjr80  escribiu:

> Hi,
>
> The answer depends. If and only if your driver supports backfilling from
> the station then on startup WeeWX will try to backfill any records
> timestamped after the latest record in the WeeWX archive. So if the last
> record in your archive is time stamped 9:20am 11 October 2018, WeeWX would
> try to download any records from your station that at time stamped after
> 9:20am 11 October 2018. If WeeWX cannot get any records after this
> timestamp nothing is changed, if WeeWX can only get some records after
> 9:20am 11 October 2018 then only those records that were downloaded are
> saved to archive.
>
> So if you want to re-download records from your station for a given time
> onwards you should delete all records from your archive from that given
> time onwards and then restart WeeWX. You can monitor what WeeWX does (did)
> by monitoring the log during startup.
>
> There are some caveats. If you want to re-download records from too far in
> the past there is the possibility that your station may not have all those
> records in memory and you may end up with a gap in your data. Also note
> that the backfill occurs from the last timestamp in the WeeWX archive, so
> if you want to re-download a specific period you must delete delete all
> records from the start of that period onwards, not just those in the period
> concerned.
>
> As you will be performing some destructive actions on your data I would
> make sure you backup your database first so you can revert to your old data
> if things go wrong.
>
> 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/-LQKMxYvnzs/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.