I would like to add in QGIS real time weather data.
I've added a WMS weather data layer for precipitation to the QGIS map, as follows:
First, the parameters for the service:
service = 'crs=EPSG:900913&dpiMode=7&featureCount=10&format=image/png&layers=precipitation&styles=&url=http://wms.openweathermap.org/service'
Next, create the raster layer, specifying WMS as the type:
rlayer = QgsRasterLayer(service, "precip", "wms")
Finally, add the precipitation layer to the map:
the example didn't show any error in the code and no data was added to the weather layer either, I'm not sure why?