Javascript digital clock & weather forecast (HTC Hero inspired)
GNU General Public License v3.0
6
stars
7
forks
source link
jdigiclock
Install
- Only works with MeteoFrance
- Require Jquery library
- 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>
<script type="text/javascript" src="https://github.com/tcellerier/jdigiclock/raw/master/jquery.ajax-cross-origin.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://github.com/tcellerier/jdigiclock/blob/master/jquery.jdigiclock.css">
</head>
<body>
<div id="digiclock"></div>
<script type="text/javascript" src="https://github.com/tcellerier/jdigiclock/raw/master/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',
am_pm : false, // Specifies the AM/PM option.
weatherLocationCode : '751170', // Meteofrance city code
weatherUpdate : 60, // Weather update in minutes.
svrOffset: 0
});
</script>