Update interval for home weather station(for Boris and Brian)

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
xxvincixx
Senior Boarder
Senior Boarder
Posts: 60
Joined: Fri Apr 19, 2019 2:32 pm

Update interval for home weather station(for Boris and Brian)

Post by xxvincixx »

Hi, I would like to know if it was possible to increase the steps of the time intervals of the update of the home weather station (weather34) at the moment the minimum is 10 seconds, would it be possible to insert for example also every 2-5 seconds? This especially as regards the wind, which every 10 seconds is a little too much .. Thanks for your hard work
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Update interval for home weather station(for Boris and Brian)

Post by admin »

Sorry, no chance on the Meteobridge side. This will block too much of the other tasks.
weatherist34
Platinum Boarder
Platinum Boarder
Posts: 1693
Joined: Tue Mar 28, 2017 6:57 am

Re: Update interval for home weather station(for Boris and Brian)

Post by weatherist34 »

as boris quotes its not advisable, yes i get it 5 seconds is relative to wind speed but there is a reason or more than one reason .

1. pushes limits of the meteobridge resources this especially noticeable where end user will upload to multiple sites,multiple network services remember each simultaneous upload will eat the resource in meteobridge especially if you run internal exports of charts to hosted server.
2. most shared hosting services cant process that upload every 5 seconds and probably still processing previous upload when the next one is sent.ive seen some low cost hosting packages grind to a halt at 10 second intervals and user has to set it at 60 seconds to 5 minutes . there has always been the limit of 10 seconds because of this .
3. i use a 5 second interval but i dont upload to multiple networks , services in fact i dont upload too any so im not pushing the limits of the meteobridge cpu resources etc.my hosting package at ICDSOFT can handle that because there is nothing else happening .
4. the template does display max wind speed last 10 minutes so that is not missed, the charts for the today record max last 10 minutes so again the data is not missed in wind speed related stuff.also 10 min averages. unless you want min speed or the stupid lulls approach which basically is a waste of time.
5. remember the template uses 191 different values sent by meteobridge every 10 seconds thats a lot of processing so at 5 seconds your pushing the extremes on both meteobridge and your hosting server.
6. 10seconds is what the template minimum update to the modules like wind is set for so even if you get meteobridge to upload every 5 seconds the modules for wind dont update every 5 seconds without adjusting intervals in the template itself. classic case is intervals set too low cause server error 500 and the server logs normally reveal resource errors..
7. i recall being asked to set the temperature interval to 3 seconds in the past i just didnt get it does the temperature change that much in 3 seconds..

lastly this also why i moved away from mysql simply resources at server level as most end users will not perform regular daily maintenance to the database and after a year or so there is a substantial amount of data stored in terms of millions of lines especially if inserting at 10 second second intervals ,so if you had 5 visitors on your site all requesting data derived from mysql ,things start to go a bit wonky or start lagging and hosting companies will jump on you if you are using a shared hosting service which the majority are ..it goes deeper but you can easily spot the poorly implementation of mysql use in some template designs . imagine the scenarios you have over two years of data stored at 10 -60 second intervals and you have template features that poll that 2 years or more of data its needs to be processed and sorted now add 5 visitors all simultaneously calling that feature.. result one poorly performed website and mysql does use resources and scripts need to be optimized to do this in a reasonable timely manner which unfortunately most are not.
im not being negative just years of running a hotel portal and using mysql in my last job in the uk taught me a lot about how important regular daily maintenance of mysql is needed and when resources are limited things can go awfully wrong and often time consuming and tedious to repair.
weather enthusiasts tend to have multiple templates all doing something similar regularly unlike a static website like a blog or personal information page where only time data is updated is when you post a new blog and the server normally creates a static cached page so resource use is minimal but realtime weather data websites are updating almost instantly at 10 seconds or more.

some things are advised for a reason not because it can't be done..hope it helps im not a self acclaimed expert just experience tells me not all hosting services are alike. ..brian
Simple Update February 2023 for Weather34 Aurora MKII
https://www.mediafire.com/file/jk4lj3mq ... 2.zip/file

Weather34 Master Download Aurora MKII
https://download.meteobridge.com/files/Weather34.zip
xxvincixx
Senior Boarder
Senior Boarder
Posts: 60
Joined: Fri Apr 19, 2019 2:32 pm

Re: Update interval for home weather station(for Boris and Brian)

Post by xxvincixx »

thanks to you both for the clarification ... :) :) Now I have everything clearer ..
Post Reply