Open jonroberts opened 11 years ago
Can I get a template for how you want the specifics to be presented (see the <item>). What does the viewer want to see in <title> and <description>
<?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>SpaceCalNYC</title> <link>http://spacecalnyc.com</link> <description>Current Satellite Information</description> <language>en-us</language> <pubDate>Sat, 07 Sep 2002 00:00:01 GMT</pubDate> <item> <title>#SOURCE# - #TARGET# - #L# - #B#7</title> <link>http://spacecalnyc.com</link> <description> RA: #RA_STR# (#RA#) DEC: #DEC_STR# (#DEC)
</description>
</item> </channel> </rss>
current data is {'b': -59.79254216161815, 'dec_str': '-5d0m33.23s', 'ra_str': '2h17m47.519s', '_id': 'Hubble|IC1604030', 'end': datetime.datetime(2013, 1, 13, 8, 30, 40), 'target': 'Z73-BRIGHT-LAE', 'start': datetime.datetime(2013, 1, 13, 7, 51, 10), 'l': 169.69288315465354, 'source': 'Hubble', 'ra': 34.44799583333333, 'dec': -5.00923055555558}
That works for me, but change RA, DEC to ra: dec:
No need to put L and B in the title either.
Erik - the astronomer behind the myspacecal app - is interested in an RSS feed for tracking what the telescopes are up to.