Skip to content

Commit

Permalink
limit the update-check.cgi to parse for cmd=download and not parse ar…
Browse files Browse the repository at this point in the history
…bitrary query string options.
  • Loading branch information
jens-maus committed Jun 17, 2022
1 parent 15b41d9 commit d29d72f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Software Watchdog CCU Addon – hm-watchdog
<img src="https://github.com/jens-maus/hm-watchdog/raw/master/www/public/img/logo-large.png" align=right>
<img src="https://github.com/homematic-community/hm-watchdog/raw/master/www/public/img/logo-large.png" align=right>

[![Current Release](https://img.shields.io/github/release/jens-maus/hm-watchdog.svg?style=flat-square)](https://github.com/jens-maus/hm-watchdog/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/jens-maus/hm-watchdog/latest/total.svg?style=flat-square)](https://github.com/jens-maus/Rhm-watchdog/releases/latest)
[![Issues](https://img.shields.io/github/issues/jens-maus/hm-watchdog.svg?style=flat-square)](https://github.com/jens-maus/hm-watchdog/issues)
![License](https://img.shields.io/github/license/jens-maus/hm-watchdog.svg?style=flat-square)
[![Current Release](https://img.shields.io/github/release/homematic-community/hm-watchdog.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/homematic-community/hm-watchdog/latest/total.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/releases/latest)
[![Issues](https://img.shields.io/github/issues/homematic-community/hm-watchdog.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/issues)
![License](https://img.shields.io/github/license/homematic-community/hm-watchdog.svg?style=flat-square)
[![Donate](https://img.shields.io/badge/donate-PayPal-green.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RAQSDY9YNZVCL)

A HomeMatic CCU Addon package implementing a software watchdog functionality to monitor all important services a CCU devices requires to function correctly. As soon as the watchdog recognizes a service to be down it will try to restart the service. If a service couldn't be restarted three times in a row the software watchdog will also automatically reboot the CCU device. Furthermore, the watchdog will use the standard CCU notification system to notify the administrator of services that were found to be non-working
Expand Down Expand Up @@ -46,11 +46,11 @@ A HomeMatic CCU Addon package implementing a software watchdog functionality to
Please note that the use of this Addon with RaspberryMatic is **NOT** required anymore and discouraged/not adviced anymore since it will otherwise cause problems!

## Installation
1. Download of recent Addon-Release from [Github](https://github.com/jens-maus/hm-watchdog/releases)
1. Download of recent Addon-Release from [Github](https://github.com/homematic-community/hm-watchdog/releases)
2. Installation of Addon archive (```hm-watchdog-X.X.tar.gz```) via WebUI interface of CCU device

## Support
In case of problems/bugs or if you have any feature requests please feel free to open a [new ticket](https://github.com/jens-maus/hm-watchdog/issues) at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: [hm-watchdog](http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581).
In case of problems/bugs or if you have any feature requests please feel free to open a [new ticket](https://github.com/homematic-community/hm-watchdog/issues) at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: [hm-watchdog](http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581).

## License
The use and development of this addon is licensed under the conditions of the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0).
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8
0.9
2 changes: 1 addition & 1 deletion rc.d/hm-watchdog
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ case "$1" in
info)
echo "Info: <b>Watchdog Addon</b><br>"
echo "Info: (c) 2015-2018 Jens Maus<br>"
echo "Info: <a href='http://github.com/jens-maus/hm-watchdog'>http://github.com/jens-maus/hm-watchdog</a>"
echo "Info: <a href='http://github.com/homematic-community/hm-watchdog'>http://github.com/homematic-community/hm-watchdog</a>"
echo "Version: $(cat ${WWWDIR}/VERSION)"
echo "Name: hm-watchdog"
echo "Operations: uninstall restart"
Expand Down
4 changes: 2 additions & 2 deletions www/en.index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@

<b>Installation as CCU Addon</b>
<ol>
<li>Download of recent Addon-Release from <a href="https://github.com/jens-maus/hm-watchdog/releases">Github</a></li>
<li>Download of recent Addon-Release from <a href="https://github.com/homematic-community/hm-watchdog/releases">Github</a></li>
<li>Installation of Addon archive (<code>hm-watchdog-X.X.tar.gz</code>) via WebUI interface of CCU device</li>
</ol>

<b>Support</b>
<p>
In case of problems/bugs or if you have any feature requests please feel free to open a <a href="https://github.com/jens-maus/hm-watchdog/issues">new ticket</a> at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
In case of problems/bugs or if you have any feature requests please feel free to open a <a href="https://github.com/homematic-community/hm-watchdog/issues">new ticket</a> at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
</p>

<b>License</b>
Expand Down
4 changes: 2 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@

<b>Installation als CCU-Addon</b>
<ol>
<li>Download des aktuellen Addon-Releases von <a href="https://github.com/jens-maus/hm-watchdog/releases">Github</a></li>
<li>Download des aktuellen Addon-Releases von <a href="https://github.com/homematic-community/hm-watchdog/releases">Github</a></li>
<li>Installation des Addon-Paketes (<code>hm-watchdog-X.X.tar.gz</code>) mittels WebUI Oberfläche der CCU</li>
</ol>

<b>Support</b>
<p>
Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket <a href="https://github.com/jens-maus/hm-watchdog/issues">erstellen</a>. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket <a href="https://github.com/homematic-community/hm-watchdog/issues">erstellen</a>. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
</p>

<b>Lizenz</b>
Expand Down
9 changes: 5 additions & 4 deletions www/update-check.cgi
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/tclsh

set checkURL "https://raw.githubusercontent.com/jens-maus/hm-watchdog/master/VERSION"
set downloadURL "https://github.com/jens-maus/hm-watchdog/releases/latest"
set checkURL "https://raw.githubusercontent.com/homematic-community/hm-watchdog/master/VERSION"
set downloadURL "https://github.com/homematic-community/hm-watchdog/releases"

catch {
set input $env(QUERY_STRING)
set pairs [split $input &]
foreach pair $pairs {
if {0 != [regexp "^(\[^=]*)=(.*)$" $pair dummy varname val]} {
set $varname $val
if {$pair == "cmd=download"} {
set cmd "download"
break
}
}
}
Expand Down

0 comments on commit d29d72f

Please sign in to comment.