Dear all,
I’m using LibreNMS in docker. I wanted to start using the included Weathermap plugin.
Plugin is enabled in docker-compose.yml
:
- "LIBRENMS_WEATHERMAP=true"
- "LIBRENMS_WEATHERMAP_SCHEDULE=*/5 * * * *"
Permissions seems correct on folder /opt/librenms/html/plugins/Weathermap
In logs, it seems that plugin is ran by cron:
PHP Deprecated: Implicit conversion from float 143.20000000000002 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/WeatherMap.functions.php on line 1886
PHP Deprecated: Implicit conversion from float 127.20000000000002 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 506
PHP Deprecated: Implicit conversion from float 145.20000000000002 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/WeatherMap.functions.php on line 1886
PHP Deprecated: Implicit conversion from float 162.8 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/WeatherMap.functions.php on line 1886
PHP Deprecated: Implicit conversion from float 146.8 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 506
PHP Deprecated: Implicit conversion from float 164.8 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/WeatherMap.functions.php on line 1886
PHP Deprecated: Implicit conversion from float 182.4 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/WeatherMap.functions.php on line 1886
PHP Deprecated: Implicit conversion from float 166.4 to int loses precision in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 506
PHP Deprecated: Function strftime() is deprecated in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 1720
PHP Deprecated: Function strftime() is deprecated in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 1725
Feature Statistics:
GLOBAL-BACKGROUND\s+(.*) => 0
GLOBAL-HTMLOUTPUTFILE\s+(.*) => 0
GLOBAL-HTMLSTYLESHEET\s+(.*) => 0
GLOBAL-IMAGEOUTPUTFILE\s+(.*) => 0
GLOBAL-DATAOUTPUTFILE\s+(.*) => 0
GLOBAL-IMAGEURI\s+(.*) => 0
GLOBAL-TITLE\s+(.*) => 0
GLOBAL-HTMLSTYLE\s+(static|overlib) => 1
GLOBAL-KEYFONT\s+(\d+) => 0
GLOBAL-TITLEFONT\s+(\d+) => 0
GLOBAL-TIMEFONT\s+(\d+) => 0
GLOBAL-TITLEPOS\s+(-?\d+)\s+(-?\d+) => 0
GLOBAL-TITLEPOS\s+(-?\d+)\s+(-?\d+)\s+(.*) => 0
GLOBAL-TIMEPOS\s+(-?\d+)\s+(-?\d+) => 0
GLOBAL-TIMEPOS\s+(-?\d+)\s+(-?\d+)\s+(.*) => 0
GLOBAL-MINTIMEPOS\s+(-?\d+)\s+(-?\d+) => 0
GLOBAL-MINTIMEPOS\s+(-?\d+)\s+(-?\d+)\s+(.*) => 0
GLOBAL-MAXTIMEPOS\s+(-?\d+)\s+(-?\d+) => 0
GLOBAL-MAXTIMEPOS\s+(-?\d+)\s+(-?\d+)\s+(.*) => 0
GLOBAL-WIDTH\s+(\d+) => 0
GLOBAL-HEIGHT\s+(\d+) => 0
NODE-(MAXVALUE)\s+(\d+\.?\d*[KMGT]?)\s+(\d+\.?\d*[KMGT]?) => 0
NODE-(MAXVALUE)\s+(\d+\.?\d*[KMGT]?) => 1
NODE-LABEL => 0
NODE-LABEL\s+(.*) => 3
NODE-LABELOFFSET\s+([-+]?\d+)\s+([-+]?\d+) => 0
NODE-LABELOFFSET\s+(C|NE|SE|NW|SW|N|S|E|W) => 0
NODE-LABELOFFSET\s+((C|NE|SE|NW|SW|N|S|E|W)\d+) => 0
NODE-LABELOFFSET\s+(-?\d+r\d+) => 0
NODE-LABELFONT\s+(\d+) => 0
NODE-LABELANGLE\s+(0|90|180|270) => 0
NODE-ICON\s+(\S+) => 3
NODE-ICON\s+(\d+)\s+(\d+)\s+(inpie|outpie|box|rbox|round|gauge|nink) => 0
NODE-ICON\s+(\d+)\s+(\d+)\s+(\S+) => 0
NODE-NOTES\s+(.*) => 0
NODE-INFOURL\s+(.*) => 2
NODE-OVERLIBCAPTION\s+(.*) => 0
NODE-ZORDER\s+([-+]?\d+) => 0
NODE-OVERLIBWIDTH\s+(\d+) => 0
NODE-OVERLIBHEIGHT\s+(\d+) => 0
NODE-POSITION\s+([-+]?\d+)\s+([-+]?\d+) => 3
NODE-POSITION\s+(\S+)\s+([-+]?\d+)\s+([-+]?\d+) => 0
NODE-POSITION\s+(\S+)\s+([-+]?\d+)r(\d+) => 0
LINK-(MAXVALUE|BANDWIDTH)\s+(\d+\.?\d*[KMGT]?)\s+(\d+\.?\d*[KMGT]?) => 0
LINK-(MAXVALUE|BANDWIDTH)\s+(\d+\.?\d*[KMGT]?) => 1
LINK-WIDTH\s+(\d+) => 0
LINK-HEIGHT\s+(\d+) => 0
LINK-WIDTH\s+(\d+\.\d+) => 0
LINK-ARROWSTYLE\s+(classic|compact) => 0
LINK-VIASTYLE\s+(curved|angled) => 0
LINK-INCOMMENT\s+(.*) => 0
LINK-OUTCOMMENT\s+(.*) => 0
LINK-BWFONT\s+(\d+) => 0
LINK-COMMENTFONT\s+(\d+) => 0
LINK-COMMENTSTYLE\s+(edge|center) => 0
LINK-DUPLEX\s+(full|half) => 0
LINK-BWSTYLE\s+(classic|angled) => 0
LINK-LINKSTYLE\s+(twoway|oneway) => 0
LINK-BWLABELPOS\s+(\d+)\s(\d+) => 0
LINK-COMMENTPOS\s+(\d+)\s(\d+) => 0
LINK-USESCALE\s+([A-Za-z][A-Za-z0-9_]*) => 0
LINK-USESCALE\s+([A-Za-z][A-Za-z0-9_]*)\s+(absolute|percent) => 0
LINK-SPLITPOS\s+(\d+) => 0
LINK-OUTBWFORMAT\s+(.*) => 0
LINK-INBWFORMAT\s+(.*) => 0
LINK-NOTES\s+(.*) => 0
LINK-INNOTES\s+(.*) => 0
LINK-OUTNOTES\s+(.*) => 0
LINK-INFOURL\s+(.*) => 2
LINK-ININFOURL\s+(.*) => 0
LINK-OUTINFOURL\s+(.*) => 0
LINK-OVERLIBCAPTION\s+(.*) => 0
LINK-INOVERLIBCAPTION\s+(.*) => 0
LINK-OUTOVERLIBCAPTION\s+(.*) => 0
LINK-ZORDER\s+([-+]?\d+) => 0
LINK-OVERLIBWIDTH\s+(\d+) => 0
LINK-OVERLIBHEIGHT\s+(\d+) => 0
However in folder /opt/librenms/html/plugins/Weathermap/output
, there is no generated file.
In /opt/librenms/html/plugins/Weathermap
folder there is a file named weathermap.png
which seems to be my one and only map, but I don’t know why it is there. That file is updated every 5 min.
Browsing in librenms to plugins->Weathermap->selecting conf, just says that page is not found (404)emphasized text