How to get the map canvas CRS in EPSG code?
In QGIS3 API changed:
iface.mapCanvas().mapSettings().destinationCrs().authid()
'EPSG:3045'
Try:
canvas.mapRenderer().destinationCrs().authid()
That will return the map canvases' current crs as an epsg code