Below is NOAA file code ,how can we insert *$daylight* in it?

#errorCatcher Echo
#set $YM="%Y %m"
#set $D=" %d"
#set $M=" %b"
#set $Time=" %H:%M"
#set $NODAY=" N/A"
#set $Temp="%6.1f"
#set $Wind="%6.1f"
#set $Dir="%6.0f"
#set $Count="%6d"
#set $NONE="   N/A"
#if $unit.unit_type_dict.group_rain == "mm"
#set $Rain="%6.1f"
#else
#set $Rain="%6.2f"
#end if
                   MONTHLY CLIMATOLOGICAL SUMMARY for $month_name $year_name


NAME: $station.location                  
ELEV: $station.altitude    LAT: $station.latitude[0]-$station.latitude[1] 
$station.latitude[2]    LONG: $station.longitude[0]-$station.longitude[1] 
$station.longitude[2]


                   TEMPERATURE ($unit.label.outTemp.strip()), RAIN 
($unit.label.rain.strip()), WIND SPEED ($unit.label.windSpeed.strip())

                                         
      MEAN                               
DAY   TEMP   HIGH   TIME    LOW   TIME   
------------------------------------------------
#for $day in $month.days
#if $day.outTemp.has_data or $day.rain.has_data or $day.wind.has_data
$day.dateTime.format($D, add_label=False) 
$day.outTemp.avg.format($Temp,$NONE,add_label=False) 
$day.outTemp.max.format($Temp,$NONE,add_label=False) 
$day.outTemp.maxtime.format($Time,add_label=False) 
$day.outTemp.min.format($Temp,$NONE,add_label=False) 
$day.outTemp.mintime.format($Time,add_label=False)
#else
$day.dateTime.format($D)
#end if
#end for
#if $month.outTemp.has_data or $month.rain.has_data or $month.wind.has_data
------------------------------------------------
    $month.outTemp.avg.format($Temp,$NONE,add_label=False) 
$month.outTemp.max.format($Temp,$NONE,add_label=False)   
 $month.outTemp.maxtime.format($D,add_label=False) 
$month.outTemp.min.format($Temp,$NONE,add_label=False)   
 $month.outTemp.mintime.format($D,add_label=False)
#end if


thank you for your help
On Saturday, September 30, 2023 at 9:18:19 AM UTC+3 Karen K wrote:

> Yes.
>
> Mks Mk schrieb am Samstag, 30. September 2023 um 03:08:55 UTC+2:
>
>> when it comes to coding the best we can do is copy and paste,  all we 
>> wanna know is if this tag (*$daylight*) actually does work within NOAA 
>> template file.
>> thank you for your help
>>
>> On Friday, September 29, 2023 at 9:13:23 PM UTC+3 Karen K wrote:
>>
>>> Mks Mk schrieb am Freitag, 29. September 2023 um 19:09:10 UTC+2:
>>>
>>> We want to add below code or similar to its action to the NOAA monthly 
>>> report file "*NOAA-%Y-%m.txt.tmpl*" but we do not know if it is 
>>> possible to do so because of the span tags?
>>>
>>>
>>>
>>> Why not trying it?
>>>
>>> If you are not sure about the $span tag, you can replace it by something 
>>> else like $ii
>>>  
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cfe23259-eeee-4f31-9bef-b7e825663d02n%40googlegroups.com.

Reply via email to