[weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-20 Thread Pat
Hmm. I don't think so, but let me look into it. On Thursday, December 20, 2018 at 5:50:54 PM UTC-5, Colin Larsen wrote: > > Hi all > > Quick group question as my html skills are not fantastic; > > Pat has made available some 'inc' pages to put custom code sections in > various places on his skin

[weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-20 Thread Colin Larsen
Ok found it solution - sorry Pat, answering my own question but other may be interested :) First I created a tmpl file with the tags I wanted (I called it stationinfo.html.tmpl) and saved that in the skins/Belchertown directory I then edited skin.conf to include the new tmpl file, just below th

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-20 Thread Thomas Keffer
Yes, there is more than one way to do it. However, it's important to note that the end result is not the same. If you do a Cheetah #include directive (my suggestion, and what the Seasons skin does), the page is included *at template processing time*. You'll end up with a single HTML page with all

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-20 Thread Colin Larsen
That makes a lot of sense, I'll have a play with changing it around. Cheers Colin On Friday, 21 December 2018 13:15:39 UTC+13, Thomas Keffer wrote: > > Yes, there is more than one way to do it. > > However, it's important to note that the end result is not the same. If > you do a Cheetah #includ

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-22 Thread Pat
This is an interesting question because I didn't know Cheetah could handle .inc files natively. So I've been processing them as part of the SLE seen here . Which is why I said I don't think the Belcher

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-22 Thread Thomas Keffer
See the #include directive in the Cheetah manual for details. If you're going to be working much with skins, it's worth looking through the Cheetah manual. There's lots of cool stuff in there! -tk On Sat, Dec 22, 2018 at 7:21 AM

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-22 Thread Pat
Oh, I'm using the #inc directive already . But not with *.inc files. Your suggestion is to #inc the .inc's? On Saturday, December 22, 2018 at 7:46:40 PM UTC-5, Thomas Keffer wrote: > > See the #inclu

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-22 Thread Thomas Keffer
It's entirely up to you, but it sure is simpler than your dynamic loading in the SLE's! BTW, there's nothing special about the ".inc" extension (nor the ".tmpl" extension). They're just a WeeWX convention. -tk On Sat, Dec 22, 2018 at 5:10 PM Pat wrote: > Oh, I'm using the #inc directive alread

Re: [weewx-user] Re: Belchertown "inc" pages with Weewx tags?

2018-12-22 Thread Pat
Got it - I'd like to keep it as simple as possible. I guess I thought that if the .inc file was missing, then weewx would throw an exception. So by doing it in the SLE, if file doesn't exist it can handle that. I'll do some testing and simplify it if possible! On Saturday, December 22, 2018 at