fhem-tablet-ui icon indicating copy to clipboard operation
fhem-tablet-ui copied to clipboard

new Widget "widget_verkehrsinfo.js"

Open paul179 opened this issue 8 years ago • 4 comments

please add new Widget for Modul Verkehrsinfo

paul179 avatar Dec 24 '16 09:12 paul179

Thanks for your contribution. But a few things have to be changed, before I can merge this new widget.

  • it is always a bad idea to use a sleep function for wasting time. See javascripts setTimeout function to postpone calls. But is it really necessary?
  • update function : dev can not be "*". Why this if part?

knowthelist avatar Dec 24 '16 10:12 knowthelist

Hello,

•it is always a bad idea to use a sleep function for wasting time. See javascripts setTimeout function to postpone calls. But is it really necessary?

please see https://forum.fhem.de/index.php/topic,55118.msg544555.html#msg544555 and I have this delete

•update function : dev can not be "*". Why this if part? for Problem see link I have this copy from widget calview, I have this changed.

paul179 avatar Dec 24 '16 11:12 paul179

Normally a delay is not necessary. There must be a conceptual failure. Via long poll for each reading updated in FHEM, the update function get called.

knowthelist avatar Dec 24 '16 15:12 knowthelist

I understand what I should do? I have the Code changed!!

paul179 avatar Dec 24 '16 16:12 paul179