Skip to content

Javascript digital clock & weather forecast (HTC Hero inspired)

License

Notifications You must be signed in to change notification settings

tcellerier/jdigiclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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="jquery.ajax-cross-origin.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',
    am_pm : false, // Specifies the AM/PM option.
    weatherLocationCode : '751170', // Meteofrance city code
    weatherUpdate : 60, // Weather update in minutes.
    svrOffset: 0   
});
</script>

</body>
</html>

Preview

alt tag

Changelog

Version 3.2.1 - 2023-09-23

  • Fix API for Normals (switched to long & lat parameters)

Version 3.2 - 2022-02-24

  • Add seasonal average
  • Add rainfall and wind gust

Version 3.0.2 - 2021-04-11

  • Fix Meteo France API

Version 3.0.1 - 2020-08-07

Version 3.0.0 - 2019-01-05

  • Migrated to undocumented MeteoFrance API

Version 2.1.5 - 2017-01-14

  • Fixed 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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published