Page 1 of 1
template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 2:02 am
by griffo42
I use the Saratoga templates for my main site. It is looking for a file - realtime.txt - which was part of the b3107 release, can't find it so is not showing the correct weather info. at any minute. I have searched and cannot find such a file in the current release (b3116) of CumulusMX.
The Brand new default web site (Neil Thomas version and this is great) seems to get its data from the file - websitedata.json. How do I now get a file in the form required by the Saratoga templates from the changed new style output data from CumulusMX? Help please.
My Saratoga URL is
https://www.kstwx.net/index.php
My Neil Thomas CUMX site URL is:
https://www.kstwx.net/cumx/index.htm
Keith
Re: template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 2:06 am
by beteljuice
So this is NOT a template query ....
Re: Saratoga template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 2:24 am
by saratogaWX
The Saratoga template uses two main files for weather data:
1) realtime.txt (uploaded by Cumulus/MX at frequent intervals and used by the ajaxCUwx.js JavaScript to update SOME of the weather data)
2) CUtags.php (uploaded at 5 minute intervals by processing the CUtags.txt files into CUtags.php)
The CUtags.php is controlled by the Extra Web Files upload screen. realtime.txt is a selection in the Internet Settings/Web FTP Settings.
The Saratoga templates do not use the new websitedata.json file, that is only for the new default html templates.
Re: template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 3:06 am
by griffo42
@saratogaWX
Thanks for your reply.
CUtags.php is OK and correctly shows the current data.
saratogaWX wrote: ↑Sun 28 Feb 2021 2:24 am
1) realtime.txt (uploaded by Cumulus/MX at frequent intervals and used by the ajaxCUwx.js JavaScript to update SOME of the weather data)
I cannot find a file realtime.txt in my installation of the b.3116 issue of CumulusMX. If realtime.txt is necessary to correctly update my Saratoga based website, I would very appreciate it if someone would tell me what I need to do to fix the matter.
Re: template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 3:15 am
by PaulMy
Hi,
The realtime.txt file is created in v3.10.1 just like before and is placed in the CumulusMX folder.
To upload realtime go to Settings = Interval settings = Realtime settings - Enable realtime and set the interval, and tick if to FTP.
Enjoy,
Paul
Re: template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 3:19 am
by saratogaWX
See the attached Internet settings.
2021-02-27_CUMX-realtime.png
Re: template queries / requests that not part of 'mx' code problems
Posted: Sun 28 Feb 2021 5:07 am
by griffo42
Thanks to everyone who replied to my original post. All good.
Keith