rsrsss/xquery/opml/noaa/ndbc.xqy

32 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-10-16 18:52:11 +00:00
xquery version "3.0" encoding "utf-8";
<opml version="2.0">
<head>
<title>National Data Buoy Center RSS feeds</title>
<dateModified>{format-dateTime(adjust-dateTime-to-timezone(current-dateTime(), xs:dayTimeDuration("PT0S")), "[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] GMT")}</dateModified>
<ownerName>lucidiot</ownerName>
<ownerEmail>lucidiot@envs.net</ownerEmail>
<ownerId>https://tilde.town/~lucidiot/contact.html</ownerId>
<docs>http://dev.opml.org/spec2.html</docs>
</head>
<body>
<outline
type="rss"
version="RSS"
text="All observations"
xmlUrl="https://www.ndbc.noaa.gov/rss/ndbc_obs_search.php?lat=0N&amp;lon=0E&amp;radius=11000"
language="en-us"
/>
{
doc("https://www.ndbc.noaa.gov/data/latest_obs/")//a[ends-with(@href, ".rss")]
! <outline
type="rss"
version="RSS"
text="{upper-case(substring-before(text(), '.rss'))}"
xmlUrl="{resolve-uri(@href)}"
language="en-us"
/>
}
</body>
</opml>