Date format and the big pause

Why can’t I get the date format to change? I’ve tried different formats with no luck.

//$SITE[‘timeFormat’] = ‘D, d-M-Y g:ia T’; // Day, 31-Mar-2006 6:35pm Tz (USA Style)
$SITE[‘timeFormat’] = ‘m/d/Y g:ia’; // USA format 03/31/2006 14:03
//$SITE[‘timeFormat’] = ‘d/m/Y H:i’; // Euro format 31/03/2006 14:03
//$SITE[‘timeFormat’] = ‘Y-m-d H:i’; // ISO format 2006-03-31 14:03

“Updated: @ 4/1/2025 18:06:19 - updated 10 sec ago

How can I stop the updates from being paused? I would prefer to let them camp out on the site.
“Updates paused - reload page to start @ 4/1/2025 18:13:09 - updated 60 sec ago

Night

Forgot to post the website.

In ajaxWEEWXwx.js around line 56 set var maxupdates = 0;

Can’t help with the time format, I presume that depends on WeeWX. I use WD :confused:

Outstanding.
Thank you

Mark

The $SITE[‘timeFormat’] only applies to the date/time displays on the PHP page itself.
The date format used in the AJAX update uses the format in clientraw.txt (it is not adjustable, except in Weather-Display or weewx-saratoga only)

This is from the index.php For whatever reason it’s the only time formated this way.

Mark

That time comes from http://hendco.org/clientraw.txt in the field clientraw[32]

32	Station Name-Time	Label	Stronghurst, Illinois-19:57:13

The ajaxWEEWXjs.js doesn’t reprocess the time… it just displays it.

Looking at GitHub - gjr80/weewx-saratoga: A WeeWX extension to support the Saratoga Weather Website Templates you can configure the clientraw.txt time format in weewx.conf

[[RealtimeClientraw]]

        # If using an external website, configure remote_server_url to point to
        # the post_clientraw.php script on your website like:
        #   remote_server_url = http://your.website.com/post_clientraw.php
        #
        # To disable or use the webserver on this system, leave the entry
        # commented out or blank.
        # remote_server_url = http://your.website.com/post_clientraw.php

        # min_interval sets the minimum clientraw.txt generation interval.
        # Default is 10 seconds.
        min_interval = 10

        # Python date-time format strings. Format string codes as per
        # https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes

        # Date format. Recommended entries are:
        #   date_format = %-m/%-d/%Y  # recommended for USA users
        #   date_format = %-d/%-m/%Y  # recommended for non-USA users
        date_format = %-d/%-m/%Y

        # Long format times (HMS). Recommended entries are:
        #   long_time_format = %-I:%M:%S_%p  # recommended for USA users
        #   long_time_format = %H:%M:%S  # recommended for non-USA users
        long_time_format = %H:%M:%S

        # Short format times (HM). Recommended entries are:
        #   short_time_format = %-I:%M_%p  # recommended for USA users
        #   short_time_format = %H:%M  # recommended for non-USA users
        short_time_format = %H:%M

Note the settings ‘recommended for USA users’
Just uncomment the ones you want and put a # in front of the existing ones to make the changes, then restart weewx.

I am using the weewx-saratoga adaptor. And it is the date in the ajax update. So I’m off to look through the weewx-saratoga files.

Thank you
Mark