############################################################################### # # $Id$ # # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # any later version. # # The GNU General Public License can be found at # http://www.gnu.org/copyleft/gpl.html. # A copy is found in the textfile GPL.txt and important notices to the license # from the author is found in LICENSE.txt distributed with these scripts. # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # # # Husqvarnas Open API is used # based on some ideas from HusqvarnaAutomower and BOTVAC module # ################################################################################ package FHEM::AutomowerConnect; our $cvsid = '$Id$'; use strict; use warnings; use POSIX; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt use GPUtils qw(:all); GP_Export( qw( Initialize ) ); require FHEM::Devices::AMConnect::Common; ############################################################## sub Initialize() { my ($hash) = @_; $hash->{DefFn} = \&FHEM::Devices::AMConnect::Common::Define; $hash->{GetFn} = \&FHEM::Devices::AMConnect::Common::Get; $hash->{UndefFn} = \&FHEM::Devices::AMConnect::Common::Undefine; $hash->{DeleteFn} = \&FHEM::Devices::AMConnect::Common::Delete; $hash->{ShutdownFn} = \&FHEM::Devices::AMConnect::Common::Shutdown; $hash->{RenameFn} = \&FHEM::Devices::AMConnect::Common::Rename; $hash->{FW_detailFn} = \&FHEM::Devices::AMConnect::Common::FW_detailFn; # $hash->{FW_summaryFn} = \&FHEM::Devices::AMConnect::Common::FW_summaryFn; $hash->{ReadFn} = \&FHEM::Devices::AMConnect::Common::wsRead; $hash->{ReadyFn} = \&FHEM::Devices::AMConnect::Common::wsReady; $hash->{SetFn} = \&FHEM::Devices::AMConnect::Common::Set; $hash->{AttrFn} = \&FHEM::Devices::AMConnect::Common::Attr; $hash->{AttrList} = "disable:1,0 " . "debug:1,0 " . "disabledForIntervals " . "mapImagePath " . "mapImageWidthHeight " . "mapImageCoordinatesToRegister:textField-long " . "mapImageCoordinatesUTM:textField-long " . "mapImageZoom " . "mapBackgroundColor " . "mapDesignAttributes:textField-long " . "mapZones:textField-long " . "showMap:1,0 " . "chargingStationCoordinates " . "chargingStationImagePosition:left,top,right,bottom,center " . "scaleToMeterXY " . "mowerCuttingWidth " . "mowerPanel:textField-long,85 " . "mowerSchedule:textField-long " . "mowingAreaLimits:textField-long " . "mowingAreaHull:textField-long " . "propertyLimits:textField-long " . "weekdaysToResetWayPoints " . "numberOfWayPointsToDisplay " . "addPollingMinInterval " . "addPositionPolling:1,0 " . $::readingFnAttributes; $::data{FWEXT}{AutomowerConnect}{SCRIPT} = 'automowerconnect.js'; $::data{FWEXT}{AutomowerConnectA}{SCRIPT} = '/automowerconnect/hull.js'; return undef; } ############################################################## 1; __END__ =pod =item device =item summary Module to control Husqvarnas robotic lawn mowers with Connect Module (SIM) =item summary_DE Modul zur Steuerung von Husqvarnas Mähroboter mit Connect Modul (SIM) =begin html

AutomowerConnect

=end html =begin html_DE

AutomowerConnect

=end html_DE