sinopsysHK / jdigiclock

Javascript digital clock & weather forecast (HTC Hero inspired)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jdigiclock

Install

  • Require Jquery library (cf. code below)
  • Copy the project files and insert the code below in an html page located in the same folder
  • Change the parameters in the code below to fit your needs
<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.jdigiclock.css">
</head>
<body>
<div id="digiclock"></div>
<script type="text/javascript" src="jquery.jdigiclock.js"></script>
<script>
$('#digiclock').jdigiclock({
    imagesPath : 'images/', // Base path to image files. Clock and Weather images are located in subdirectories below this
    lang: 'fr', // Language of date : fr or en
    am_pm : false, // Specifies the AM/PM option.
    weatherLocationCode : '615702', // Weather location code (see lookup: woeid.rosselliot.co.nz).
    weatherMetric : 'C', // Specifies the weather metric mode: c or f.
    weatherUpdate : '60', // Weather update in minutes.
    svrOffset: 0  // Server offset in milliseconds.
});
</script>
</body>
</html>

Preview

alt tag

Changelog

Version 2.1.5 - 2017-01-14

  • Fix API Yahoo

Version 2.1.4 - 2016-05-31

  • Modification by Thomas Cellerier
  • Single page view, added French language

Version 2.1.3 - 2015-03-21

  • Unofficial modification by Andrew Mercer
  • Changed to use Yahoo Weather rather than defunct accuweather feed.
  • Disabled proxy as redundant with JSONP callback.
  • Server offset option allowing JDigiClock to display in specific timezone based on server-supplied time.
  • Compatibility with JQuery 1.10.2

Version 2.1.0 - 2010-02-24 (https://github.com/dineshkummarc)

Version 2.0.0 - 2009-12-06 (https://github.com/dineshkummarc)

  • Add 5-day forecast panel.

Version 1.0.0 - 2009-11-28 (https://github.com/dineshkummarc)

  • Initial release.

About

Javascript digital clock & weather forecast (HTC Hero inspired)

License:GNU General Public License v3.0


Languages

Language:JavaScript 87.5%Language:CSS 12.5%