Re: [weewx-user] 2 StandardReports ?

2018-01-27 Thread Thomas Keffer
>From your note, it wasn't clear where your second skin lives, so let's use the
example

from the Customizing Guide. In this example, the USReport ends up in
public_html, with the MetricReport underneath it, in the subdirectory
public_html/MetricReport

Say you wanted to FTP only MetricReport, but not USReport. Your FTP section
would look like:

[[FTP]]
  skin = Ftp
  ...
  HTML_ROOT = public_html/MetricReport


The FTP report recursively sends everything from
public_html/MetricReport downward.
Because the US Report is above it, in public_html, it will not be sent.

If you wanted to do it the other way around, that is, send only USReport
and not MetricReport, you would have to either reverse their positions, or
put the two reports in completely different subdirectories, say
public_html/US and public_html/MetricReport.

Hope this helps.

-tk

On Sat, Jan 27, 2018 at 1:26 PM, plock yaa  wrote:

> Hi Tom,
>
> That's exactly what I was looking for. Thanks. My bad I did not see it in
> the documentation. Works great now.
>
> Now, is it possible to use an alternative/different skin for the data to
> be published on the external web server? I added the following in weewx.conf
>
> [[WebReport]]
> skin = StandardWeb
> HTML_ROOT = /var/www/html/web
>
> and copied skins/Standard into skins/StandardWeb and started to edit
> index.html.tmpl.
>
> Unfortunately, it looks like only Standard is being taken into account by
> the engine. Any hint, if possible, on how to use 2 different skins, one for
> local and one for the external webpage?
>
> --
> 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] 2 StandardReports ?

2018-01-27 Thread plock yaa
Hi Tom,

That's exactly what I was looking for. Thanks. My bad I did not see it in 
the documentation. Works great now.

Now, is it possible to use an alternative/different skin for the data to be 
published on the external web server? I added the following in weewx.conf

[[WebReport]]
skin = StandardWeb
HTML_ROOT = /var/www/html/web

and copied skins/Standard into skins/StandardWeb and started to edit 
index.html.tmpl.

Unfortunately, it looks like only Standard is being taken into account by 
the engine. Any hint, if possible, on how to use 2 different skins, one for 
local and one for the external webpage?

-- 
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] 2 StandardReports ?

2018-01-25 Thread Thomas Keffer
See the section *Overriding options in weewx.conf
*
and
see if it answers your question on how to do two reports, one with US, the
other with Metric.

As for FTP'ing the result, configure HTML_ROOT in the [[FTP]] section of
weewx.conf  to point to
the subdirectory you wish to FTP.

-tk

On Thu, Jan 25, 2018 at 11:12 AM, plock yaa  wrote:

> Hi,
>
> First, thanks for making weewx available. Using a Vantage for quite a
> while without any link to a computer at all, I recently acquired the Davis
> adapter and hook it up to a Raspi. First time playing on a Raspi but all
> went fine and everything is running as advertised :)
>
> Reports are generated and available locally but I also ftp them to my
> website. What I want to achieve is to have a different layout from what I
> can see at home and what's available on the website.
>
> During my research on how to switch from imperial to metric, I remember
> that I saw an example for weewx.conf on how to have StandardReport use
> Metric and US HTML generation. Unfortunately, I did not bookmark that page
> and I can't find it anymore.
>
> Maybe there's a better way to do, but what I want to see is the full
> standard Standard report at home (on the Raspi) and a modified report on
> the website.
>
> I don't see a problem to ftp the correct folder to the web server but I
> don't know how to achieve the generation of 2 different reports in one run.
>
> Any hints/help would be appreciated.
>
> --
> 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] 2 StandardReports ?

2018-01-25 Thread plock yaa
Hi,

First, thanks for making weewx available. Using a Vantage for quite a while 
without any link to a computer at all, I recently acquired the Davis 
adapter and hook it up to a Raspi. First time playing on a Raspi but all 
went fine and everything is running as advertised :)

Reports are generated and available locally but I also ftp them to my 
website. What I want to achieve is to have a different layout from what I 
can see at home and what's available on the website.

During my research on how to switch from imperial to metric, I remember 
that I saw an example for weewx.conf on how to have StandardReport use 
Metric and US HTML generation. Unfortunately, I did not bookmark that page 
and I can't find it anymore.

Maybe there's a better way to do, but what I want to see is the full 
standard Standard report at home (on the Raspi) and a modified report on 
the website.

I don't see a problem to ftp the correct folder to the web server but I 
don't know how to achieve the generation of 2 different reports in one run.

Any hints/help would be appreciated.

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