Mason10198 / SkywarnPlus

Empowering Asterisk / app_rpt Nodes with Local Alert Intelligence
GNU General Public License v3.0
58 stars 3 forks source link

Later versions of Supermon Changed where the AUTOSKY/warnings.txt is looking #76

Closed mjwgeek closed 8 months ago

mjwgeek commented 8 months ago

Check this out, I have an older version of Supermon and the latest 7.4. They changed where the warnings.txt file is pointed to. Check out these two versions. Can you update the config.yaml to point to both just in case, or write to both? Your choice.

From older Supermon's link.php file:

// ADDED WA3DSP Autosky warning messages // if they exist if (file_exists("/tmp/AUTOSKY/warnings.txt")) { if (filesize("/tmp/AUTOSKY/warnings.txt")) { $warnings = file_get_contents ("/tmp/AUTOSKY/warnings.txt"); print "<span style=\"color: red;\">
$warnings"; } } // END WA3DSP

vs 7.4's link.php

if (file_exists("/var/www/html/AUTOSKY/warnings.txt")) { if (filesize("/var/www/html/AUTOSKY/warnings.txt")) { $warnings = file_get_contents ("/var/www/html/AUTOSKY/warnings.txt"); print "<span style=\"color: red;\">
$warnings"; } }

print "

";

Not really a bug it is an issue caused by outside sources. Thanks!

k5map commented 8 months ago

@mjwgeek ... Much thanks for this post as I have confirmed with Supermon v7.4 on ASL, it is also looking for the warnings.txt file in the path /var/www/html/AUTOSKY instead of /tmp/AUTOSKY. On my HamVoIP nodes, the warnings show up on the Supermon page but on my ASL nodes, they do not (because Supermon is not expecting the file in the /tmp/AUTOSKY directory).

For now, I'm going to modify the Supermon php file until a solution is identified.

Mason10198 commented 8 months ago

This is resolved by simply writing to whichever warnings.txt exists in v0.6.0, which will be released as soon as testing is complete

k5map commented 8 months ago

@Mason10198 ... that's great news. In that case I'll hold off making any changes to my ASL nodes.

Mason10198 commented 8 months ago

Resolved in v0.6.0