Try this
cd /opt/librenms/html/plugins
mv Weathermap Weathermap-bad
git clone https://github.com/librenms-plugins/Weathermap.git
mv /opt/librenms/html/plugins/Weathermap-bad/configs/*.conf /opt/librenms/html/plugins/Weathermap/configs/
chown -R www-data /opt/librenms/html/plugins/Weathermap/configs