weatherlink template (.htx) equivalence with weeWX?

57 views
Skip to first unread message

P C

unread,
Jan 1, 2021, 8:57:35 AM1/1/21
to weewx-user
Hello all,

First of all, let's hope we get out of this cr...y year to have a wonderful 2021;)

With weatherlink, there is a way, (via ".htx" files), to "output" some values in order to build your own page. For example, I use "<! - Date ->
<! - Time ->
<! - outsideTemp ->
<! - outsideHumidity ->
<! - barometer ->
<! - BarTrend ->
<! - windSpeed ->
<! - windDirection ->
<! - rainRate ->
<! - ForecastStr ->
<! - dailyRain ->
<! - sunriseTime ->
<! - sunsetTime -> "which help me build my WEB page header.
My question is: is there an equivalent with WeeWX?

Thank you and good to you,
Pascal

Tom Keffer

unread,
Jan 1, 2021, 10:03:29 AM1/1/21
to weewx-user
Yes. There's a whole guide to writing templates. The equivalent to your example would be something like (NOT TESTED):

$current.datetime
$current.outTemp
$current.outHumidity
$current.barometer
$trend.barometer
$current.windSpeed
$current.windDir
$current.rainRate
$day.rain.sum
$almanac.sun.rise
$almanac.sun.set

The forecast string would come from a weather forecast extension.

-tk




--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/74b9470b-7396-4823-aaec-b87cf1d82774n%40googlegroups.com.

P C

unread,
Jan 1, 2021, 11:05:59 AM1/1/21
to weewx-user
thank you,

I forgot to specify that
  1. I am a beginner
  2. but especially that it is for Davis Vantage station whose consoles give a not too bad forecast string: ForecastStr
    But now, I suppose it also depends on the driver?

P C

unread,
Jan 1, 2021, 11:27:05 AM1/1/21
to weewx-user

but especially that it is for Davis Vantage station whose consoles give a not too bad forecast string: ForecastStr
But now, I suppose it also depends on the driver?



Yes, and to read http://www.weewx.com/docs/hardware.htm#vantage_data it is not planned :(

Am I wrong ?

P C

unread,
Jan 3, 2021, 6:42:57 AM1/3/21
to weewx-user
Hello Tom and Company
I hadn't made the connection between Tom Keffer and "THE" Tom Keffer. Congratulations and admiration for this immense work!

I continue my quest for the Davis Vantage station forecast. The driver does map a forecastrule byte, moreover very little documented by the manufacturer in its technical PDF (it mentions its presence at offset 33 and Weather forecast rule at the end of the archive period.) and nothing more.
But I found a listing there: https://cumulus.hosiene.co.uk/viewtopic.php?f=25&t=4561&start=705 I don't know if it's the official one, because there is redundancies. There are also phrases  which appear at particular times depending on the weather at the moment ("ITS RAINING CATS N DOGS") or ephemeris ( Solstices, equinoxes, eclipses ...)
I'll email Davis to try to get an answer.

So Tom & Cie, how could I have this number in a Skin and by extension, the corresponding text?
Although I understand it a bit, I don't know Python well enough to implement this.

Kind regards to you all,
Pascal
Reply all
Reply to author
Forward
0 new messages