MB STUDIO can announce the current weather conditions such as the current temperature, the minimum and maximum temperatures, humidity. Weather can be read by a synthetic voice or by pre-recorded human voices. Weather data come from the site: https://www.weatherapi.com/weather/

To receive weather data you must first of all go to the MBStudio\Configuration\Options\Weather menu and define the desired cities CONFIGURATION - OPTIONS - WEATHER


MB STUDIO offers the following wildcards can be used to obtain the values weather:

  • %weather% indicates the condition of the present time in the language in which Windows is set (eg: clear, cloudy, etc). The full list of the conditions of the time in English is available here or for all languages here
  • %weathercode% indicates the condition at present time in code instead of text. This is useful if you want to prepare prerecorder human voice files, one file for each weather condition. So exemple according to this list https://www.weatherapi.com/docs/weather_conditions.csv if the weather is "sunny" MB STUDIO will play the file 113.mp3
  • %tempnow% indicates the current temperature
  • %feelslike% indicates the feelslike current temperature
  • %tempmax% indicates the maximum temperature
  • %tempmin% indicates the minimum temperature
  • %humi% indicates humidity percentage%
  • %wind% indicates the speed of wind

These wildcards give city values with index 0.

If you want to use multiple city values simply add the index number to the wildcard as in this example:

%tempnow1% indicates the current temperature of the city with index 1

%tempnow2% indicates the current temperature of the city with index 2

%humi4% indicates the humidity as a percentage of the city with index 4

etc etc


Now that MB STUDIO consistently receives weather data we can finally announce them. As said earlier announcements can be made by a synthetic voice or through pre-recorded human voices. The synthetic voices can read a short text written directly in the entry box, or they can read an entire text file; within the text, you can call the weather data through wildcards

Let's now some examples:
the current weather condition is %weather% <- this sentence will say the actual weather condition (Sunny, Cloudy, etc)
the current temperature is %tempnow% degrees! <- This sentence will say the current temperature
the minimum temperature was %tempmin% degrees! <- This sentence will say the minimum temperature
the maximum temperature was %tempmax% degrees! <- This sentence will say the maximum temperature
humidity is the % humi% percent! <- This sentence will announce humidity

Here is a complete example:

It is %hh% and %nn% minutes!. Let's look at the weather observations recorded a few moments ago. The weather situation is %weather%. The current temperature is %tempnow% degrees and the perceived temperature is %feelslike% degrees, with a humidity of %humi% percent. The maximum temperature today is %tempmax% degrees, while the minimum is %tempmin% degrees. That's all for now, the next weather update will be aired in about an hour!

In general you should write all the text with Notepad and then save it to a text file that will load in the panel "Synthetic Voices":

 


If you prefer to use a prerecorder human voice you must prepare all audio files according to this scheme:

  • Temperature-10 to Temperature40 <--- these are 50 different files, one for each different temperature, each file will say "13 degrees!"," 14 degrees! ", etc etc ...
  • TempeartureNow <---- this file should say "The current temperature is "
  • TempeartureFeelsLike <---- this file should say "The current FeelsLike temperature is "
  • TemperatureMax  <--- this file should say "The maximum temperature recorded so far has been of "
  • TemperatureMin <--- this file should say "The maximum temperature recorded so far has been of "
  • Humidity0 to Humidity100 <--- 101 files that should say "the humidity level is xx percent"
  • WeatherCode113 to WeatherCode395 <---- 48 files that should say the current weather condition according to this list

and then will just realize one minilist of this type:

  • Presentation meteo.mp3 (this is a presentation file)
  • %weathercode%.mp3
  • Temperaturenow.mp3
  • Temperature%tempnow%.mp3 (current temperature)
  • TempeartureFeelsLike.mp3
  • Temperature%FeelsLike%.mp3 (FeelsLike temperature)
  • TemperatureMax.mp3
  • Temperature%tempmax%.mp3 (maximum temperature)
  • TemperatureMin.mp3
  • Temperature%tempmin%.mp3 (minimum temperature)
  • Humidity%humi%.mp3 (humidity 'current)
  • Greetings.mp3