quick and dirty remove 'inside' displays from webpage.

58 views
Skip to first unread message

techno curmudgeon

unread,
Jan 30, 2022, 3:16:08 PM1/30/22
to weewx-user
Good day all.

As of this morning I've a new install of weewx on a debian11 system talking to a Davis Vantage Pro.  Everything seems to be working well so far and was actually pretty painless once I figured out the udev (thanks to the wiki!)

Before I can actually put the webpage on line (just using the default Standard skin) I need to remove the 'Inside' displays, aka 'Inside Temperature' or 'Inside Humidity'. 

How can I do this?   Right now 'quick and dirty' is more important than 'this is the Way'. 

Here's what I've tried so far:

a perusal of the User's Manual as well as some other google indicated that the web page is set up according to the /etc/weexw/skins.

Full disclosure: I don't know *&^$# about web pages.  I have successfully avoided having to deal with the guts of them for my whole career.  Until now.

Anyway, glancing through files in the /etc/weewx/skins I took a chance and

       sed -i '/Inside/s/^/#/gI'

to # out any line with the string  'Inside' (case insensitive) in it. 
stopped weewx
rm -rf /var/www/html/weewx/*

reboot

flushed firefox cache.

Wait ten minutes

call up weewx on firefox.

No change.  The 'inside' displays and info is still there.

Thanks in advance!


   


vince

unread,
Jan 30, 2022, 4:44:57 PM1/30/22
to weewx-user
On Sunday, January 30, 2022 at 12:16:08 PM UTC-8 techno curmudgeon wrote:
Full disclosure: I don't know *&^$# about web pages.  I have successfully avoided having to deal with the guts of them for my whole career.  Until now.


Ummm, no, it's not quite that easy.  There is a little work required.

You can now say that you learned about them 'today' days ago :-)
 

Anyway, glancing through files in the /etc/weewx/skins I took a chance and
       sed -i '/Inside/s/^/#/gI'


You have to actually look at the .tmpl (template) files in there for "inTemp" which is the inside temperature.   You'll have to edit all those lines in all the .tmpl files.   For the Standard skin there are only 4 files.

For example - you'll see sections like:
           <tr>
                <td class="stats_label">Inside Temperature</td>
                <td class="stats_data">$current.inTemp</td>
              </tr>


You comment them out in web pages by surrounding them with <!-- --> pairs ala:

       <!--
           <tr>
                <td class="stats_label">Inside Temperature</td>
                <td class="stats_data">$current.inTemp</td>
              </tr>
       -->





You have to also comment out the creation of the images graphing the inTemp.   Look in skin.conf and you'll see sections like:

        [[[dayinside]]]
            [[[[inTemp]]]]
(and week and month and year as well)

In skin.conf you 'do' use a # character to comment them out.  Just go with it and don't overthink the why.

 
stopped weewx
rm -rf /var/www/html/weewx/*
reboot


None of that is necessary.  Just wait for your next archive interval (likely 5 minutes) or run wee_reports to (re)generate the web pages manually.

techno curmudgeon

unread,
Jan 30, 2022, 7:54:34 PM1/30/22
to weewx-user
done and done!
Thank you very much for the very quick and very explanatory answer.

>> Ummm, no, it's not quite that easy.
Is it ever?  8)

I guess now I can only say I made it thru my whole career without having to do anything with COBOL.
Reply all
Reply to author
Forward
0 new messages