Getting 4.5.1 to upload plots from ImageGenerator to my web page

35 views
Skip to first unread message

DR

unread,
Jul 27, 2023, 2:14:05 PM7/27/23
to weewx...@googlegroups.com
I have had 4.5.1 running on a Rasp Pi 4 for over a half a year. Not a
glitch.

I wanted to add to the Seasons Skin an additional plot.  The stock
package gives me the bar graph of the rain each hour.

I wanted to also have the more traditional accumulation line graph
showing the upward progression of rain (all theoretical lately with our
drought), so I copied the one that was working, then modified it a
little to produce the graph.


Despite having done this, whenever I either go to index.html in the
/var/... directory, or look at the page that WeeWx is FTPing to my web
server, I don't see the new graph.

When I look at the .png plots that are ein the directory, the correctly
named one is there, it has the (flat) graph, and the bottom listing show
the right date, time and all, so I am pretty sure it is changing because
I check at various times through the day, and it agrees with the .png
plots that are being uploaded.

Having produced the plot from ImageGenerator, is there some other action
I need to take to tell WeeWx to actually upload the plot to my webserver?

If I modify the original rain plot with bar graphs to some slight
cosmetic change, THAT does go to my web page, so I assume there must be,
somewhere, a list of .pngs to upload?

Can someone give me a hint?  Dale


Rainer Lang

unread,
Jul 27, 2023, 2:19:55 PM7/27/23
to weewx...@googlegroups.com

You probably gave your new plot a new different name - and have forgotten to display it also in index.html.tmpl 😎

DR

unread,
Jul 27, 2023, 2:21:28 PM7/27/23
to weewx...@googlegroups.com

I sure did NOT put anything in the index.html.tmpl file!

I am off to try that, and hope it is that simple of a fix.  Thx.  Dale

--
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/877aaaa4-1f66-44f8-036c-0477b5ecad61%40gmail.com.

DR

unread,
Jul 27, 2023, 5:29:10 PM7/27/23
to weewx...@googlegroups.com

That did it, and it was much easier than I thought!

Thanks for the hint as to what to look at to include that plot in the template.  I hadn't gone back that far, only reading about the plot generator and what to do for the various configurations and control over the plot, and if there was something there in that flow of instructions that said to go to the template to add it (if it were not a modification of an existing plot), I missed it entirely.

Thanks again.  I appreciate the hand holding and kind supoort.  Dale


On 7/27/2023 1:19 PM, 'Rainer Lang' via weewx-user wrote:
Reply all
Reply to author
Forward
0 new messages