OpenWeatherMap Module
As of March 1, 2021, Yahoo is ending free API access (details on the website). To keep your projects working with free access, you must replace the script in the Yahoo Weather module with a new script that works with OpenWeatherMap. Detailed instructions for integrating the script into the module are available here.
Features:
- Retrieve the weather for 5 days;
- Display current temperature, wind speed, atmospheric pressure, and other readings.
- Add and save cities;
- Quickly switch between cities;
- Display the appropriate weather icon.
Required license:

To start using the weather module for OpenWeatherMap, download it from our website:
The archive contains two module variants, for iPhone and iPad. They differ in resolution and are adapted for smartphones and tablets.
To run the module on another device (Android, Mac), you need to adapt it.
Working with the module
To see the module in operation, run the OpenWeatherMap module in the Emulator on a PC, on a tablet, or on a smartphone. You do not need to configure or edit the module in iRidi Studio. Remember that the module requires this license: AV & Custom Systems.
On first launch, the weather for London is displayed. To select your city, open Settings and enter your ZIP code or city name in the window that appears.

If the ZIP code is incorrect, the following notification appears: City Not Found!
All added cities are saved automatically and are available in the drop-down list opened by clicking the city name button:

The next time you launch the module, it displays the weather for the last selected city.
To close the weather page, click this button:
Configuring the module
- To add the module to a project, drag the module tab onto your project tab:
.png)
- Confirm merging the projects.
.png)
- Double-click the "OpenWatherWidget_1" script with the left mouse button to open it in the script editor. Enter your key from the openweather website into the OPENWEATHER_KEY variable on the first line of the script.

To do this:
3.1. Sign up on the OpenWeatherMap website. After signing up, you will receive an email to confirm your account. Confirm it.
3.2. Follow this link. Your free keys are stored here, and you can generate new keys.
It is recommended to generate a separate key for each new object, because the free API supports 1000 requests per day per key.
- Start the project.
To display the weather on different project pages, open the module's Weather_FAQ page in iRidi Studio and copy the button
Add this button to every page that should open the weather page. The button is already linked to the module page, so no additional setup is required.
Adapting to devices with a different screen resolution
For the module to display correctly on any control panel, change its screen resolution using iRidi Studio.
To do this:
-
Open the OpenWeatherMap module that most closely matches your requirements in iRidi Studio. For example, to adapt it for an Android smartphone, use the iPhone module. For a tablet, use the iPad module.
-
Click
Project properties
,
to open the project properties.
-
Find
Target DeviceunderGeneraland select the device on which you intend to use the module from the drop-down list. If your device is not listed, selectCustomand enter the required resolution inLandscape WidthandLandscape Height. -
Click
Save.
Editing rules
Not allowed
- change or delete items on pages and popups
- change page and popup names
- change item names
- delete script files from the project
- change the Type of graphical items
- delete graphical item States
- add the module to your project more than once
Allowed
- change the module's screen resolution to suit your project
- change item appearance settings:
- state colors and icons
- text in text fields
- opacity and other parameters on the States tab