Author Topic: MB AjaxDashboard Unlimited updates  (Read 270 times)

0 Members and 1 Guest are viewing this topic.

Offline drrehak

  • Senior Member
  • **
  • Posts: 51
MB AjaxDashboard Unlimited updates
« on: February 21, 2022, 06:18:20 PM »
What do I set to get unlimited updates for the Saratoga Ajax Dashboard and Gizmo (Meteobridge)?
I set maxupdates=0 in ajaxMBwx.js, but I still get about 10 update cycles over 90 seconds before it pauses and the message changes from "updated" to "paused".
Not sure where to look for more settings.
Thanks.


Dan Rehak | Pittsburgh PA
Davis Vantage Pro 2 Plus | Meteobridge Pro
Local Site | Raspberry Pi 4B

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 874
    • LexMAWeather
Re: MB AjaxDashboard Unlimited updates
« Reply #1 on: February 21, 2022, 07:42:21 PM »
Link to website?

I believe that is the only thing that needs to be set.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8621
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: MB AjaxDashboard Unlimited updates
« Reply #2 on: February 21, 2022, 07:59:15 PM »
Your browser has likely cached the script.  Do a shift-reload of the page to get the changed script.  Jasiu is correct, that is the only setting needed.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline drrehak

  • Senior Member
  • **
  • Posts: 51
Re: MB AjaxDashboard Unlimited updates
« Reply #3 on: February 21, 2022, 08:32:40 PM »
Thanks.  And sorry -- juggling too many things.
Worked as soon as I kicked Chrome into incognito mode.  Had to do some serious manual cache flushing to get it cleared in regular mode.
Dan Rehak | Pittsburgh PA
Davis Vantage Pro 2 Plus | Meteobridge Pro
Local Site | Raspberry Pi 4B

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8621
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: MB AjaxDashboard Unlimited updates
« Reply #4 on: February 22, 2022, 01:03:53 PM »
Don't forget that the AJAX update only handles SOME of the variables that can be displayed on the pages in the site.

When you turn on 'unlimited updates', it's always good to add
Code: [Select]
<meta http-equiv="Refresh" content="300" /> to top.php to ensure that every 5 minutes, the browser will refresh the PHP page and get ALL the variables 'fresh'.   Otherwise, you can have a mix of fresh and stale variable displays which would be confusing to your site visitors (especially in the wxtrends.php page).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline drrehak

  • Senior Member
  • **
  • Posts: 51
Re: MB AjaxDashboard Unlimited updates
« Reply #5 on: February 22, 2022, 03:49:07 PM »
Thank you.
Checking the headers was on my todo list, but I probably would have forgotten about setting refresh.
Dan Rehak | Pittsburgh PA
Davis Vantage Pro 2 Plus | Meteobridge Pro
Local Site | Raspberry Pi 4B