Show hostname in About This Station

65 views
Skip to first unread message

cric...@pobox.com

unread,
Jan 29, 2025, 3:46:57 PM1/29/25
to weewx-user
Is there a relatively pain free way to include the hostname running the weewx instance in the About This Station?  I've got 4 instances doing different things, and I tend to forget which host is generating which set of graphs.

I'm running ver. 4.10.2, using the basic Seasons skin.

Thx, Chris

John Kline

unread,
Jan 29, 2025, 4:01:20 PM1/29/25
to weewx...@googlegroups.com
Assuming you want it in the seasons skin, you can edit about.inc.

Add the line:

#import platform

And add a row to the table.

   <tr>
      <td class="label">Host Name</td>
      <td class="data">${platform.uname().node}</td>
    </tr>

You do need to worry about updating the skin as it would overwrite this change.  Perhaps there is a better way.

On Jan 29, 2025, at 12:47 PM, cric...@pobox.com <cric...@pobox.com> wrote:

Is there a relatively pain free way to include the hostname running the weewx instance in the About This Station?  I've got 4 instances doing different things, and I tend to forget which host is generating which set of graphs.

I'm running ver. 4.10.2, using the basic Seasons skin.

Thx, Chris

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/26c294c1-e867-43f5-a4f4-10e445f4b1c6n%40googlegroups.com.
Message has been deleted

cric...@pobox.com

unread,
Jan 29, 2025, 10:58:18 PM1/29/25
to weewx-user

Hey John, 

   Thanks, that worked like a charm!

Chris

Reply all
Reply to author
Forward
0 new messages