neoground / neowx-material

Revamp WeeWX with Neowx-Material, a modern Material Design skin offering a sleek, responsive UI, captivating graphs & advanced features.
https://neoground.com/projects/neowx-material
MIT License
53 stars 28 forks source link

Hiding station details #80

Closed stalkerGH closed 11 months ago

stalkerGH commented 11 months ago

I got problem with turning off station details. I've set show_about_data = no, reloaded Weewx, removed all files from /var/www/html/weewx, cleared cache of browser - and I still see details.

stalkerGH commented 11 months ago

I found the solution, it requires changes in footer.inc. Original version is:

        <div class="col-md-6 mt-md-0 mt-3">
            ## Content
            <h5 class="text-uppercase">$Extras.Translations[$Extras.language].about</h5>

            <table class="d-inline">
                <tr>
                    <td>$Extras.Translations[$Extras.language].hardware:</td>
                    <td>$station.hardware</td>
                </tr>
                <tr>
                    <td>$Extras.Translations[$Extras.language].altitude:</td>
                    <td>$station.altitude</td>
                </tr>
                #if $Extras.Footer.show_telemetry == "yes"
                <tr>
                    <td>
                        <a href="telemetry.html">
                            $Extras.Translations[$Extras.language].telemetry
                        </a>
                    </td>
                    <td></td>
                </tr>
                #end if
            </table>

            #if $Extras.Footer.about != ""
            <p>$Extras.Footer.about</p>
            #end if

        </div>

I've changed it to:

        <div class="col-md-6 mt-md-0 mt-3">
            ## Content
            <!-- <h5 class="text-uppercase">$Extras.Translations[$Extras.language].about</h5> -->
            <h5 class="text-uppercase">&nbsp;</h5>

            <table class="d-inline">
                #if $Extras.Footer.show_about_data == "yes"
                <tr>
                    <td>$Extras.Translations[$Extras.language].hardware:</td>
                    <td>$station.hardware</td>
                </tr>
                <tr>
                    <td>$Extras.Translations[$Extras.language].altitude:</td>
                    <td>$station.altitude</td>
                </tr>
                #end if
                #if $Extras.Footer.show_telemetry == "yes"
                <tr>
                    <td>
                        <a href="telemetry.html">
                            $Extras.Translations[$Extras.language].telemetry
                        </a>
                    </td>
                    <td></td>
                </tr>
                #end if
            </table>

            #if $Extras.Footer.about is not ""
            <p>$Extras.Footer.about</p>
            #end if

        </div>
stalkerGH commented 11 months ago

Issue is solved so I close it.