The PHP Weathermap ‘plugin’ for Observium has a custom navbar include that allows quick selection of maps that have been created. Is this something that could be easily incorporated into LibreNMS?
I submitted this issue with the plugin creator (https://github.com/librenms-plugins/Weathermap ) and he suggested that I post it over here.
Thanks!
https://github.com/librenms/librenms/issues/2656
Hi
Has any work come from this I have one 20 maps and this would help alot.
No, we would need to someone from community to contribute code for this.
Hello
I am thinking of a scrollable menu that would list all Weathmaps under the “Plugins/Weathermaps” menu.
For this to happen, we need first to have a PR approved :
librenms:master
← PipoCanaja:Webui-SubmenuInPluginMenu
opened 03:52PM - 24 May 18 UTC
Hello
The "scrollable-menu" class appears incompatible with nested submenus. … Removing it for Plugin submenu would allow a plugin to use SubMenus itself.
Use case: WeatherMap would list in a submenu all the weathermaps defined, allowing a quick access.
The patch for weathermap would come if this one is accepted.
Bye
PipoCanaja
DO NOT DELETE THIS TEXT
#### Please note
> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.
- [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
Then if it is accepted, I will submit a PR for Weathermap plugin itself.
Bye
1 Like
Hello
I have a new version of Weathermap plugin with a submenu including all the maps. Code is still a little bit dirty but if somebody (with a lot of maps) would like to test …
PipoCanaja
Hi
I have 5 maps is that enough?
Thanks
Hello
You can have a look at the code here and use it:
https://github.com/PipoCanaja/Weathermap/tree/WeatherMap_Submenu_for_Map_lists
Be carefull, your LibreNMS code should be recent enough to have this patch in :
librenms:master
← PipoCanaja:Webui-SubmenuInPluginMenu
opened 03:52PM - 24 May 18 UTC
Hello
The "scrollable-menu" class appears incompatible with nested submenus. … Removing it for Plugin submenu would allow a plugin to use SubMenus itself.
Use case: WeatherMap would list in a submenu all the weathermaps defined, allowing a quick access.
The patch for weathermap would come if this one is accepted.
Bye
PipoCanaja
DO NOT DELETE THIS TEXT
#### Please note
> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.
- [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
Let me know how it goes. If we can have a few more testers before I send a pull request for the plugin itself.
Bye
2 Likes
You should submit that as a PR.
1 Like
I will. I would like to have another “it works” before