Forum Discussion
Stuart_Weenig
Mastermind
7 months agoYou can borrow from here to get kick started. This script takes api creds, a dashboard id, and a widget id as arguments. It pulls the device list from LM, creates a table with device name, IP, and ID and posts it to the widget. The resulting table is sortable.
Modify lines 103-105 to setup your table headers. Modify line 110 to modify the row that gets output. You can do any call you want to push into the table. This one uses .get_device_list() and combines all the properties as top-level members of the device object.
Related Content
- 2 months ago