2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

70_Pushover: add icon

git-svn-id: https://svn.fhem.de/fhem/trunk@18690 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-02-22 15:20:06 +00:00
parent 4a71c783bd
commit 351ec7b7fc
2 changed files with 15 additions and 0 deletions

View File

@ -60,6 +60,13 @@ sub Pushover_Define($$) {
if ( !Pushover_addExtension( $name, "Pushover_CGI", $infix ) );
}
# set default settings on first define
if ( $init_done && !defined( $hash->{OLDDEF} ) ) {
# presets for FHEMWEB
$attr{$name}{icon} = 'pushover';
}
# start Validation Timer
RemoveInternalTimer($hash);
if ( ReadingsVal( $name, "tokenState", "invalid" ) ne "valid"

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="595px" height="595px" viewBox="0 0 595 595" version="1.1">
<defs/>
<g fill="#000000" id="layer1">
<circle id="Oval" fill="#000000" cx="297.654111" cy="297.708134" r="296.855006"/>
<path d="M279.949,171.514 L354.429,161.714 L281.909,325.374 L281.909,325.374 C294.649,324.394 307.142,320.067 319.389,312.394 L319.389,312.394 L319.389,312.394 C331.642,304.714 342.916,295.077 353.209,283.484 L353.209,283.484 L353.209,283.484 C363.496,271.884 372.396,258.981 379.909,244.774 L379.909,244.774 L379.909,244.774 C387.422,230.561 392.812,216.594 396.079,202.874 L396.079,202.874 L396.079,202.874 C398.039,194.381 398.939,186.214 398.779,178.374 L398.779,178.374 L398.779,178.374 C398.612,170.534 396.569,163.674 392.649,157.794 L392.649,157.794 L392.649,157.794 C388.729,151.914 382.766,147.177 374.759,143.584 L374.759,143.584 L374.759,143.584 C366.759,139.991 355.899,138.194 342.179,138.194 L342.179,138.194 L342.179,138.194 C326.172,138.194 310.409,140.807 294.889,146.034 L294.889,146.034 L294.889,146.034 C279.376,151.261 265.002,158.857 251.769,168.824 L251.769,168.824 L251.769,168.824 C238.542,178.784 227.029,191.197 217.229,206.064 L217.229,206.064 L217.229,206.064 C207.429,220.924 200.406,237.827 196.159,256.774 L196.159,256.774 L196.159,256.774 C194.526,262.981 193.546,267.961 193.219,271.714 L193.219,271.714 L193.219,271.714 C192.892,275.474 192.812,278.577 192.979,281.024 L192.979,281.024 L192.979,281.024 C193.139,283.477 193.462,285.357 193.949,286.664 L193.949,286.664 L193.949,286.664 C194.442,287.971 194.852,289.277 195.179,290.584 L195.179,290.584 L195.179,290.584 C178.519,290.584 166.349,287.234 158.669,280.534 L158.669,280.534 L158.669,280.534 C150.996,273.841 149.119,262.164 153.039,245.504 L153.039,245.504 L153.039,245.504 C156.959,228.191 165.862,211.694 179.749,196.014 L179.749,196.014 L179.749,196.014 C193.629,180.334 210.122,166.531 229.229,154.604 L229.229,154.604 L229.229,154.604 C248.342,142.684 269.249,133.214 291.949,126.194 L291.949,126.194 L291.949,126.194 C314.656,119.167 336.789,115.654 358.349,115.654 L358.349,115.654 L358.349,115.654 C377.296,115.654 393.219,118.347 406.119,123.734 L406.119,123.734 L406.119,123.734 C419.026,129.127 429.072,136.234 436.259,145.054 L436.259,145.054 L436.259,145.054 C443.446,153.874 447.936,164.164 449.729,175.924 L449.729,175.924 L449.729,175.924 C451.529,187.684 450.959,199.934 448.019,212.674 L448.019,212.674 L448.019,212.674 C444.426,228.027 437.646,243.464 427.679,258.984 L427.679,258.984 L427.679,258.984 C417.719,274.497 405.226,288.544 390.199,301.124 L390.199,301.124 L390.199,301.124 C375.172,313.697 357.939,323.904 338.499,331.744 L338.499,331.744 L338.499,331.744 C319.066,339.584 298.406,343.504 276.519,343.504 L276.519,343.504 L274.069,343.504 L211.839,483.154 L141.279,483.154 L279.949,171.514 Z" id="Shape" fill="#FFFFFF"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB