Help wanted: Hubble - birthday APOD coding

Introductions, Rules, Announcements, and Feedback
User avatar
RJN
Baffled Boffin
Posts: 1563
Joined: Sat Jul 24, 2004 1:58 pm
Location: Michigan Tech

Help wanted: Hubble - birthday APOD coding

Post by RJN » Wed Apr 01, 2020 5:40 pm

A volunteer is sought to make this page: https://www.nasa.gov/content/goddard/wh ... r-birthday into an APOD. A very simple HTML type code, perhaps using the iframe command, is sought. The result would be a standard-looking APOD but with the picture replaced, at first, by an interactive query for the month and day of the user. After entry, the picture would then be replaced with the Hubble image taken on that day. If this turns out to work well enough, the result could be used on APOD and the volunteer given a credit. Please post any progress as a reply to this post to avoid duplication of effort. And thanks in advance for any efforts you can give.

- RJN

User avatar
geckzilla
Ocular Digitator
Posts: 9086
Joined: Wed Sep 12, 2007 12:42 pm
Location: Modesto, CA

Re: Help wanted: Hubble - birthday APOD coding

Post by geckzilla » Thu Apr 02, 2020 7:22 am

Have you tried placing this where the image normally goes on an APOD test page? I wanted to try something simple like that, but I can't actually test it because my test document is not located on a nasa.gov server. Seems only nasa.gov websites can load the iframe. Edit width and height as you see fit.

Code: Select all

<iframe seamless="seamless" width="985" height="544" src="https://imagine.gsfc.nasa.gov/hst_bday/" frameborder="0"></iframe>
Just call me "geck" because "zilla" is like a last name.

User avatar
RJN
Baffled Boffin
Posts: 1563
Joined: Sat Jul 24, 2004 1:58 pm
Location: Michigan Tech

Re: Help wanted: Hubble - birthday APOD coding

Post by RJN » Thu Apr 02, 2020 4:19 pm

Thanks! I'll try that and report back.

User avatar
RJN
Baffled Boffin
Posts: 1563
Joined: Sat Jul 24, 2004 1:58 pm
Location: Michigan Tech

Re: Help wanted: Hubble - birthday APOD coding

Post by RJN » Thu Apr 02, 2020 9:23 pm

Unfortunately, that didn't seem to work:
https://apod.nasa.gov/apod/fap/BdayTest.html
(Please ignore the rest of the text.)

Any more ideas?

User avatar
geckzilla
Ocular Digitator
Posts: 9086
Joined: Wed Sep 12, 2007 12:42 pm
Location: Modesto, CA

Re: Help wanted: Hubble - birthday APOD coding

Post by geckzilla » Fri Apr 03, 2020 10:44 pm

Ah, ok, so the person responsible for the birthday website would have to add an http header that would allow apod.nasa.gov to display the content in the iframe, so I'm afraid that won't work unless you know who to contact. If you did know how to contact, it's actually a pretty easy thing to do.

Another option would be to download all 365 images (assuming 1 image possible per day) and re-code it specially for APOD. The code could be fairly simple, but downloading all the images isn't as easy. And the site temporarily is down right now, as I write this.
Just call me "geck" because "zilla" is like a last name.

User avatar
geckzilla
Ocular Digitator
Posts: 9086
Joined: Wed Sep 12, 2007 12:42 pm
Location: Modesto, CA

Re: Help wanted: Hubble - birthday APOD coding

Post by geckzilla » Wed Apr 15, 2020 7:36 am

Ok, now that it's back up and running, I found the csv file which contains pretty much all the data anyone would need to create a new app. Curious to know if you have tried contacting Stephen Fantasia (I sure do recognize this name!) yet to see if you can simply get permission to load it as an iframe, though. I just realized he's the one to contact, which I discovered after trying to load a nonexistent page accidentally, such as: https://imagine.gsfc.nasa.gov/asdf
Just call me "geck" because "zilla" is like a last name.