mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
SolarForecast: contrib FTUI widgets
git-svn-id: https://svn.fhem.de/fhem/trunk@28262 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b99b083220
commit
eadbcc5991
@ -20,7 +20,7 @@
|
||||
*
|
||||
*
|
||||
* Versions:
|
||||
*
|
||||
* 1.0.1 07.12.2023 get=state,html=both as default, compatibility to SolarForecast V.1.5.1 DS_Starter
|
||||
* 1.0.0 30.11.2023 initial version stefanru
|
||||
*/
|
||||
|
||||
@ -43,8 +43,8 @@ function depends_forecast (){
|
||||
var Modul_forecast = function () {
|
||||
|
||||
function init_attr(elem) {
|
||||
elem.initData('get', 'parentState');
|
||||
elem.initData('html', elem.data('html'));
|
||||
elem.initData('get', 'state');
|
||||
elem.initData('html', 'both');
|
||||
elem.initData('max-update', 2);
|
||||
|
||||
me.addReading(elem, 'get');
|
||||
@ -72,7 +72,7 @@ var Modul_forecast = function () {
|
||||
if (lUpdate === null) {
|
||||
//console.log('forecast DO update' );
|
||||
elem.data('lastUpdate', dNow);
|
||||
var cmd = [ 'get', elem.data('device'), "html " + elem.data('html') ].join(' ');
|
||||
var cmd = [ 'get', elem.data('device'), 'ftui ' + elem.data('html') ].join(' ');
|
||||
ftui.log('forecast update', dev, ' - ', cmd);
|
||||
|
||||
ftui.sendFhemCommand(cmd)
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
/* Versionen:
|
||||
*
|
||||
* 1.0.1 07.12.2023 get=state as default, compatibility to SolarForecast V.1.5.1
|
||||
* 1.0.0 02.07.2019 initial version
|
||||
*/
|
||||
|
||||
@ -39,7 +40,7 @@ function depends_smaportalspg (){
|
||||
var Modul_smaportalspg = function () {
|
||||
|
||||
function init_attr(elem) {
|
||||
elem.initData('get', 'parentState');
|
||||
elem.initData('get', 'state');
|
||||
elem.initData('max-update', 2);
|
||||
|
||||
me.addReading(elem, 'get');
|
||||
@ -68,7 +69,7 @@ var Modul_smaportalspg = function () {
|
||||
//console.log('smaportalspg DO update' );
|
||||
elem.data('lastUpdate', dNow);
|
||||
|
||||
var cmd = [ 'get', elem.data('device'), "ftui" ].join(' ');
|
||||
var cmd = [ 'get', elem.data('device'), 'ftui' ].join(' ');
|
||||
ftui.log('smaportalspg update', dev, ' - ', cmd);
|
||||
|
||||
ftui.sendFhemCommand(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user