You need to specify an aggregation to go with the $day tag. For example, for temperature you have $day.outTemp.max, which says you want the max temperature for the day. A tag $day.outTemp is meaningless. Similarly for windDir.
Which leads me to the next question: are you sure you want windDir? Most aggregates (min, max, sum, avg, etc.) don't make much sense for a compass direction. You probably want the vector averages. Try something like $day.wind.vecdir, which is the average vector direction. -tk On Sat, Jan 12, 2019 at 7:53 AM Luigi Carbonera <[email protected]> wrote: > Yes, right . N, S, SE or NNW > I tried with this suggested but it does not work > > > HEAT COOL AVG > MEAN DEG DEG > WIND DOM > DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED > HIGH TIME DIR > > --------------------------------------------------------------------------------------- > #for $day in $month.days > #if $day.barometer.count.raw > $day.dateTime.format($D) $day.outTemp.avg.nolabel($Temp,$NONE) > $day.outTemp.max.nolabel($Temp,$NONE) $day.outTemp.maxtime.format($Time) > $day.outTemp.min.nolabel($Temp,$NONE) $day.outTemp.mintime.format($Time) > $day.heatdeg.sum.nolabel($Temp,$NONE) $day.cooldeg.sum.nolabel($Temp,$NONE) > $day.rain.sum.nolabel($Rain,$NONE) $day.wind.avg.nolabel($Wind,$NONE) > $day.wind.max.nolabel($Wind,$NONE) $day.wind.maxtime.format($Time) > $day.windDir.ordinal_compass($Dir,$NONE) > #else > $day.dateTime.format($D) > #end if > #end for > > --------------------------------------------------------------------------------------- > $month.outTemp.avg.nolabel($Temp,$NONE) > $month.outTemp.max.nolabel($Temp,$NONE) > $month.outTemp.maxtime.format($D) > $month.outTemp.min.nolabel($Temp,$NONE) > $month.outTemp.mintime.format($D) $month.heatdeg.sum.nolabel($Temp,$NONE) > $month.cooldeg.sum.nolabel($Temp,$NONE) > $month.rain.sum.nolabel($Rain,$NONE) $month.wind.avg.nolabel($Wind,$NONE) > $month.wind.max.nolabel($Wind,$NONE) $month.wind.maxtime.format($D) > $month.windDir.ordinal_compass($Dir) > > > > > Il giorno sabato 12 gennaio 2019 02:06:50 UTC+1, gjr80 ha scritto: >> >> Hi, >> >> If I understand you correctly you want N, S, SE or NNW rather than >> numeric degrees? If so did you try $day.windDir.ordinal_compass ? Note >> there is no space between the $ and day and you don't need the .nolabel >> >> Gary >> >> On Saturday, 12 January 2019 07:04:35 UTC+10, Luigi Carbonera wrote: >>> >>> Hello >>> I have to change the wind direction in the noaa report >>> by degrees such as NNE .. NW .. SE >>> I tried with " $ day.windDir.ordinal_compass.nolabel " without >>> success. >>> and put the point between the data >>> >>> #for $day in $month.days >>> #if $day.barometer.count.raw >>> $day.dateTime.format($D) $day.outTemp.avg.nolabel($Temp,$NONE) >>> $day.outTemp.max.nolabel($Temp,$NONE) $day.outTemp.maxtime.format($Time) >>> $day.outTemp.min.nolabel($Temp,$NONE) $day.outTemp.mintime.format($Time) >>> $day.heatdeg.sum.nolabel($Temp,$NONE) $day.cooldeg.sum.nolabel($Temp,$NONE) >>> $day.rain.sum.nolabel($Rain,$NONE) $day.wind.avg.nolabel($Wind,$NONE) >>> $day.wind.max.nolabel($Wind,$NONE) $day.wind.maxtime.format($Time) >>> $day.windDir.ordinal_compass.nolabel($Dir,$NONE) >>> #else >>> $day.dateTime.format($D) >>> #end if >>> #end for >>> >>> >>> >>> This is because I have a php program that reads me the text files noaa >>> and I would also do it for WeeWx >>> http://sacilemeteo.altervista.org/statd/rapporto-mensile.php >>> >>> Solution? >>> Thank you >>> Luigi >>> >>> generated WeeWx >>> >>> >>> >>> TEMPERATURE (°C), RAIN (mm), WIND SPEED (km/h) >>> >>> HEAT COOL AVG >>> MEAN DEG DEG >>> WIND DOM >>> DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED >>> HIGH TIME DIR >>> >>> --------------------------------------------------------------------------------------- >>> 01 -0,9 1,9 12:24 -2,8 20:43 19,3 0,0 0,0 2,2 >>> 12,9 12:33 242 >>> 02 1,0 5,3 04:04 -3,1 23:34 17,4 0,0 0,0 3,1 >>> 27,4 10:16 356 >>> 03 -2,9 0,4 14:39 -5,0 18:39 21,3 0,0 0,0 2,3 >>> 20,9 12:14 190 >>> 04 -4,6 -1,4 15:33 -7,3 07:49 23,0 0,0 0,0 2,5 >>> 12,9 10:33 211 >>> 05 -0,4 4,3 21:58 -5,9 01:47 18,7 0,0 0,0 2,1 >>> 12,9 21:51 355 >>> 06 4,0 8,5 14:58 0,1 01:53 14,3 0,0 0,0 3,2 >>> 14,5 16:03 43 >>> 07 -0,7 0,9 00:00 -1,8 23:59 19,0 0,0 0,0 1,0 >>> 11,3 10:57 139 >>> 08 -1,6 -0,2 23:50 -3,3 18:54 19,9 0,0 0,0 1,4 >>> 12,9 02:58 203 >>> 09 0,7 3,9 12:50 -1,4 23:52 17,6 0,0 0,0 2,1 >>> 16,1 14:23 58 >>> 10 -0,8 3,3 15:34 -2,8 20:23 19,2 0,0 0,0 2,5 >>> 14,5 13:14 92 >>> 11 -3,2 -0,2 14:03 -5,9 07:52 21,5 0,0 0,0 2,1 >>> 17,7 13:13 228 >>> 12 >>> >>> >>> generated WeatherLink Is OK >>> >>> >>> >>> TEMPERATURE (°C), RAIN (mm), WIND SPEED (km/hr) >>> >>> HEAT COOL AVG >>> MEAN DEG DEG >>> WIND DOM >>> DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH >>> TIME DIR >>> >>> ------------------------------------------------------------------------------------ >>> 1 1.8 7.8 12.43 -2.1 8.05 16.4 0.0 0.0 1.3 14.5 >>> 12.33 NNE >>> 2 3.2 12.1 12.15 -3.3 8.06 15.1 0.0 0.0 4.5 40.2 >>> 13.10 N >>> 3 1.3 7.6 13.40 -4.3 7.47 17.0 0.0 0.0 3.5 17.7 >>> 4.44 WSW >>> 4 0.6 5.5 14.13 -4.1 7.59 17.7 0.0 0.0 4.5 25.7 >>> 13.00 NE >>> 5 -1.1 4.4 15.35 -4.8 7.08 19.3 0.0 0.0 1.3 11.3 >>> 15.09 NNE >>> 6 0.7 9.4 14.01 -5.6 7.58 17.7 0.0 0.0 2.3 16.1 >>> 13.04 SSW >>> 7 3.0 6.0 12.47 -1.4 0.34 15.3 0.0 0.0 1.6 11.3 >>> 12.54 NE >>> 8 2.8 5.6 14.52 -1.3 00.00 15.4 0.0 0.0 1.9 14.5 >>> 13.26 NE >>> 9 1.7 7.5 13.37 -2.4 8.05 15.9 0.0 0.0 1.8 12.9 >>> 7.25 NE >>> >> -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
