Sean,

OK, the issue is the day = %X under [StdReports] [[Detfaults]] [[[Units]]] 
[[[[TimeFormats]]]]. We need to leave that alone as changing it may affect 
other reports. What we need to do is add an override for the clientraw 
reports. Add a [[[[TimeFormats]]]] section to the [[wdClientraw]] stanza as 
follows:

[StdReport]
    ....
    [[wdClientraw]]
        ....
        [[[Units]]]
            ....
            [[[[TimeFormats]]]]
                day = %H:%M

Do a config reload or restart WeeWX and that should fix the ' AM'/' PM' 
problem in clientraw.txt

Gary

On Tuesday, 21 May 2019 03:36:15 UTC+10, Sean Garland wrote:
>
> Good morning everyone!  
>
> Again - thank you for looking into this.  This is just a pet project for 
> me and it's been fun, but long times between me messing with it, so takes 
> me a bit to find all the parts, and make adjustments...  I have the parser 
> from Saratoga weather up and keep refreshing just to see how things look 
> according to the "spec" (well the parser output).
>
> Here are the sections (gleaned for just what I think you need):
>     [[StandardReport]]
>         skin = Standard
>         enable = True
>         [[[Units]]]
>             [[[[Groups]]]]
>                 group_altitude = foot
>                 group_speed2 = mile_per_hour2
>                 group_pressure = inHg
>                 group_rain = inch
>                 group_rainrate = inch_per_hour
>                 group_temperature = degree_F
>                 group_degree_day = degree_F_day
>                 group_speed = mile_per_hour
>     [[wdTesttags]]
>         HTML_ROOT = /var/www/weather/WD
>         skin = Testtags
>         [[[Units]]]
>             [[[[TimeFormats]]]]
>                 date_time_f = %m/%d/%Y %H:%M
>                 date_f = %m/%d/%Y
>             [[[[Groups]]]]
>                 group_altitude = foot
>                 group_speed2 = mile_per_hour2
>                 group_pressure = inHg
>                 group_rain = inch
>                 group_rainrate = inch_per_hour
>                 group_temperature = degree_F
>                 group_degree_day = degree_F_day
>                 group_speed = mile_per_hour
>     
>     [[wdClientraw]]
>         HTML_ROOT = /var/www/weather/WD
>         skin = Clientraw
>         [[[Units]]]
>             [[[[StringFormats]]]]
>                 NONE = --
>     [[Defaults]]
>                 [[[Units]]]
>             [[[[Groups]]]]
>                 
>                 group_altitude = foot    # Options are 'foot' or 'meter'
>                 group_degree_day = degree_F_day    # Options are 
> 'degree_F_day' or 'degree_C_day'
>                 group_pressure = inHg    # Options are 'inHg', 'mmHg', 
> 'mbar', or 'hPa'
>                 group_rain = inch    # Options are 'inch', 'cm', or 'mm'
>                 group_rainrate = inch_per_hour    # Options are 
> 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
>                 group_speed = mile_per_hour    # Options are 
> 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
>                 group_speed2 = mile_per_hour2    # Options are 
> 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
>                 group_temperature = degree_F    # Options are 'degree_F' 
> or 'degree_C'
>             [[[[StringFormats]]]]
>                 centibar = %.0f
>                 cm = %.2f
>                 cm_per_hour = %.2f
>                 degree_C = %.1f
>                 degree_F = %.1f
>                 degree_compass = %.0f
>                 foot = %.0f
>                 hPa = %.1f
>                 hour = %.1f
>                 inHg = %.3f
>                 inch = %.2f
>                 inch_per_hour = %.2f
>                 km_per_hour = %.0f
>                 km_per_hour2 = %.1f
>                 knot = %.0f
>                 knot2 = %.1f
>                 mbar = %.1f
>                 meter = %.0f
>                 meter_per_second = %.1f
>                 meter_per_second2 = %.1f
>                 mile_per_hour = %.0f
>                 mile_per_hour2 = %.1f
>                 mm = %.1f
>                 mmHg = %.1f
>                 mm_per_hour = %.1f
>                 percent = %.0f
>                 second = %.0f
>                 uv_index = %.1f
>                 volt = %.1f
>                 watt_per_meter_squared = %.0f
>                 NONE = "   N/A"
>             [[[[Labels]]]]
>                 day = " day", " days"
>                 hour = " hour", " hours"
>                 minute = " minute", " minutes"
>                 second = " second", " seconds"
>                 NONE = ""
>             [[[[TimeFormats]]]]
>                 hour = %H:%M
>                 day = %X
>                 week = %X (%A)
>                 month = %x %X
>                 year = %x %X
>                 rainyear = %x %X
>                 current = %x %X
>                 ephem_day = %X
>                 ephem_year = %x %X
>             [[[[Ordinates]]]]
>                 [[[[[DegreeDays]]]]]
>                 [[[[[Trend]]]]]
>                     time_delta = 10800    # 3 hours
>                     time_grace = 300    # 5 minutes
>
> Thanks again for your help!!!!  I love this project!
> Sean
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/80b995d8-d511-4c99-b6fd-ac9fb644c96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to