Skip to content

Commit

Permalink
Update lunar phase every 3 minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
CelliesProjects committed May 17, 2018
1 parent a9e9d2b commit 569da83
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 185 deletions.
1 change: 1 addition & 0 deletions webif/channels.htm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ <h2 id="hostName">&nbsp;</h2>
if ( truncated.indexOf( ".") != -1 ) truncated = truncated.substr( 0, truncated.indexOf( ".") + 2);
$( '#lunarPhase' ).html( '<p class="infobar">Moon is ' + truncated + '% illuminated</p><img src="https://aquacontrol.wasietsmet.nl/near_side_256x256x8/' + phase[0] + '.png">' );
$( '#copyright').html( '<p class="copyright">Lunar images author: Jay Tanner</p><p><a href="http://creativecommons.org/licenses/by-sa/3.0/legalcode" target="_blank">Image license: Creative Commons 3.0</a>-<a href="http://www.neoprogrammics.com/lunar_phase_images/" target="_blank">Original image set</a></p>').show();
setTimeout( getLunarPhase, 180 * 1000 );
})
.fail( function( data ) {
$('.lighttype').html('MINIMUM:');
Expand Down
Loading

0 comments on commit 569da83

Please sign in to comment.