diff --git a/fhem/CHANGED b/fhem/CHANGED
index 6c14ff952..a1d6f7d66 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -1,5 +1,8 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
+ - updated: 77_UWZ: New Minor Release 1.4 multi languarge support, more Maps,
+ Routine for search AreaID
+ - updated: 74_AMAD: transmissionERROR Reading only expertMode is set
- changed: 57_CALVIEW: value test, thx klausw
- added: 98_DLNARenderer: Autodiscover, control and receive events from
DLNA MediaRenderer devices
diff --git a/fhem/FHEM/74_AMAD.pm b/fhem/FHEM/74_AMAD.pm
index 46cc1ba26..14f2118e3 100644
--- a/fhem/FHEM/74_AMAD.pm
+++ b/fhem/FHEM/74_AMAD.pm
@@ -37,7 +37,7 @@ use TcpServerUtils;
use Encode qw(encode);
-my $modulversion = "2.4.0";
+my $modulversion = "2.4.1";
my $flowsetversion = "2.4.0";
@@ -1164,7 +1164,7 @@ sub AMAD_CommBridge_Read($) {
elsif( !defined($device) ) {
- readingsSingleUpdate( $bhash, "transmitterERROR", $name." has no device name sends", 1 );
+ readingsSingleUpdate( $bhash, "transmitterERROR", $name." has no device name sends", 1 ) if( ReadingsVal( $bname, "expertMode", 0 ) eq "1" );
Log3 $name, 4, "AMAD ($name) - ERROR - no device name given. please check your global variable in automagic";
return;
}
@@ -1349,7 +1349,7 @@ sub AMAD_decrypt($) {
How to use AMAD?
-
install the "Automagic Premium" app from the Google Play store or use the test version from here
+
install the "Automagic Premium" app from the Google Play store.
install the flowset 74_AMADautomagicFlowset$VERSION.xml from the directory $INSTALLFHEM/FHEM/lib/ on your Android device and activate.
@@ -1505,7 +1505,7 @@ sub AMAD_decrypt($) {
Wie genau verwendet man nun AMAD?
-
man installiert die App "Automagic Premium" aus dem PlayStore oder die Testversion von hier
+
man installiert die App "Automagic Premium" aus dem PlayStore.
dann installiert man das Flowset 74_AMADautomagicFlowset$VERSION.xml aus dem Ordner $INSTALLFHEM/FHEM/lib/ auf dem Androidgerät und aktiviert die Flows.
';
+
+ return $ret;
+
+}
+
+
+#####################################
+sub UWZSearchAreaID($$) {
+ my ($lat,$lon) = @_;
+ my $url = "http://feed.alertspro.meteogroup.com/AlertsPro/AlertsProPollService.php?method=lookupCoord&lat=".$lat."&lon=".$lon;
+
+ my $agent = LWP::UserAgent->new( env_proxy => 1, keep_alive => 1, protocols_allowed => ['http'], timeout => 10 );
+ my $request = HTTP::Request->new( GET => $url );
+ my $response = $agent->request($request);
+ my $err_log = "Can't get $url -- " . $response->status_line unless( $response->is_success );
+
+ if ( $err_log ne "" ) {
+ print "Error|Error " . $response->status_line;
+ }
+ use JSON;
+ my @perl_scalar = @{JSON->new->utf8->decode($response->content)};
+
+
+ my $AreaType = $perl_scalar[0]->{'AREA_TYPE'};
+ my $CC = substr $perl_scalar[0]->{'AREA_ID'}, 3, 2;
+ my $AreaID = substr $perl_scalar[0]->{'AREA_ID'}, 5, 5;
+
+ if ( $AreaType eq "UWZ" ) {
+ my $ret = 'Please use the following statement to define Unwetterzentrale for your location:
';
+ $ret .= '
';
+ $ret .= '
';
+ $ret .= '
';
+ $ret .= "
define Unwetterzentrale UWZ $CC $AreaID 3600
";
+ $ret .= '
';
+ $ret .= '
';
+ $ret .= '
';
+
+ $ret .= ' ';
+ $ret .= 'You can also use weblinks to add weathermaps. For a list of possible Weblinks see Commandref. For example to add the Europe Map use: ';
+
+ $ret .= '
[CountryCode]
Possible values: DE, AT, CH, UK, ...
- (for other countries than germany or unitedkingdom see fhem-forum)
+ (for other countries than germany use SEARCH for CountryCode to start device in search mode)
-
[postalcode]
+
[AreaID]
- The postalcode for the city to get warnings for.
+ For Germany you can use the postalcode, other countries use SEARCH for CountryCode to start device in search mode.
[INTERVAL]
@@ -889,6 +1283,26 @@ sub UWZAsHtmlKarteLand($$) {
Defines the refresh interval. The interval is defined in seconds, so an interval of 3600 means that every hour a refresh will be triggered onetimes.
+
+
+ Example Search-Mode:
+
+
+ define Unwetterzentrale UWZ SEARCH
+
+
+ now get the AreaID for your location (example shows london):
+
+
+ get Unwetterzentrale SearchAreaID London
+
+
+ now redefine your device with the outputted CountryCode and AreaID.
+
+
+
+
+
@@ -896,47 +1310,47 @@ sub UWZAsHtmlKarteLand($$) {
Get
-
get <name> Bodenfrost
+
get <name> soil-frost
give info about current soil frost (active|inactive).
-
get <name> Extremfrost
+
get <name> extremfrost
give info about current frost (active|inactive).
-
get <name> Gewitter
+
get <name> thunderstorm
give info about current thunderstorm (active|inactive).
-
get <name> Glaette
+
get <name> glaze
give info about current glaze (active|inactive).
-
get <name> Glatteisregen
+
get <name> glazed-rain
give info about current freezing rain (active|inactive).
-
get <name> Hagel
+
get <name> hail
give info about current hail (active|inactive).
-
get <name> Hitze
+
get <name> heat
give info about current heat (active|inactive).
-
get <name> Regen
+
get <name> rain
give info about current rain (active|inactive).
-
get <name> Schneefall
+
get <name> snow
give info about current snow (active|inactive).
-
get <name> Sturm
+
get <name> storm
give info about current storm (active|inactive).
-
get <name> Waldbrand
+
get <name> forest-fire
give info about current forest fire (active|inactive).
@@ -945,6 +1359,20 @@ sub UWZAsHtmlKarteLand($$) {
+ Get (Search-Mode)
+
+
+
get <name> SearchAreaID <city>
+
+ Get AreaID coresponnding to entered location.
+
+
+
+
+
+
+
+
Set
@@ -960,11 +1388,6 @@ sub UWZAsHtmlKarteLand($$) {
Attributes
-
CountryCode
-
- Set country code for text messages (None|UK).
-
-
download
Download maps during update (0|1).
@@ -982,7 +1405,7 @@ sub UWZAsHtmlKarteLand($$) {
humanreadable
- Add additional Readings Warn_?_Start_Date, Warn_?_Start_Time, Warn_?_End_Date and Warn_?_End_Time containing the coresponding timetamp in a human readable manner. (0|1).
+ Add additional Readings Warn_?_Start_Date, Warn_?_Start_Time, Warn_?_End_Date and Warn_?_End_Time containing the coresponding timetamp in a human readable manner. Additionally Warn_?_uwzLevel_Str and Warn_?_Type_Str will be added to device readings (0|1).
@@ -1007,6 +1430,7 @@ sub UWZAsHtmlKarteLand($$) {
Warn_0_Severity - Severity of thunderstorm (0 no thunderstorm, 4, 7, 11, .. heavy thunderstorm)
Warn_0_Hail - warning contains hail
Warn_0_Type - kind of thunderstorm
+
Warn_0_Type_Str - kind of thunderstorm (text)
1 - unknown
2 - storm
@@ -1020,7 +1444,8 @@ sub UWZAsHtmlKarteLand($$) {
10 - freezing rain
11 - soil frost
-
Warn_0_uwzLevel - Severity of thunderstorm (like Severity)
+
Warn_0_uwzLevel - Severity of thunderstorm (0-5)
+
Warn_0_uwzLevel_Str - Severity of thunderstorm (text)
Warn_0_levelName - Level Warn Name
Warn_0_ShortText - short warn text
Warn_0_LongText - detailed warn text
@@ -1033,7 +1458,7 @@ sub UWZAsHtmlKarteLand($$) {
- With the additional implemented functions UWZAsHtml, UWZAsHtmlLite, UWZAsHtmlFP and UWZAsHtmlKarteLand HTML-Code will be created to display warnings, using weblinks.
+ With the additional implemented functions UWZAsHtml, UWZAsHtmlLite, UWZAsHtmlFP, UWZAsHtmlKarteLand and UWZAsHtmlMovie HTML-Code will be created to display warnings and weathermovies, using weblinks.
Example:
@@ -1047,24 +1472,26 @@ sub UWZAsHtmlKarteLand($$) {
The second parameter should be one of:
+
europa
+
deutschland
deutschland-small
-
bayern
-
bremen
-
baden-wuerttemberg
-
brandenburg
-
berlin
-
hessen
niedersachsen
-
rheinland-pfalz
-
saarland
-
sachsen
-
sachsen-anhalt
-
thueringen
-
nordrhein-westfalen
-
mecklenburg-vorpommern
+
bremen
+
bayern
schleswig-holstein
hamburg
+
mecklenburg-vorpommern
+
sachsen
+
sachsen-anhalt
+
nordrhein-westfalen
+
thueringen
+
rheinland-pfalz
+
saarland
+
baden-wuerttemberg
+
hessen
+
brandenburg
+
berlin
oesterreich
burgenland
@@ -1076,9 +1503,101 @@ sub UWZAsHtmlKarteLand($$) {
@@ -1116,12 +1635,12 @@ sub UWZAsHtmlKarteLand($$) {
[Ländercode]
- Mögliche Werte: DE, AT, CH,...
- (für ander Länder als Deutschland werfen Sie einen Blick in das fhem-forum.
+ Mögliche Werte: DE, AT, CH, SEARCH, ...
+ (für ander Länder als Deutschland bitte den SEARCH Parameter nutzen um die AreaID zu ermitteln.)
-
[Postleitzahl]
+
[Postleitzahl/AreaID]
- Die Postleitzahl des Ortes für den Unwetterinformationen abgefragt werden sollen.
+ Die Postleitzahl/AreaID des Ortes für den Unwetterinformationen abgefragt werden sollen.
[INTERVAL]
@@ -1186,6 +1705,20 @@ sub UWZAsHtmlKarteLand($$) {
+ Get (Search-Mode)
+
+
+
get <name> SearchAreaID <gesuchte_stadt>
+
+ Gibt die AreaID zum eingegebenen Ort aus.
+
+
+
+
+
+
+
+
Set
@@ -1219,7 +1752,7 @@ sub UWZAsHtmlKarteLand($$) {
humanreadable
- Anzeige weiterer Readings Warn_?_Start_Date, Warn_?_Start_Time, Warn_?_End_Date und Warn_?_End_Time. Diese Readings enthalten aus dem Timestamp kalkulierte Datums/Zeit Angaben. (0|1)
+ Anzeige weiterer Readings Warn_?_Start_Date, Warn_?_Start_Time, Warn_?_End_Date, Warn_?_End_Time. Diese Readings enthalten aus dem Timestamp kalkulierte Datums/Zeit Angaben. Weiterhin werden folgende Readings aktivier: Warn_?_Type_Str und Warn_?_uwzLevel_Str welche den Unwettertyp als auch das Unwetter-Warn-Level als Text ausgeben. (0|1)
@@ -1243,6 +1776,7 @@ sub UWZAsHtmlKarteLand($$) {
Warn_0_Severity - Schwere des Unwetters (0 kein Unwetter, 12 massives Unwetter)
Warn_0_Hail - Hagelwarnung (1|0)
Warn_0_Type - Art des Unwetters
+
Warn_0_Type_Str - Art des Unwetters (text)
1 - unbekannt
2 - Sturm/Orkan
@@ -1256,7 +1790,8 @@ sub UWZAsHtmlKarteLand($$) {
10 - Glatteisregen
11 - Bodenfrost
-
Warn_0_uwzLevel - Schwere des Unwetters (wie Severity)
@@ -1269,7 +1804,7 @@ sub UWZAsHtmlKarteLand($$) {
- Über die Funktionen UWZAsHtml, UWZAsHtmlLite, UWZAsHtmlFP und UWZAsHtmlKarteLand wird HTML-Code zur Warnanzeige über weblinks erzeugt.
+ Über die Funktionen UWZAsHtml, UWZAsHtmlLite, UWZAsHtmlFP, UWZAsHtmlKarteLand, UWZAsHtmlMovie wird HTML-Code zur Warnanzeige und Wetterfilme über weblinks erzeugt.
Beispiele:
@@ -1281,26 +1816,28 @@ sub UWZAsHtmlKarteLand($$) {