Thank you very much, Pat but I don't get it to work. I try to put the 
graphics on the about page and it work but not in my page.
The page appears but not the graphics. I modify skin.conf with
[CheetahGenerator]
   [[ToDate]]
       [[[clima]]]
             template = clima/index.html.tmpl
and
[Labels]
  [[Generic]]
       nav_clima = Clima

In header.html.tmpl I added
<li class = "menu-item menu-item-4"> <a href="$relative_url/clima" 
itemprop="url"> <span itemprop = "name"> $ obs.label.nav_clima </span> < / 
a> </li>

My graphs.conf
[clima]
    title = Lluvia por Mes    
    type = column
    time_length=all
    [[rainmonthtotals]]
       title = Histórico de Lluvia por Mes
       xaxis_groupby = month
        ...

And the index.html.tmpl page
#errorCatcher Echo
#encoding UTF-8
#set global $page = "clima"
#include "header.html.tmpl"
<div class="site-inner">
    <main class="content">    
        <article class="weewx clima" itemscope itemtype="
https://schema.org/CreativeWork";>
            #include "page-header.inc"
            <script type='text/javascript'>showChart("clima");</script>
            <div id="rainmonthtotals" style="margin-top:30px;"></div>
        </article>
    </main>
</div>
#include "footer.html.tmpl"
 
I do not find the error. But the graphics do appear on the page about if I 
put
<script type = 'text / javascript'> showChart ("about"); </script>
and changing in graph.conf
[clima] by [about]
- mostrar texto citado -


El martes, 10 de septiembre de 2019, 14:03:39 (UTC+2), Pat escribió:
>
> Creating a custom page isn't documented but it's not hard. Just copy how 
> the other pages are created:
>
> 1. Create a new folder and create the index.html.tmpl within (copy the 
> file from /about as a starter)
> 2. Then add this new folder to the navigation within header.html.tmpl. 
> 3. Create the graphs you want in graphs.conf as you normally would. 
> 4. Initialize and add the chart to your new page. 
>
>
> Let's use this graphs.conf as an example - it is how I show rx check 
> percent on my about page <http://belchertownweather.com/go/about>. 
>
> [about]
>     show_button = false
>     time_length = 172800 # 48 hours in seconds
>     aggregate_type = last
>     aggregate_interval = 300 # 5 min
>     gapsize = 300000 # 5 min
>     
>     [[rxchart]]
>         title = ISS Receive Stats
>         yaxis_max = 100
>         [[[rxCheckPercent]]]
>             color = "#268bd2"
>     
>     [[rxchartyear]]
>         title = ISS Receive Stats Average
>         yaxis_max = 100
>         xaxis_groupby = month
>         xaxis_categories = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'
> , 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
>         time_length = year
>         [[[rxCheckPercent]]]
>             aggregate_type = avg
>             color = "#268bd2"
>
>
> Then in the content of your new page, you need to add 2 things. 
>
> 1. At the top of the page add:
>  
> <script type='text/javascript'>showChart("about");</script>
>
> This initializes the graphs.conf group "about". You see this matches the 
> [about] wording in the graph.conf group. 
>
>
> 2. Then where you want to show the graph within the page, add a div with 
> an ID of the observation from the graph group that you want to show:
>
>             <div id="rxchart" style="margin-top:30px;"></div>
>             <div id="rxchartyear" style="margin-top:30px;"></div>
>
>
> You will see how the id= matches the observations within the double 
> brackets. [[rxchart]] and [[rxchartyear]]]
>
> Obviously swap out the graph group and observation names with what you're 
> building and that should do it. 
>
>
>
> On Tuesday, September 10, 2019 at 5:00:11 AM UTC-4, Kike .Asekas wrote:
>>
>> Is there any way to create another graphic page? I mean, a page called 
>> for example climate where it has specific graphics.
>> Where would the graph.conf of that page go?
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5c176dab-2158-4464-8acd-f78c9f605b8d%40googlegroups.com.

Reply via email to