iframe in home weewx

84 views
Skip to first unread message

Giulio

unread,
Apr 16, 2022, 11:20:55 AM4/16/22
to weewx-user
Hello at everyone

sorry for the inconvenience, I would like to put the following iframe in the weewx home:

<!-- Inizio codice ilMeteo.it -->
<iframe width="400" height="290" scrolling="no" frameborder="no" noresize="noresize" src="https://www.ilmeteo.it/box/previsioni.php?citta=5913&type=day1&width=400&ico=1&lang=ita&days=6&font=Arial&fontsize=12&bg=FFFFFF&fg=000000&bgtitle=0099FF&fgtitle=FFFFFF&bgtab=F0F0F0&fglink=1773C2"></iframe>
<!-- Fine codice ilMeteo.it -->


I tried to put it in file

/var/www/html/weewx/index.html

and

/etc/weewx/skins/Standard/index.html.tmpl

but every time there is an update it deletes everything, can you help me?
Thanks
Giulio


Giulio

unread,
Apr 16, 2022, 8:51:49 PM4/16/22
to weewx-user
I'm attaching my log
mylog

Tom Keffer

unread,
Apr 16, 2022, 8:58:06 PM4/16/22
to weewx-user
1. You must make any changes in the templates. The templates then get processed, and become the HTML files in /var/www/html. So, if you
make a change in /var/www/html/index.html, it will get overwritten at the next reporting cycle.

2. You said you tried making a change in the template /etc/weewx/skins/Standard/index.html.tmpl. This is part of the "Standard skin." However, according to your log, you are actually using the "Seasons skin." So, you must make your changes in /etc/weewx/skins/Seasons/index.html.tmpl.

Hope that helps.

-tk


--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/6a099f61-2cfa-41dc-8c43-65bed99944f9n%40googlegroups.com.

Giulio

unread,
Apr 17, 2022, 7:11:38 AM4/17/22
to weewx-user
Great!!!
Thank you very much Tom.
happy easter
Reply all
Reply to author
Forward
0 new messages