Short answer, when using the inbuilt FORMAT strings - no.
Long answer - see the templates - which are lacking instruction but
follow standard weewx methods - I believe.

Despite being the author / maintainer of weewx-mastodon I had to go
back and check on the code.

It gets its units directly from the raw data, the archive values.

day.rain.sum is generated at a later stage of the weewx cycle by the
StdReport engine.

If however you use the template method, whereby you generate a
StdReport in your skins DATA directory - eg:-
skins/Seasons/DATA/mastodon.txt.tmpl then you should be able to do
what you are asking.

It's been a long while since I've looked at it, but I believe that will do it .
The README notes for 24th Jan 2023 v0.04 outline one hiccup when
testing the templates but it should be straight forward.
Use the default as is then start tweaking it.


On 29/08/2023, Invisible Man <[email protected]> wrote:
> I am using the Mastodon extension for
> Weewx. https://github.com/glennmckechnie/weewx-mastodon.
> I believe my question is however not strictly related to this extension,
> see below.
>
> It is possible to format the message which is tooted regularly and supply a
>
> specific format.
> One of the default formats is:
>
> ```
> format = '{station:%s} ' \
>          '\n Windspeed: {windSpeed:%.1f} ' \
>          '\n Winddir: {windDir:%03.0f} ' \
>          '\n Windgust: {windGust:%.1f} ' \
>          '\n outTemp: {outTemp:%.1f} ' \
>          '\n outHumidity: {outHumidity:%.2f} ' \
>          '\n Pressure: {barometer:%.3f} ' \
>          '\n Rain: {rain:%.3f} ' \
>          '\n Date Time: {dateTime:%d %b %Y %H:%M}'
> ```
>
> The value of the rain does not work well for me, because, to my
> understanding, it's the current rain, and I seldom have rain, so I rather
> want to have at least the daily sum of rain. I thought I could perhaps
> change the format to {day.rain.sum:%.3f}, but it is not understood...
>
> So, how can I get this daily sum?
>
> The code imports the following modules.
>
> ```python
> import weewx
> import weewx.restx
> import weewx.units
> from weeutil.weeutil import to_bool
> ```
>
> -- Axelle.
>
> --
> 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/6d7873c7-f325-414a-9471-d9387b469802n%40googlegroups.com.
>


-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
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/CAAraAzicMF23ZNYq1cQrhBDaAZBwJtiBExKqszTp9n6N9gXHfA%40mail.gmail.com.

Reply via email to