knowthelist / fhem-tablet-ui

UI builder framework for FHEM
MIT License
148 stars 84 forks source link

new Widget "widget_verkehrsinfo.js" #185

Open paul179 opened 7 years ago

paul179 commented 7 years ago

please add new Widget for Modul Verkehrsinfo

knowthelist commented 7 years ago

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

paul179 commented 7 years ago

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.

knowthelist commented 7 years ago

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.

paul179 commented 7 years ago

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