mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 00:36:25 +00:00
contrib widget_automowerconnect.j: fixed FTUI V2 and FHEM on different server.
git-svn-id: https://svn.fhem.de/fhem/trunk@29542 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
509fcecf09
commit
ff6c573ca7
@ -4,7 +4,7 @@ widget_automowerconnect.js Widget für TabletUI Version 2
|
||||
Beispiel zum Laden des Moduls 98_AMConnectTools.pm für die FHEM Befehlszeile, siehe auch: https://wiki.fhem.de/wiki/Update#Einzelne_Dateien_aus_dem_SVN_holen
|
||||
|
||||
{ Svn_GetFile('contrib/AutomowerConnect/98_AMConnectTools.pm', 'FHEM/98_AMConnectTools.pm') }
|
||||
|
||||
{ Svn_GetFile('contrib/AutomowerConnect/widget_automowerconnect.js', 'www/tablet/widget_automowerconnect.js') }
|
||||
|
||||
Zum Testen, falls vorhanden:
|
||||
|
||||
|
@ -16,7 +16,9 @@ var Modul_automowerconnect = function () {
|
||||
|
||||
ftui.sendFhemCommand(cmd)
|
||||
.done(function (data, dev) {
|
||||
elem.html(data);
|
||||
var mapurl = elem.data('jsonurl').replace("json", "map");
|
||||
var datanew = data.replace( "background-image: url('/fhem/AutomowerConnect/"+elem.data('device')+"/map", "background-image: url('"+mapurl );
|
||||
elem.html(datanew);
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user