Giter Site home page Giter Site logo

sntp's Introduction

This is a small utility developed for the Nintendo Wii which will synchronize the system time to the NTP time.

There are two options on how to use this utility:
1. Manual adjustment using the wii mote or gamecube controller.
Timezones are not remembered and will have to be adjusted manually by the user.

2. Configuration using a timezone configuration file.
Create a tzdb.cfg on the root of the SD card in your wii.

Populate it with the following lines:

http://api.timezonedb.com/v2.1/get-time-zone?key=MY_API_KEY&format=json&by=zone&zone=America/Toronto&fields=gmtOffset
autosave

Register an account at timezonedb.com
Change the MY_API_KEY to the api key you will receive.

Change the timezone from the list available at: https://timezonedb.com/time-zones

If you want the utility to exit automatically after adjustment keep the autosave, otherwise remove.

Implementation details:
Timekeeping is done by reading the (ever incrementing) Real Time Clock (RTC) and a counter bias stored in a system configuration.
If you adjust your time in the wii menu or by using this program the counter bias is changed.
There is always a risk that updating this counter bias could corrupt your system as it is part of the system configuration.

I shall not be held responsible if this would happen.
I have of course tested this on my Wii system and it works for me.

Happy hacking!

sntp's People

Contributors

erikandren avatar yoyoma2 avatar

Stargazers

Jevin Sweval avatar Ivan Semkin avatar Kevon Fernando avatar Koki avatar Jauder Ho avatar  avatar BinotaLIU avatar

Watchers

Jevin Sweval avatar James Cloos avatar  avatar  avatar Gamebrew avatar Koki avatar

sntp's Issues

Minute offsets aren't supported

SNTP only supports time-zones with hour offsets, this is an issue, because some time zones, such as Newfoundland Time (UTC-3:30) have minute offsets. While there aren't many people in timezones with minute offsets using Wiis, I feel it should still be implemented for the few people who do.

A daylight savings mechanism?

Hi there, I've just been trying to get RiiConnect24 working on my Wii and this very piece of homebrew was recommended as something to run beforehand. Frustratingly, the current time zone in my area is UTC+13 which can't be set as a valid option. As a result, the Forecast Channel won't work since the time doesn't match up.
FYI, I've read issue #1, but I think signing up to a web API is a bit overkill for setting the time...

A few issues and requests

  1. The icon.png doesn't work in the homebrew channel 1.1.2. The size must be 128x48
  2. The meta.xml file still says 1.0.0 even though I downloaded sntp-v1.1.0.zip so hbc displays 1.0.0 in the load screen.
  3. Had to rename sntp.dol to boot.dol for hbc to find it and put it in the menu
  4. Would be great if gamecube controllers were supported. Homebrew channel and wiiflow both support GC controllers so I don't have a wiimote with a good battery (wii boots directly into wiiflow).
  5. Would be great if a nameserver specified in a text file if present could override the default one.
  6. Specifying the hour offset in a file would be nice too but don't know how to solve the daylight savings time issue...

Congrats on a cool utility!

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.