WOW! thank you so much, Gary, for the pointers.....I will get on to that in the next few days!
On Sunday, 13 January 2019 17:00:51 UTC+13, gjr80 wrote: > > Hi, > > There are a few steps involved in achieving what you want to do. First the > historical max/min - by this I presume you mean all time statistics - those > that cover all of your weeWX data and not just the last day, month or year. > > If I have this right you need to extend weeWX so that you can access stats > from all of your data, this is most easily achieved by installing the > xstats example extension. You will find the xstats files are in the > /usr/share/doc/weewx/examples directory. I would install manually and > just follow step 1 in the readme.txt remembering later that you will need > to enable the alltime stats for your templates/reports by following step 2. > You can install xstats using wee_extension but that will also install the > example web page which you probably do not want. > > Now that you have xstats installed you can use tags like > $alltime.outTemp.max in report templates to display the maximum outside > temperature. The time it occurred will be $alltime.outTemp.maxtime. Just > like $day, $month and $year tags but you use $alltime. If you are not > familiar with weeWX tags it is worth reading the Tags section > <http://weewx.com/docs/customizing.htm#Tags> of the Customization Guide. > > To use the $alltime tags you will probably want to create a new page or > modify an existing one. It is really up to you want you want to do. To > modify an existing page have a look at the .tmpl files in you Standard > skin directory /etc/weewx/skins/Standard. These are the files weeWX uses > to generate a corresponding .html page. You will see how tags are used in a > template, in a nutshell where you place a tag weeWX will replace that with > the relevant data when the reports are generated. The process is a little > more involved if you want to create a new page as not only do you need to > modify/create a page but you also need to modify skin.conf to have weeWX > generate the new page. You may also need to modify other pages to include a > link to your new page. A good starting point may be to take a copy of > /etc/weewx/skins/Standard/year.html.tmpl, save it as alltime.html.tmpl > and start modifying. Have a good poke around the templates and skin.conf > (and [StdReport] in weewx.conf) to see how it comes together. > > Including an image in a weeWX generated page can be relatively > straightforward. If you have a look in index.html.tmpl you will see lines > such as: > > <img src="daytempdew.png" alt="temperatures" /> > > This line creates a HTML img tag that displays the daily temperature and > dewpoint plot. If whatever you use to generate your webcam image can create > a file named, say, webcam.jpg then that keeps it easy, you may be able to > create a new img tag but using webcam.jpg (rather than daytempdew.png), > you may need to add a path in front of the file name. If your webcam image > is timestamped like webcam201901131345.jpg then that gets a little more > complicated. If you can drop your webcam image into the weeWX directory > structure under /var/www/html/weewx then you can very easily use weeWX to > upload your webcam image to your web server if you wish. There are many > different ways to achieve this, I have outlined one and I am sure other > will have other ways. At the end of the day it will likely depend on your > setup. > > You have started on the slippery slope of customising your weeWX install, > the process can appear daunting but do persist and feel free to continue to > ask if not sure. > > Gary > > On Sunday, 13 January 2019 11:25:59 UTC+10, monmul wrote: >> >> I have managed to get the Standard skin loaded on my weather website >> www.wilsonbayweather.com.......2 small adjustments I would like to >> make......how do I show the historical max and min for temp, wind, rain >> etc....and how might I include a jpeg photo from webcam showing a picture >> every hour or so? Thanks in advance.....you guys have been fabulous in >> helping a newbie! >> >> -- 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]. For more options, visit https://groups.google.com/d/optout.
