I followed the instructions but I get "Failed to load widget" showing in the widget frame.
rows.push([this.translations['t_int_temp'], this.data['status']['ITEMP']['value']]);
Failed to load content for widget: Apcupsd, Error:TypeError: undefined is not an object (evaluating 'this.data['status']['ITEMP']['value']')
The culprit was this line in my case:Code: [Select]rows.push([this.translations['t_int_temp'], this.data['status']['ITEMP']['value']]);Apcupsd status page does not report the ITEMP metric, which leads to js error.I've simply commented the line out and now the widget works perfectly fine!
You can try to determine the culprit in your case by opening dev console
QuoteYou can try to determine the culprit in your case by opening dev consoleBasic question: can I look at the dev console via SSH, or do I need to use the serial console?
Remove both widgets from dashboard and save. Remove manual files created from disk. Add widget. Done.Cheers,Franco
The blank widget can be resized and moved but it does not show the normal delete button so I can't get rid of it.
For the blank widget to vanish you have to press "Restore default layout", since the name of the widget has been saved inside the config.xml of the firewall.
Hmm, it would be beneficial of "bad" widgets show a working close button to get rid of them? At least that's what I thought it would do. Cheers,Franco
<div class="grid-stack-item size-to-content ui-resizable-autohide" gs-x="2" gs-y="532" gs-w="2" gs-h="307" gs-id="Apcupsd"> <div class="grid-stack-item-content">
<div id="close-handle-interfacestatistics" class="close-handle"> <i class="fa fa-times fa-xs"></i> </div>