I am running CumulusMX4 and a LAMP (Apache) server on Ubuntu. I have been running Cumulus for years now and it functions as expected. I recently decided to redo and update my website with Saratoga templates after a long time of it being decommissioned. I have a few seemingly simple problems I need some guidance with:
1. The date displayed on the webpage is day/month/year. For example, today is November 7, 2024, and the webpage shows 07/11/24. I tried changing settings.php among other things to no avail. Is this a Cumulus setting or a php template change that is needed?
2. Almanac > Station graphs is missing the icons (temp.png, hum.png, etc.) I have searched in my archived website, etc. but cant find these icons anywhere. Am I missing something?
Thanks in advance for the assistance!
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Need some guidance with Saratoga Templates
Moderator: saratogaWX
- sparkynerd
- Posts: 39
- Joined: Wed 14 Jan 2015 10:08 pm
- Weather Station: Davis Vantage Vue
- Operating System: Windows, Linux, Proxmox
- Location: United States
Need some guidance with Saratoga Templates
__________
Davis Vantage Vue
Proxmox / Ubuntu LXC
Cumulus MX v4
Davis Vantage Vue
Proxmox / Ubuntu LXC
Cumulus MX v4
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Need some guidance with Saratoga Templates
The settings for Date format are in two places. One is in Settings.php and $SITE('WDdateMDY'] has to be set correctly too.
Check the contents of the $WX['date'] (use CUtags.php?sce=dump) to see what CumulusMX is currently set to produce .. if it is in the format you don't want, then use the CumulusMX control panel website to put it in the correct format (changing format may mean regenerating multiple logfiles).
The other date is in realtime.txt (used by ajaxCUwx.js) -- that is the date that will be displayed on AJAX updates.
CumulusMX doesn't produce images -- only original Cumulus did. You may need to update your Saratoga template and CU-plugin to have support for the Highgraphs needed to present the graph files via JSON files.
run check-fetch-times.php?show=versions on your site .. if it shows that check-fetch-times.php itself needs update, do that first, then run it again to get an accurate, up-to-date of all the updates you may need.
I hope this helps.
Check the contents of the $WX['date'] (use CUtags.php?sce=dump) to see what CumulusMX is currently set to produce .. if it is in the format you don't want, then use the CumulusMX control panel website to put it in the correct format (changing format may mean regenerating multiple logfiles).
The other date is in realtime.txt (used by ajaxCUwx.js) -- that is the date that will be displayed on AJAX updates.
CumulusMX doesn't produce images -- only original Cumulus did. You may need to update your Saratoga template and CU-plugin to have support for the Highgraphs needed to present the graph files via JSON files.
run check-fetch-times.php?show=versions on your site .. if it shows that check-fetch-times.php itself needs update, do that first, then run it again to get an accurate, up-to-date of all the updates you may need.
I hope this helps.
- sparkynerd
- Posts: 39
- Joined: Wed 14 Jan 2015 10:08 pm
- Weather Station: Davis Vantage Vue
- Operating System: Windows, Linux, Proxmox
- Location: United States
Re: Need some guidance with Saratoga Templates
Thanks for the guidance! I think I have everything in settings.php correct?:
I am not sure if the output of CUtags.php?sce=dump is correct or not, as the date and time are incorrect:
The date format in realtime.txt appears to be at least part of the problem, although I don't know how to fix it. The date displayed in realtime.txt is 08/11/2024 and the date in the CumulusMX Dashboard is 11/8/2024. How can I change the date format that gets sent to realtime.txt?
Realtime.txt
Running check-fetch-times.php?show=versions shows all installed versions are "Current". When I recently recommissioned my webpage, I downloaded the Base and CU-Plugin templates and started fresh. Is there something else I need to do to troubleshoot the graphs?
Thanks again for the assistance and for the amazing templates!
Code: Select all
$SITE['timeFormat'] = 'm/d/Y g:ia'; // USA format 03/31/2006 14:03
$SITE['timeOnlyFormat'] = 'g:ia'; // USA format h:mm[am|pm\
$SITE['dateOnlyFormat'] = 'm/d/Y'; // For format month/day/year (e.g., 11/8/2024)Code: Select all
// $WX[] array size = 174 entries.
$WX['date'] = '1/27/2011'; // The current date
$WX['time'] = '09:15 on 27 January 2011'; // The current time and date. Example result: 18:30 on 30 December 2009. If you simply wish the time, use a combination of the day, month, year tags (below)
$WX['timehhmmss'] = '09:15:46'; // The current time. Example format: 18:30:27
$WX['day'] = '27'; // The current day as a 2-digit number. Example format: 14
$WX['dayname'] = 'Thursday'; // The current day as a word. For example, Monday
$WX['shortdayname'] = 'Thu'; // The current day as a shortened word. Example format: Mon
$WX['month'] = '01'; // The current month as a 2-digit number. Example format: 05
$WX['monthname'] = 'January'; // The current month as a word. Example format: August
$WX['shortmonthname'] = 'Jan'; // The current month as a shortened word. Example format: Aug
$WX['year'] = '2011'; // The current year as a 4-digit number. Example format: 2009
$WX['shortyear'] = '11'; // The current year as a 2-digit number. Example format: 09
$WX['hour'] = '09'; // The current hour as a 2-digit number. Example format: 23
$WX['minute'] = '15'; // The current minute as a 2-digit number. Example format: 59Realtime.txt
Code: Select all
08/11/24 09:16:11 48.2 86 44.2 1.0 2.0 123 0.00 0.00 29.61 ESE 1 mph F in in 0.1 +0.01 1.04 12.92 0.00 71.0 53 48.2 +2.5 48.2 09:16 39.3 05:57 1.0 08:56 8.0 09:14 29.62 08:34 29.58 03:02 4.2.1 4043 8.0 48.2 9.0 0.0 0.000 0 136 0.00 9 0 0 SE 907 ft 46.3 0.0 0 0 48.2Running check-fetch-times.php?show=versions shows all installed versions are "Current". When I recently recommissioned my webpage, I downloaded the Base and CU-Plugin templates and started fresh. Is there something else I need to do to troubleshoot the graphs?
Thanks again for the assistance and for the amazing templates!
__________
Davis Vantage Vue
Proxmox / Ubuntu LXC
Cumulus MX v4
Davis Vantage Vue
Proxmox / Ubuntu LXC
Cumulus MX v4
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Need some guidance with Saratoga Templates
The Settings.php entries look correct.
The CUtags.php?sce=dump are showing my sample output (included with the template so it works until you get CUtags.php uploading from your station via CumulusMX).
Use https://saratoga-weather.org/wxtemplate ... ulusMX.php to set up CumulusMX to do that.
The realtime.txt looks correct .. to display using USA date/time format, make sure that ajaxCUwx.js has
For the graphs, (in wxgraphs.php) to display, you need to set CumulusMX to upload the JSON files
Use the control panel for CumulusMX
Settings, Internet Settings, Interval Configuration , Graph File Settings area
If you'd post the URL to your Saratoga website, it would make remote diagnosis much easier.
The CUtags.php?sce=dump are showing my sample output (included with the template so it works until you get CUtags.php uploading from your station via CumulusMX).
Use https://saratoga-weather.org/wxtemplate ... ulusMX.php to set up CumulusMX to do that.
The realtime.txt looks correct .. to display using USA date/time format, make sure that ajaxCUwx.js has
Code: Select all
var showDateMDY = true; // set to false to show date as dd/mm/yy
var showAMPM = true; // =false show 24hr time, =true show am/pm time
Use the control panel for CumulusMX
Settings, Internet Settings, Interval Configuration , Graph File Settings area
If you'd post the URL to your Saratoga website, it would make remote diagnosis much easier.
You do not have the required permissions to view the files attached to this post.