diff --git a/ipmd/static/ipmd/js/ipmdlib.js b/ipmd/static/ipmd/js/ipmdlib.js
index 71a91f5af596b08bd5c71d82119eb0a74b9cc3c1..052fcdad141eedbf98fe91c68f18ffa7e4075315 100644
--- a/ipmd/static/ipmd/js/ipmdlib.js
+++ b/ipmd/static/ipmd/js/ipmdlib.js
@@ -46,6 +46,12 @@ async function getWeatherDatasource(weatherDatasourceId)
     return await response.json();
 }
 
+async function getWeatherDatasources()
+{
+    const response = await fetch(ipmdWeatherApiURL + "rest/weatherdatasource/");
+    return await response.json();
+}
+
 function getWeatherStationList(weatherDatasource){
     geoJson = JSON.parse(weatherDatasource.spatial.geoJSON);
     let stationList = [];