Html formatting setup

89 views
Skip to first unread message

Jim Brand

unread,
May 19, 2019, 8:32:40 PM5/19/19
to weewx-user
Brand new user. I've got weewx up and running on a rpi for a couple weeks. Posting to a few sites like wow, etc. Running the standard report. Serves up the html just fine locally (I have a little ngnx instance running to serve it). I copy the html directory (var/www/html/weewx) to an aws s3 bucket to post the web page. In general it serves up, and all the data is there, stats, graphs, etc. The finer formatting is missing. The colored bar across the top. The day-week-month bold face, etc.
My guess is there is some bit of formatting I am missing, and not copying. It must be located elsewhere.
Anyone have any insights?

Andrew Milner

unread,
May 19, 2019, 9:33:51 PM5/19/19
to weewx-user
the .css file(s) may be the answer

Jaybee

unread,
May 20, 2019, 5:57:43 AM5/20/19
to weewx-user
I'm not a huge html guy (network guy actually) but I kinda thought of that. There are a couple css files in the directory I am copying (weewx regenerates that whole directory), but is there somewhere else one might be squirreled away?

Andrew Milner

unread,
May 20, 2019, 9:06:36 AM5/20/19
to weewx-user
find /home/weewx -name *.css 

to locate them all

there are some in skin directories and public_html

gjr80

unread,
May 21, 2019, 7:55:13 PM5/21/19
to weewx-user
Hi,

Just look at the raw html of any pages you are having issues with. Just search for '.css', if any hits refer to a css file, eg xxxxxx.css, then do a quick check to see if xxxxxx.css is on your aws s3 bucket. If it's not then that is likely the issue, if it is then it may be in the wrong location and we can do some other more detailed checks. If you are using one of the WeeWX file transfer reports to transfer and out of the box install then everything that is required should be transferred. Again we can do more detailed checking if it's not.

Gary

Jaybee

unread,
May 24, 2019, 7:28:08 PM5/24/19
to weewx-user
I finally tracked this down. I post here in the hopes if anyone needs this, they will find this here. It turns out not to be a weewx thing, but an aws thing. The formatting issues were due to the fact that the browser could not read the seasons.css file. Although present, and by all accounts ok, the upload to aws garbled the content type on the css file was text/plain (like all of the other files) rather than plain/css. This is apparently a well know aws problem, if you Google for it. Adjusting the content type cased the page to immediatly render correctly.

Turns out to be a neat cheap way to host a public webpage.

Reply all
Reply to author
Forward
0 new messages