can't you just set msg_text = "" instead of the email body body in the 
do_alarm function??  I assume you have set the subject in weewx.conf



On Wednesday, 3 April 2019 17:07:21 UTC+3, Steve2Q wrote:
>
> Hi, is there a way to suppress the body in the email sent by the Alarm 
> function? I just need to see the subject. 
> This is how a received email looks now:
>
> Alarm from Weewx-Indoor temp > 75     <-------------- I want to keep this 
> (the subject)
>
> Alarm expression "inTemp > 74.99" evaluated True at 2019-04-03 09:30:00 
> EDT (1554298200)  )
> Record:                                                                       
>                                                       
> )---------------------------------- I don't need this (the body)
> {'inTemp': 
> 75.01799999999999}                                                            
>                                 
> )
>
> Thanks
>
>

-- 
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.

Reply via email to