mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
59_WUup: add Meta support
git-svn-id: https://svn.fhem.de/fhem/trunk@19781 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2bfe4f58f5
commit
9b1f69228f
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 59_WUup: add Meta support
|
||||||
- new: 10_FS10: New module for controling FS10 devices
|
- new: 10_FS10: New module for controling FS10 devices
|
||||||
- change: 59_WUup: replaced link to API documentation
|
- change: 59_WUup: replaced link to API documentation
|
||||||
- feature: 77_UWZ: change to packages, add Meta Support
|
- feature: 77_UWZ: change to packages, add Meta Support
|
||||||
|
@ -31,6 +31,7 @@ use warnings;
|
|||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
use HttpUtils;
|
use HttpUtils;
|
||||||
use UConv;
|
use UConv;
|
||||||
|
use FHEM::Meta;
|
||||||
|
|
||||||
my $version = "0.9.10";
|
my $version = "0.9.10";
|
||||||
|
|
||||||
@ -70,10 +71,15 @@ sub WUup_Initialize($) {
|
|||||||
. "wuwindspdmph_avg2m wuwindspeedmph wuAqPM2.5 wuAqPM10 "
|
. "wuwindspdmph_avg2m wuwindspeedmph wuAqPM2.5 wuAqPM10 "
|
||||||
. $readingFnAttributes;
|
. $readingFnAttributes;
|
||||||
$hash->{VERSION} = $version;
|
$hash->{VERSION} = $version;
|
||||||
|
|
||||||
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
sub WUup_Define($$$) {
|
sub WUup_Define($$$) {
|
||||||
my ( $hash, $def ) = @_;
|
my ( $hash, $def ) = @_;
|
||||||
|
|
||||||
|
return $@ unless ( FHEM::Meta::SetInternals($hash) );
|
||||||
|
|
||||||
my @a = split( "[ \t][ \t]*", $def );
|
my @a = split( "[ \t][ \t]*", $def );
|
||||||
|
|
||||||
return "syntax: define <name> WUup <stationID> <password>"
|
return "syntax: define <name> WUup <stationID> <password>"
|
||||||
@ -370,20 +376,25 @@ sub WUup_receive($) {
|
|||||||
# 2018-04-13 added AqPM2.5 and AqPM10
|
# 2018-04-13 added AqPM2.5 and AqPM10
|
||||||
# 2018-08-15 added attribute unit_solarradiation
|
# 2018-08-15 added attribute unit_solarradiation
|
||||||
# 2019-07-04 replaced link to API documentation
|
# 2019-07-04 replaced link to API documentation
|
||||||
|
# 2019-07-05 add Meta support
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
|
=encoding utf8
|
||||||
|
|
||||||
=item helper
|
=item helper
|
||||||
=item summary sends weather data to Weather Underground
|
=item summary sends weather data to Weather Underground
|
||||||
=item summary_DE sendet Wetterdaten zu Weather Underground
|
=item summary_DE sendet Wetterdaten zu Weather Underground
|
||||||
|
|
||||||
=begin html
|
=begin html
|
||||||
|
|
||||||
<a name="WUup"></a>
|
<a name="WUup" id="WUup"></a>
|
||||||
<h3>WUup</h3>
|
<h3>WUup</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<a name="WUupdefine"></a>
|
<a name="WUupdefine" id="WUupdefine"></a>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
@ -397,14 +408,14 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupset"></a>
|
<a name="WUupset" id="WUupset"></a>
|
||||||
<b>Set-Commands</b><br/>
|
<b>Set-Commands</b><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>update</b> - send data to Weather Underground</li>
|
<li><b>update</b> - send data to Weather Underground</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupget"></a>
|
<a name="WUupget" id="WUupget"></a>
|
||||||
<b>Get-Commands</b><br/>
|
<b>Get-Commands</b><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<br/>
|
<br/>
|
||||||
@ -412,7 +423,7 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupattr"></a>
|
<a name="WUupattr" id="WUupattr"></a>
|
||||||
<b>Attributes</b><br/><br/>
|
<b>Attributes</b><br/><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><a href="#readingFnAttributes">readingFnAttributes</a></b></li>
|
<li><b><a href="#readingFnAttributes">readingFnAttributes</a></b></li>
|
||||||
@ -481,13 +492,14 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html
|
=end html
|
||||||
|
|
||||||
=begin html_DE
|
=begin html_DE
|
||||||
|
|
||||||
<a name="WUup"></a>
|
<a name="WUup" id="WUup"></a>
|
||||||
<h3>WUup</h3>
|
<h3>WUup</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<a name="WUupdefine"></a>
|
<a name="WUupdefine" id="WUupdefine"></a>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
@ -500,14 +512,14 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupset"></a>
|
<a name="WUupset" id="WUupset"></a>
|
||||||
<b>Set-Befehle</b><br/>
|
<b>Set-Befehle</b><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>update</b> - sende Daten an Weather Underground</li>
|
<li><b>update</b> - sende Daten an Weather Underground</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupget"></a>
|
<a name="WUupget" id="WUupget"></a>
|
||||||
<b>Get-Befehle</b><br/>
|
<b>Get-Befehle</b><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<br/>
|
<br/>
|
||||||
@ -515,7 +527,7 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="WUupattr"></a>
|
<a name="WUupattr" id="WUupattr"></a>
|
||||||
<b>Attribute</b><br/><br/>
|
<b>Attribute</b><br/><br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><a href="#readingFnAttributes">readingFnAttributes</a></b></li>
|
<li><b><a href="#readingFnAttributes">readingFnAttributes</a></b></li>
|
||||||
@ -584,4 +596,58 @@ sub WUup_receive($) {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
|
||||||
|
=for :application/json;q=META.json 59_WUup.pm
|
||||||
|
{
|
||||||
|
"abstract": "sends weather data to Weather Underground",
|
||||||
|
"description": "This module provides connection to Weather Underground to send data from your own weather station.",
|
||||||
|
"x_lang": {
|
||||||
|
"de": {
|
||||||
|
"abstract": "sendet Wetterdaten zu Weather Underground",
|
||||||
|
"description": "Dieses Modul stellt eine Verbindung zu Weather Underground her, um Daten einer eigenen Wetterstation zu versenden"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": [
|
||||||
|
"gpl_2"
|
||||||
|
],
|
||||||
|
"version": "v0.9.11",
|
||||||
|
"release_status": "stable",
|
||||||
|
"author": [
|
||||||
|
"Manfred Winter <mahowi@gmail.com>"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer": [
|
||||||
|
"mahowi"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer_github": [
|
||||||
|
"mahowi"
|
||||||
|
],
|
||||||
|
"keywords": [
|
||||||
|
"fhem-mod",
|
||||||
|
"wunderground",
|
||||||
|
"pws",
|
||||||
|
"weather"
|
||||||
|
],
|
||||||
|
"prereqs": {
|
||||||
|
"runtime": {
|
||||||
|
"requires": {
|
||||||
|
"FHEM": 0,
|
||||||
|
"FHEM::Meta": 0,
|
||||||
|
"HttpUtils": 0,
|
||||||
|
"UConv": 0,
|
||||||
|
"Time::HiRes": 0,
|
||||||
|
"perl": 5.014
|
||||||
|
},
|
||||||
|
"recommends": {
|
||||||
|
},
|
||||||
|
"suggests": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
"x_wiki" : {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
=end :application/json;q=META.json
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user