Thanks for the suggestions.  I found this way, although not particular to 
Weewx, but it works.

1st - get text for warnings via script, and pipe to a file (run the script 
every 5 min with cron): 

curl https://alerts.weather.gov/cap/wwaatmget.php?x=OKZ060 | awk -F'[<|>]' 
'BEGIN{ORS="<br><br>";} /<title>|<summary>/ {print $3 "\n"}' > 
/var/www/weewx/exfoliation/warnings.html

2nd - include the text somewhere in your skin templates:

<object type="text/html" width="800" height="600" 
data="warnings.html"></object>

This presumes you are using exfoliation, on Ubuntu server.  Modify to fit 
your needs.  I am sure someone with more experience could suggest 
improvements, or do this with python and make it native to Weewx.

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