Released: version 2.0 Feb. 20, 2025 (use only with CMX 4.3 and above)
snowDisplay version 2.0
- ver 2.0 - Feb. 20, 2025 - Initial release of Seasonal Snowfall Data for CMX using an .exe/dll to pull data from diary.db
- Created an exe/dll file to pull data from diary.db instead of using a php script, thus elliminating the need to install php on your local machine solely for that purpose.
- Removed the PHP version of intlDateFormatter for localized month names. Now uses javascript's version which is independant of any PHP versions.
- Calculations for the snowfall statistics section now uses the date when snowfall (snow24hr) was first recorded.
** PHP no longer needs to be installed locally on same machine running CMX in order to pull data from diary.db, as was previously required. **
The ZIP file includes the necessary snowDisplay files and a read_me.txt file with installation instructions.
Please see image below which was using sample data at the time for testing.
Runs successfully in CUtils, Cumulus MXUI web template, the standard CMX website template, and as a standalone webpage. Hasn't been tested on other templates but shouldn't be any reason it wouldn't work. For templates just add <?php include_once "./snowDisplay.php";?> where you want it to be displayed. Then for templates using htm or html extensions change the webpage extension to .php and update your menu to point to the .php page.
Thanks to PaulMy as portions of this script is inspired from komokaweather.com snowfall-log.pdf.
Some key features in this program include;
- Setting user defined variables such as; timezone, whether northern or southern hemisphere, unit of measure (inches or centimeter), the use of using a comma or dot (period) for decimal places
- Setting a preferred language (default language is english).
- Daily, Monthly and yearly cumulative snowfall and event totals
- Cumulative days with snowfall
- Cumulative snowfall depth
- Average annual snowfall depth
- Probability of snowfall %