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

Now available: AJAX/PHP multilingual website templates

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

beteljuice wrote:
The apparent temperature reported by Cumulus uses the Australian BOM calculation for it's value. Even though the current CU-defs.php assigns the Cumulus apparent temperature to the $feelslike value, it is overridden by
Code:
list($feelslike,$heatcolourword) = CU_setFeelslike ($temperature,$windch,$heati,$uomtemp);
further on in the code which overrides the $feelslike = $WX['apptemp'];
So are you saying that you have a function to specifically change Cumulus 'feels like', and if so, is it optional ?

Thinking further along, for all users of your code ....
User 'feels like' Options to be ..
  • Station set
    'Saratoga' reasoning
    Austrailian BOM reasoning
Yes, there's a function in the CU-defs.php that sets both the $feelslike and $heatcolourword. The ajaxCUwx.js has a function for determining what 'heatcolourword' should be used based on the realtime.txt, and what 'feelslike' should be updated too.

I think what you'd proposed about a Settings-weather.php setting to allow folks to pick which variety of 'feelslike' should be used in their area is a good idea. I'll do that (and see how to feed the selection to the ajax script too).

Each of the weather software packages offer some type of index reflecting how the current conditions 'feel' to mere humans, but they're all a bit different:

Weather-display sets %feelslike% tag based on temperature, wind-chill, and humidex. It also has an apparent temp tag (per AU BOM calcs).

VWS sets ^vxv027^ with the Virtual Temperature (but I can't find the computational basis for that in the VWS docs)

Weather-Link sets <!--thw--> which adds Wind to the temp/humidity calc (according to Davis app note 28).

Meteohub doesn't offer a specific variable for 'feelslike', but does have the usual suspects (heat-index, humidex).

Cumulus has tags for heat-index, humidex, and the apparent temperature (per AU BOM calc)

Whew... So for station geographical location and weather software used, there is no current 'best fit' for all.
Geographically, the USA prefers heat-index, Canada prefers humidex, and AU prefers Apparent temp .. other countries likely use heat-index (just a guess on my part).

I'll do up the mods so Cumulus users can pick heat-index, humidex or apparent temp to use when 'heat' is the issue, and wind-chill will be used for all the low-temperature events.

Best regards,
Ken
Last edited by saratogaWX on Fri 16 Sep 2011 1:27 am, edited 1 time in total.
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

WoodburyMan wrote: Thanks for the info Ken! I've modified my files accordingly. However I doubt I'll be having any more days where heat index is being used, yesterday was the last I bet. Doesn't look like we'll be breaking out of the 60F's in the next week at least.. Fall is here. Time for some good windchill values now!

Also a neat feature I added to one of my pages I thought I'd share. For those interested in watching the sky's at night I added a clear sky chart to my astronomy page. http://www.grudzien.us/wxastronomy.php. I had to expand the style sheets to a width of 875 vs 800 for it to fit right.

Also sent some beer money your way! Thanks again!
I've also had the starmap (from Fourmilab Your Sky on my Sun/Moon/Sky page .. it's a neat application!

Thanks for your kind donation!

Best regards,
Ken
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by WoodburyMan »

saratogaWX wrote:
WoodburyMan wrote: Thanks for the info Ken! I've modified my files accordingly. However I doubt I'll be having any more days where heat index is being used, yesterday was the last I bet. Doesn't look like we'll be breaking out of the 60F's in the next week at least.. Fall is here. Time for some good windchill values now!

Also a neat feature I added to one of my pages I thought I'd share. For those interested in watching the sky's at night I added a clear sky chart to my astronomy page. http://www.grudzien.us/wxastronomy.php. I had to expand the style sheets to a width of 875 vs 800 for it to fit right.

Also sent some beer money your way! Thanks again!
I've also had the starmap (from Fourmilab Your Sky on my Sun/Moon/Sky page .. it's a neat application!

Thanks for your kind donation!

Best regards,
Ken
Neat! Added that to mine as well. Didn't know there were any web-based ones I could use in HTML.
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
josebp
Posts: 65
Joined: Tue 13 Apr 2010 11:37 am
Weather Station: Davis Vantage Pro2
Operating System: WINDOWS 10
Location: Sevilla, España
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by josebp »

Hi Ken, back with the predictions.
When writing the post, the predictions have been blank, although WU they are running.
Best regards
José
--------------------------------------------------------------------------------
Hola Ken, a vuelta con las predicciones.
A la hora de escribir el post, las predicciones se han quedado en blanco,,, aunque en WU están funcionando.
Saludos,
José
You do not have the required permissions to view the files attached to this post.
Image
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

Another small change to the WU-forecast.php (ML) to address yet another WU website change. I sure hope their website stabilizes soon.

Download: WU-forecast.php (ML) Version 1.22 16-Sep-2011 for old WD/PHP/World-ML or V3 Base-World template set)
or use the Update utility for V3 templates

Best regards,
Ken
User avatar
JennyLeez
Posts: 336
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by JennyLeez »

Hi Ken,
Talk about go from one extreme to another.
Many thanks once again for fix. You must be getting sick of working on this file for sure.
Cheers
Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

Posted an update to ajaxCUwx.js and CU-defs.php (with a new spec in Settings-weather.php) to support selection of feelslike temperature from either heat-index(default), humidex, or apparent temperature.

Updates from update utility page.

Best regards,
Ken
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by WoodburyMan »

Just did the latest update. Not sure if it's the update or just happened to be at the time time, or something wrong with Weather.gov's servers. If I go to my forecast page ( http://www.grudzien.us/wxforecast.php ) and click on "Hazardous Weather Outlook", it gives me this link. http://www.weather.gov/showsigwx.php?wa ... er+Outlook Going to that page I get the following message..
National Weather Service
Wed Oct 05 2011 08:19:50 GMT-0400 (Eastern Daylight Time)
This site will be down for maintenance on Saturday 10/1.

Please use the following links for NWS forecasts and services.Forecasts:
http://forecast.weather.gov/zipcity.php
*Please type your zip code into the search box

Radar:
http://radar.weather.gov

Air Quality:
http://airquality.weather.gov

Aviation:
http://aviationweather.gov

River and Lake Forecasts and Observations:
http://water.weather.gov

Graphical Forecasts:
http://graphical.weather.gov


We apologize for any inconvenience that this might cause.
Not sure how long it's been doing that, given it's now the 5th and they stated it would only be down the 1st it might be an issue. **HOWEVER** I noticed if I go to Weather.gov and type in my zip code to view the forecast on their site, I get the "Hazardous outlook" link there it works. http://forecast.weather.gov/showsigwx.p ... er+Outlook Notice the URL has forecast.weather.gov where as the other doesn't have the forecast subdomain. The same also goes for the frost advisory (Our first of the year :) ) on the forecast page, however it works on the main Advisory page and Home/Index page perfectly fine, only the Forecast page does this.

The Line/URL I use for that location for forecast in Settings.php is the following if it helps

Code: Select all

"KOXC|Woodbury|http://forecast.weather.gov/MapClick.php?lat=41.55496712080976&lon=-73.22537899017334&site=aly&unit=0&lg=en&FcstType=texttextField2=-122.022&e=1&TextType=2",
If I enter that URL manually into my browser and view the page, the links on the page for the advisories work fine as well.

Any insight would help. Thanks!
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

Looks like the NWS is tweaking the website again, and no longer offers warning info via www.weather.gov (but instead uses forecast.weather.gov, as you said).

Thanks for spotting the issue! I've fixed the advforecast2.php script (V3.02) and it's now available via the updates page for Base-USA template users.

Best regards,
Ken
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by WoodburyMan »

Wow! That was quick! Uploaded and works like a charm. Thanks!!!
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
vpokroglo
Posts: 111
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by vpokroglo »

Hi,

I download latest updates from saratoga-weather for cumulus, world base. But there is ajaxWDwx.js not ajaxCUwx.js. Is it possible to have support for alternative animated icon set from http://www.meteotreviglio.com/ for Cumulus also?

thx, Marko
Image
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

You can use the Animated icons from Meteotreviglio with the Cumulus plugin.

There is no ajaxCUwx.js update since the conditions icon on the dashboard is not updated by the AJAX script, only by the PHP of the dashboard itself (based on the nearby METAR conditions). The Cumulus realtime.txt does not currently have a 'icon number' for current conditions (unlike Weather-Display's clientraw.txt), so no AJAX update is currently possible.

Hope this helps...
Best regards,
Ken
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by nitrx »

saratogaWX wrote:You can use the Animated icons from Meteotreviglio with the Cumulus plugin.

There is no ajaxCUwx.js update since the conditions icon on the dashboard is not updated by the AJAX script, only by the PHP of the dashboard itself (based on the nearby METAR conditions). The Cumulus realtime.txt does not currently have a 'icon number' for current conditions (unlike Weather-Display's clientraw.txt), so no AJAX update is currently possible.

Hope this helps...
Best regards,
Ken
Where do the icons come from for the metar conditions in cumulus ?
User avatar
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

nitrx wrote:
saratogaWX wrote:You can use the Animated icons from Meteotreviglio with the Cumulus plugin.

There is no ajaxCUwx.js update since the conditions icon on the dashboard is not updated by the AJAX script, only by the PHP of the dashboard itself (based on the nearby METAR conditions). The Cumulus realtime.txt does not currently have a 'icon number' for current conditions (unlike Weather-Display's clientraw.txt), so no AJAX update is currently possible.

Hope this helps...
Best regards,
Ken
Where do the icons come from for the metar conditions in cumulus ?
The conditions icons (both the .jpg and Meteotreviglio .gif versions) are in the ajax-images/ directory. The update on Oct 1st added the Meteotreviglio .gif conditions icons to the distribution directory (with Paolo's kind permission).

For Cumulus plugin, the get-metar-conditions-inc.php script fetches, caches and parses your nearby METAR and determines the words and icon to use. The specific METAR used is specified in Settings-weather.php.

Best regards,
Ken
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by nitrx »

Okay thank you
Post Reply