Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Current Conditions Audio

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: For those with poor eyesight

Post by PaulMy »

Made some good progress http://www.komokaweather.com/weather/meteo_audio.html

Thanks Serge and Marcel for your idea, and Mark for your help in improving the English code and pronunciations. Another lesson learned today...

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: For those with poor eyesight

Post by BeaumarisWX »

Nice one Paul,
I did a quick php version same as my Forecast one with language selector, uses the realtime tags.
Also included Wind/Words and a brief on Current Conditions using the CurrentConditions v3 script and (ff) AM/PM to the Times.
http://hrvistaweather.com/rvc/conditionsaudio.php
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
mcrossley
Posts: 12687
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: For those with poor eyesight

Post by mcrossley »

These are coming on nicely. I'm sure there will be lots of tweaking.

I see the script only uses the back-end server if the users platform does not support native text to speech. So for Windows it uses the Windows TTS voices etc.
User avatar
mlj1
Posts: 63
Joined: Mon 26 Dec 2011 8:14 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 7 SP1
Location: Saint-Brevin les Pins, France
Contact:

Re: For those with poor eyesight

Post by mlj1 »

Hi Paul and Mark,
The script is working now. I had to use <#RCtags> and all is ok, except the Apparent temp which does not have a RC equivalent.
I learned a lot from Mark once more :clap:
To finish the job in javascript I will process the French part now, using Mark's routines. I just have to find how to replace a comma in value with a dot.
A php script would also be appreciated, if any, just for learning purpose.
http://www.meteo-saint-brevin.fr/infos.htm
Marcel Le Jeune F6DOW, Saint-Brevin les Pins, Pays de la Loire, France
Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr
Image
User avatar
mcrossley
Posts: 12687
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: For those with poor eyesight

Post by mcrossley »

To use comma decimal values, try this code. It forces the values to be stored as strings, and the replacePoint() function first converts comma decimals to dot (if present), then converts to a number, before doing the text 'point' replacement. Marcel, the function also strips the decimal if the value is nn.0 as I thought it reads better.

Code: Select all

var text1 = 'Here is the latest weather report from Meteo Saint-Brevin. Released today at <#time format="h' 'nn">. ';
var english = {};
var point = ' point ';
english.temp = replacePoint('<#temp>', point);
english.apptemp = replacePoint('<#apptemp>', point);
english.wlatest = replacePoint('<#wlatest>', point);
english.wgustTM = replacePoint('<#wgustTM>', point);
english.rfall = replacePoint('<#rfall>', point);

text1 += 'The temperature is ' + english.temp + '° Celsius, feeling like ' + english.apptemp + '°. ';
text1 += 'The temperature has been <#temptrendenglish> over the last three hours. ';
text1 += 'Humidity is <#hum> %. ';
text1 += 'The atmospheric pressure is <#press> hectopascals; ';
text1 += 'And the pressure trend is <#presstrendenglish>. ';
if (<#wlatest> == 0) {
    text1 += 'The wind is currently calm. ';
} else {
    text1 += 'The wind is blowing from a bearing of <#bearing>°; with a speed of ' + english.wlatest + ' Km/h. ';
}
text1 += 'And the strongest gust today was ' + english.wgustTM + ' Km/h at <#TwgustTM format="h' 'nn">. ';
text1 += 'The theorical cloud base is : <#cloudbase>. ';
if (<#rfall> == 0) {
    text1 += 'It has not rained so far today. ';
} else {
    text1 += 'The rainfall today is ' + english.rfall + ' millimetres. ';
}
text1 += 'The Davis station forecast shows : <#wsforecast>. ';
text1 += 'Sunrise today at <#sunrise format="h' 'n">, and sunset at <#sunset format="h' 'n">. ';
text1 += 'Thank you for your attention. ';
text1 += 'The next report will be available in a few minutes.';

document.getElementById('text1').innerText = text1;

function replacePoint(val, str) {
    var tmp = parseFloat(val.toString().replace(',', '.'));
    return (tmp % 1 === 0 ? parseInt(tmp) : tmp).toString().replace('.', str);
}
If you want to strip all the decimals from your pressure, then try this...

Code: Select all

text1 += 'The atmospheric pressure is ' + '<#press>'.split(',')[0] + ' hectopascals; ';
Change the comma ',' to '.' for dot decimal values.
It simply splits the string into an array at the decimal separator, then uses the first element of that array.
User avatar
mlj1
Posts: 63
Joined: Mon 26 Dec 2011 8:14 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 7 SP1
Location: Saint-Brevin les Pins, France
Contact:

Re: For those with poor eyesight

Post by mlj1 »

Thank you very much for this course Mark !
I will try that as soon as possible. I have to spend my week-end far away from home, but I look forward to come back on my webpage for putting your tips into action.
Marcel
Marcel Le Jeune F6DOW, Saint-Brevin les Pins, Pays de la Loire, France
Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr
Image
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: For those with poor eyesight

Post by BeaumarisWX »

Hi Marcel,
As per request, info for the http://hrvistaweather.com/rvc/conditionsaudio.php it's rough and ready and works though requires modified tags and realtime-x.php passer. You would need to set up your own as mine is huge and 90% non relevant to this exercise.It could be adapted to be uploaded from Cumulus easily, though I prefer doing it server side like this, as I'm already uploading the data.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>South Franklin Onsite Conditions Bulletin Audio</title>
    <link rel="stylesheet" type="text/css" href="../weather/weather-screen-black-narrow.css" media="screen" title="screen" />
	<script type="text/javascript" src='../rvc/js/responsivevoice.js'></script>
	<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
	    <style type="text/css">
    .quake4{
        width: 95%;
        margin: 0 auto; 		
    }
    </style>
</head>
<body>
	<div style = "text-align:center;">
	<br />
<div class="quake4">
<div id="rssbox" class="advisoryBoxquakes" >
<br />
<?php include_once('../weather/common.php');?> <!-- not required just included for Current Conditions stops Lang Fail on inculde -->
<?php include_once('../wxshare/realtimetags-x.php');?> <!-- my customised realtime.txt php tag converter -->
<?php include_once('../wxshare/curconditions.php'); ?>
<?php
//switch sun moon times not perfect just an example
date_default_timezone_set('Australia/Hobart');
$hour = date('H:i', time());
if( $hour >= '00:00' && $hour < '21:00') {
  $dayTerm = "suntimes";
}
else if($hour >= '21:00' && $hour < '23:59') {
  $dayTerm = "moontimes";
}
else if($hour >= '23:59') {
  $dayTerm = "suntimes";
}
?>
<?php
// will use get-unso moon script at some sage but for now just a check if no Moon time available
if ($RT_moonriseformat == '-----') {
    $moonrise = '' ;
} else {
    $moonrise = 'Moonrise is at '.$RT_moonriseformat.',' ;
}
?>
<?php
if ($RT_moonsetformat == '-----') {
    $moonset = '' ;
} else {
    $moonset = 'Moonset is at '.$RT_moonsetformat.',' ;
}
?>
<?php
// use sun or moon switch
if ($dayTerm == 'suntimes') {
    $sunmoon = 'Sunrise today is at '.$RT_sunriseformat.', And sunset is at '.$RT_sunsetformat.',' ;
} else {
    $sunmoon = ''.$moonrise.' '.$moonset.'' ;
}
?>
<?php
// just tells listener what period of day/night it is
date_default_timezone_set('Australia/Hobart');
$hour2 = date('H:i', time());
if( $hour2 >= '00:00' && $hour2 < '04:25') {
  $dayTerm2 = "Overnight";
}
else if($hour2 >= '04:25' && $hour2 < '10:25') {
  $dayTerm2 = "this morning";
}
else if($hour2 >= '10:25' && $hour2 < '16:25') {
  $dayTerm2 = "this afternoon";
}
else if($hour2 >= '16:25' && $hour2 < '22:25') {
  $dayTerm2 = "this evening";
}
else if($hour2 >= '22:25') {
  $dayTerm2 = "Overnight";
}
?>
<?php
// Calculate Word WinDir from Bearing
function windDir ($winddir) {
    if (!isset($winddir)) {
        return "---";
    }
    $windlabel = array ("North","North North East", "North East", "East North East", "East", "East South East", "South East", "South South East", "South",
       "South South West","South West", "West South West", "West", "West North West", "North West", "North North West");
    $dir = $windlabel[ fmod((($winddir + 11) / 22.5),16) ];
    return "$dir";
}
$windword=windDir($RT_bearing);
// replace (.) dot with word "point"
$bad_symbols = array(",", ".");
$vtemp=$RT_temp;
$vtemp = str_replace($bad_symbols, "point", $vtemp);
$vhumidity=$RT_humidity;
$vhumidity = str_replace($bad_symbols, "point", $vhumidity);
$vapptemp=$RT_apptemp;
$vapptemp = str_replace($bad_symbols, "point", $vapptemp);
// round pressure
$vpress=round($RT_press,0);
$vwlatest=$RT_wlatest;
$vwlatest = str_replace($bad_symbols, "point", $vwlatest);
$vwgustTM=$RT_wgustTM;
$vwgustTM = str_replace($bad_symbols, "point", $vwgustTM);
$vrfall=$RT_rfall;
$vrfall = str_replace($bad_symbols, "point", $vrfall);
?>
<?php
// only supply apptemp if dif from temp
if ($vtemp == $vapptemp) {
    $tempStatus = 'The temperature is '.$vtemp.'degree celsius' ;
} else {
    $tempStatus = 'The temperature is '.$vtemp.'degree celsius, And feels like '.$vapptemp.'degree celsius' ;
}
?>
<?php
// tell listener the cumuls AGL and ASL cloud height metres (bit rough)
$cloudbase_asl=($RT_cloudbase + 29)
?>
<?php
// switch for wind calm
if ($RT_wlatest == 0) {
    $WindStatus = 'The wind is currently calm,' ;
} else {
    $WindStatus = 'The wind is blowing from a bearing of '.$RT_bearing.'degrees which is '.$windword.' at a speed of '.$vwlatest.'Km/h,' ;
}
?>
<?php
// switch for rain fall
if ($RT_rfall == 0) {
    $RainStatus = 'It has not rained so far today' ;
} else {
    $RainStatus = 'The rainfall today is '.$vrfall.'millimetres' ;
}
?>
<?php
// string compiled for output
$output = 'Here is the latest weather report from Huon River Vista Weather, South of Franklin Tasmania, Released '.$dayTerm2.' at '.$RT_timeformat.', In brief the current conditions are '.$condOut.' and in detail '.$tempStatus.', The temperature has been '.$RT_temptrendenglish.' over the last three hours, Humidity is '.$vhumidity.'%, The atmospheric pressure is '.$vpress.'hPa And the pressure trend is '.$RT_presstrendenglish.', '.$WindStatus.' And the strongest gust today was '.$vwgustTM.'kilometers per hour at '.$RT_TwgustTMformat.','.$RainStatus.', The theoretical cloud base is '.$RT_cloudbase.' above ground level from our station, and '.$cloudbase_asl.'metres from above sea level, Our Davis station forecast shows '.$RT_wsforecast.' '.$sunmoon.' We hope that weather conditions are favourable wherever you are and thank you for listening, An audio version of our onsite generated forecast, is also available from a link on the header of our website.'; 
?>

<span style="display: block; text-align: center;">
Change Voice : <select id="voiceselection"></select> : if Desired&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /> 
<strong>Listen to our onsite generated : </strong> 
<input onclick="responsiveVoice.speak(('<?php echo $output;?>'),$('#voiceselection').val());" type="button" value="Play" />
<script type="text/javascript">
        //Populate voice selection dropdown
        var voicelist = responsiveVoice.getVoices();
        var vselect = $("#voiceselection");
        $.each(voicelist, function() {
                vselect.append($("<option />").val(this.name).text(this.name));
        });
</script>
<input onclick="responsiveVoice.pause();" type="button" value="Pause" />
<input onclick="responsiveVoice.resume();" type="button" value="Resume" />
<input onclick="responsiveVoice.cancel();" type="button" value="Stop" /> <strong> : Current Conditions for Franklin.</strong></span>
<br />
</div>
</div><!-- Credits must remain below as per ResponsiveVoice Usage requiremants -->
<p><a style="color: #87cefa" href="http://responsivevoice.org" target="_blank">ResponsiveVoice-NonCommercial</a> licensed under <a href="http://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank"><img title="ResponsiveVoice Text To Speech" src="https://responsivevoice.org/wp-content/uploads/2014/08/95x15.png" alt="95x15" width="95" height="15" /></a></p>
</div>
</body>
</html>
Cumulus realtime-x.txt I uplaod below:

Code: Select all

<#date format=dd/MM/yy>~<#timehhmmss>~<#temp>~<#hum>~<#dew>~<#wspeed>~<#wlatest>~<#bearing>~<#rrate>~<#rfall>~<#press>~<#currentwdir>~<#beaufortnumber>~<#windunit>~<#tempunitnodeg>~<#pressunit>~<#rainunit>~<#windrun>~<#presstrendval>~<#rmonth>~<#ryear>~<#rfallY>~<#intemp>~<#inhum>~<#wchill>~<#temptrend>~<#tempTH>~<#TtempTH>~<#tempTL>~<#TtempTL>~<#windTM>~<#TwindTM>~<#wgustTM>~<#TwgustTM>~<#pressTH>~<#TpressTH>~<#pressTL>~<#TpressTL>~<#version>~<#build>~<#wgust>~<#heatindex>~<#humidex>~<#UV>~<#ET>~<#SolarRad>~<#avgbearing>~<#rhour>~<#forecastnumber>~<#isdaylight>~<#DataStopped>~<#wdir>~<#cloudbasevalue>~<#cloudbaseunit>~<#apptemp>~<#SunshineHours>~<#CurrentSolarMax>~<#IsSunny>~<#humTH>~<#humTL>~<#ThumTH>~<#ThumTL>~<#dewpointTH>~<#dewpointTL>~<#TdewpointTH>~<#TdewpointTL>~<#apptempTH>~<#apptempTL>~<#TapptempTH>~<#TapptempTL>~<#wchillTL>~<#TwchillTL>~<#solarTH>~<#TsolarTH>~<#UVTH>~<#TUVTH>~<#rrateTM>~<#r24hour>~<#StormRain>~<#currcond>~<#MinutesSinceLastRainTip>~<#forecast>~<#sunrise>~<#sunset>~<#moonrise>~<#moonset>~<#MoonAge>~<#MoonPercent>~<#moonphase>~<#presstrendenglish>~<#temptrendenglish>~<#wsforecast>~<#cloudbase>~<#sunset format="h' 'mm''tt">~<#sunrise format="h' 'mm''tt">~<#TwgustTM format="h' 'mm''tt">~<#time format="h' 'mm''tt">~<#moonrise format="h' 'mm''tt">~<#moonset format="h' 'mm''tt">
Hope you find it useful, and no doubt someone will find errors or ways of doing it better (hopefully).
regards,
Tony
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
mlj1
Posts: 63
Joined: Mon 26 Dec 2011 8:14 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 7 SP1
Location: Saint-Brevin les Pins, France
Contact:

Re: For those with poor eyesight

Post by mlj1 »

Hi Tony,
Thank you very much for your script.
I will have a lot more to learn and experiment when I will be back home.
Best regards
Marcel
Marcel Le Jeune F6DOW, Saint-Brevin les Pins, Pays de la Loire, France
Davis VP2+, D-Link wifi IP webcam DCS2130
http://www.meteo-saint-brevin.fr
Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: For those with poor eyesight

Post by ConligWX »

Very nice work all, however I would make a suggestion for those who are using this script for people with "poor eyesight".

I would also suggest you take into consideration that people with visual impairments need to actually see text with a usually higher level of contract and larger font for them to click on any "play button" else you have paid lip service to someone who has a disability. making it more friendly for their use rather than making it "blend in" to your layout or colour scheme should be a priority.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Current conditions audio

Post by PaulMy »

Hi Simon,
The title I used was mostly in jest and I could/should have been more creative. Thank you for your comment and we shouldn't joke or make derogatory comment about any disability a person may have. I apologize for that.

Again I hadn't thought much about my page appearance and that it might be difficult for some. I have no technical knowledge or ability but do enjoy this hobby and eagerly try new things to keep the old grey cells active. Having it work is my main goal, But I should take more time to learn and also consider appearance, etc.

KIndest regards,
Paul
Last edited by PaulMy on Mon 26 Sep 2016 11:42 pm, edited 2 times in total.
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: For those with poor eyesight

Post by Mapantz »

Is realtime-x.txt supposed to be processed, and then uploaded as realtime-x.php?
Image
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: For those with poor eyesight

Post by BCJKiwi »

Yes and no - see the following explanation;
realtime-x was developed initially for the Saratoga template and to assist with the change to maximize the use of PHP in all three websites here and I began developing this system over 2 years ago.
http://silveracorn.nz/weather/
http://silveracorn.nz/cumulusmx/
http://silveracorn.nz/cumulus/

This provided realtime php variables for all the realtime variables and was extended (the -x) to match the Saratoga system.
So there are now two versions in the fileset - one that simply extends the standard realtime.txt file and the other that generates php vars to match the standard Cumulus var names and also the standard Saratoga var names (where these vary) and the standard vars names are prefixed by RT_

Have attached the two files as .zips for you.
If you wish to use either of these then place them in the CumulusMX/web folder and process them in realtime and FTP to the webserver.
realtimeMXT.txt becomes realtime-x.txt on the webserver.
realtimetagsMXT.php becomes realtimetags.php on the webserver

For Saratoga the realtime-x.txt is used in ajaxCUwx.js and enables the ajaxCUwx variables to be extended and to have matching realtime tags.
You do not have the required permissions to view the files attached to this post.
Last edited by BCJKiwi on Sat 24 Sep 2016 10:24 pm, edited 1 time in total.
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: For those with poor eyesight

Post by Mapantz »

BCJKiwi wrote: Have attached the two files a .zips for you.
If you wish to use either of these then place them in the CumulusMX/web folder and process them in realtime and FTP to the webserver.
realtimeMXT.txt becomes realtime-x.txt on the webserver.
realtimetagsMXT.php becomes realtimetags.php on the webserver
Thank you so much for that! On closer inspection earlier, I noticed the $RT_ stuff and thought that I would need an extra file of some sorts.

http://www.warehamwx.co.uk/cumulus/conditionsaudio.php

My only issue is how the time is spoken. Can a Cumulus webtag be formatted so the voice says 'eleven fifteen pm'?

Nice script this, thanks to everyone posting stuff for it. :)
Image
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: For those with poor eyesight

Post by BeaumarisWX »

Hi Mapantz,
Re my earlier post, the additional tags are required for my conditionsaudio.php
CMX and Cumulus1 time variables are different, so depending on which you use the following needs to be added. I don't have C1 anymore so not tested Cumulus1 (may need adjusting?).

Code: Select all

CMX
~<#presstrendenglish>~<#temptrendenglish>~<#wsforecast>~<#cloudbase>~<#sunset format="h' 'mm''tt">~<#sunrise format="h' 'mm''tt">~<#TwgustTM format="h' 'mm''tt">~<#time format="h' 'mm''tt">~<#moonrise format="h' 'mm''tt">~<#moonset format="h' 'mm''tt">
Cumulus1
~<#presstrendenglish>~<#temptrendenglish>~<#wsforecast>~<#cloudbase>~<#sunset format="h' 'nn''am/pm">~<#sunrise format="h' 'nn''am/pm">~<#TwgustTM format="h' 'nn''am/pm">~<#time format="h' 'nn''am/pm">~<#moonrise format="h' 'nn''am/pm">~<#moonset format="h' 'nn''am/pm">
regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: For those with poor eyesight

Post by BeaumarisWX »

To have your preferred region (voice type) default/first in list change the .js (example below shows mod from Australian Female first to UK Female and UK Male at top of list).

Code: Select all

To Have UK Female Voice as default at top of list , Change:

/*
 ResponsiveVoice JS v1.4.7

 (c) 2015 LearnBrite

 License: http://responsivevoice.org/license
*/
if("undefined"!=typeof responsiveVoice)console.log("ResponsiveVoice already loaded"),console.log(responsiveVoice);else var ResponsiveVoice=function(){var a=this;a.version="1.4.7";console.log("ResponsiveVoice r"+a.version);a.responsivevoices=[{name:"Australian Female",flag:"au",gender:"f",voiceIDs:[87,86,5,201,88]},{name:"UK English Female",flag:"gb",gender:"f",voiceIDs:[3,5,1,6,7,171,201,8]},{name:"UK English Male",flag:"gb",gender:"m",voiceIDs:[0,4,2,75,202,159,6,7]},


To this:

/*
 ResponsiveVoice JS v1.4.7

 (c) 2015 LearnBrite

 License: http://responsivevoice.org/license
*/
if("undefined"!=typeof responsiveVoice)console.log("ResponsiveVoice already loaded"),console.log(responsiveVoice);else var ResponsiveVoice=function(){var a=this;a.version="1.4.7";console.log("ResponsiveVoice r"+a.version);a.responsivevoices=[{name:"UK English Female",flag:"gb",gender:"f",voiceIDs:[3,5,1,6,7,171,201,8]},{name:"UK English Male",flag:"gb",gender:"m",voiceIDs:[0,4,2,75,202,159,6,7]},{name:"Australian Female",flag:"au",gender:"f",voiceIDs:[87,86,5,201,88]},
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
Post Reply