Trixology

WeatherCat => WeatherCat General Discussion => Topic started by: wx-watch on January 30, 2024, 09:34:55 AM

Title: Update more often that every 15 minutes?
Post by: wx-watch on January 30, 2024, 09:34:55 AM
Is it possible to get WC to update more often than every 15 minutes??
Title: Re: Update more often that every 15 minutes?
Post by: xairbusdriver on January 31, 2024, 02:17:34 AM
Not at my computer right now. This screen shot must be at the pref covering the simple web pages rather than the “Custom” web prefs. Custom pages can be set to update every minute, although too many set to that rate can affect how much load is put on your computer!

Most of my pages update at about 5 minute intervals. Videos only update every 15 minutes. Previous Statistics (yesterday/this week/last week\month\year\etc). only update twice a day. html is very easy and can be created by ant text editor. 👍
Title: Re: Update more often that every 15 minutes?
Post by: wx-watch on January 31, 2024, 08:07:30 AM
My website (cobbled together over years!!) uses elements from the Custom Pages as well as the Standard Pages

https://wx-watch.co.uk

It is the standard pages and the webcam I wish to update more often
Title: Re: Update more often that every 15 minutes?
Post by: xairbusdriver on January 31, 2024, 04:35:26 PM
I really think a Custom Web solution can handle everything you want/need. The Dev has created a way that allows an almost infinite number of ways we can use the data our weather instruments monitor. He created several dozen "tags" that you can place in many different files.  {see pages 197 - 206 and 206 - 213 for how to combine them} Then you set the time interval for the app to process that file and convert the "tag" an actual value or image.

For example, I have a plain text file that lists which gauges and and graphs I want uploaded (see partial example below)
Code: [Select]
<!-- Custom Gauges -->
...
CUSTOMGAUGE$1$ <!-- Pressure 250px -->
CUSTOMGAUGE$2$ <!-- Humidity 200px -->
CUSTOMGAUGE$3$ <!-- Temp 250px -->

<!--CUSTOMGAUGE_$_4_$ --><!-- Heat Index 200px -->
CUSTOMGAUGE$5$ <!--Windchill 200px -->
CUSTOMGAUGE$6$ <!-- Dew point 200px -->
...
<!-- CUSTOM GRAPHs -->
CUSTOMGRAPH$1$ <!-- Daily Temperature & Dew Point -->
CUSTOMGRAPH$2$ <!-- Daily Pressure -->

<!--CUSTOMGRAPH_$_3_$ --><!-- Daily Humidity & Heat Index(3) -->
CUSTOMGRAPH$11$ <!--Daily Humidity & Windchill(11) -->
...
WC processes this file and changes the "tag" into name of actual graph or gauge and uploads it to my web host. In the "Additional Files" pref, I have set this "custom-gauges-graphs.txt" to be uploaded every 12 minutes.

The file that tells WC to upload my movies is even simpler:
Code: [Select]
MOVIE$
DAILY_MOVIE$
WCAM$

The "hard" part is figuring out where you want to put what on your web site. I think you'll find that a single page is not the best plan. The main 'problem' is using the correct html to enable moving the user from one page and back. But even that is a matter of using a "link" to another html file and you are already using that html function in a limited way with your webcam images.
<a href="https://wx-watch.co.uk/weathercat/webcam.html" target="_blank">

There are many free tutorials available for learning the basics of html, the system that builds the basic framework of any site. You are already using CSS which is the principle means of styling the html. ;D You are even using javascript (which I don't [blush]).  I'm sure you can do it! Just don't expect your site to be "flashy" like many commercial sites are! We're offering usually local weather date (current and/or historic), just make it as easy as possible for folks to see that stuff (sorry for the technical jargon cmu:-) )!
Title: Re: Update more often that every 15 minutes?
Post by: wx-watch on January 31, 2024, 05:52:03 PM
Many many thanks for your help - I will take a look