Giter Club home page Giter Club logo

autoclock's Introduction

AutoClock

WeMos

A simple internet-enabled clock driven by NTP and GeoIP to give an automatic offset from UTP for your location.

My wife bought a clock that seems to lose about ten minutes a day and is constantly adjusting it, and it drove me bonkers. The clock maker, who will remain nameless (but Bush Electronics seems so appropriate for a clock maker that's clocks don't keep even close to the correct time... https://en.wikipedia.org/wiki/Bush_(brand)) has made my days a constant quest for the correct time - I think I have developed Chronophobia.

To resolve this:

I used a WeMos D1 Mini, but you could use any ESP8266 module or any ethernet shield or wireless shield, with suitable modifications.

I am building a much bigger clock, but used this code and the tiny < 1 inch OLED display to sort out the automatic NTP time and setting the offset for the location.

It has been tested in Welligton NZ and Brunei Darussalam as of this writing.

It uses JSON to parse the API data from http://ip-api.com and https://timezonedb.com, but in theory you could use any GEO-IP database and timezone reconciliation service. These are both free for hobby use, don't sell your details to the Mob and seem to not have sent me one single piece of spam in the last year.

You will need to sign up for an API with https://timezonedb.com but it's more to track you don't abuse the system than to assist any Nigerian princes looking to get a partner or to help them repatriate the millions of dollars they have stuck in the bank.

1.8.9 June 2019

autoclock's People

Contributors

kd8bxp avatar myk3y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autoclock's Issues

Does offset update?

Nicely done. But I don't see how offset gets updated after startup(), such as when DST changes twice a year.

External libs description

Where can I find this libs?
#include <TimeLib.h>
I've searched in Arduino Library Manager, but didn't find anything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.