loading
1 Comments

Tell us about yourself!

Complete Your Profile
  • Raspberry Pi: Wall Mounted Calendar and Notification Center

    Make sure to define an element with id="clock"<!DOCTYPE html><html><head></head><body><scan id="clock"></span><script language="JavaScript"> <!-- Getting the current date and time and updates them every second --> setInterval(function() { var currentTime = new Date ( ); var currentHours = currentTime.getHours ( ); var currentMinutes = currentTime.getMinutes ( ); var currentMinutesleadingzero = currentMinutes > 9 ? currentMinutes : '0' + currentMinutes; // If the number is 9 or below we add a 0 before the number. var currentDate = currentTime.getDate ( ); var weekday = new Array(7); weekday[0] = "Sunday"; weekday[1] = "Monday"; weekday[2] = "Tuesday"; weekday[3] = "...see more »Make sure to define an element with id="clock"<!DOCTYPE html><html><head></head><body><scan id="clock"></span><script language="JavaScript"> <!-- Getting the current date and time and updates them every second --> setInterval(function() { var currentTime = new Date ( ); var currentHours = currentTime.getHours ( ); var currentMinutes = currentTime.getMinutes ( ); var currentMinutesleadingzero = currentMinutes > 9 ? currentMinutes : '0' + currentMinutes; // If the number is 9 or below we add a 0 before the number. var currentDate = currentTime.getDate ( ); var weekday = new Array(7); weekday[0] = "Sunday"; weekday[1] = "Monday"; weekday[2] = "Tuesday"; weekday[3] = "Wednesday"; weekday[4] = "Thursday"; weekday[5] = "Friday"; weekday[6] = "Saturday"; var currentDay = weekday[currentTime.getDay()]; var actualmonth = new Array(12); actualmonth[0] = "January"; actualmonth[1] = "February"; actualmonth[2] = "March"; actualmonth[3] = "April"; actualmonth[4] = "May"; actualmonth[5] = "June"; actualmonth[6] = "July"; actualmonth[7] = "August"; actualmonth[8] = "September"; actualmonth[9] = "October"; actualmonth[10] = "November"; actualmonth[11] = "December"; var currentMonth = actualmonth[currentTime.getMonth ()];var currentTimeString = "<h2>" + currentHours + ":" + currentMinutesleadingzero + "</h2><h2>" + currentDay + " " + currentDate + " " + currentMonth + "</h2>"; document.getElementById("clock").innerHTML = currentTimeString;}, 1000); </script> </body></html>

    View Instructable »