tz-bounce
Node.js based timezone bounce server. Uses the public IP to reply a matched location and timezone.
Installation
cd mysitesgit clone https://github.com/StefanHamminga/tz-bounce.gitcd tz-bouncenpm install
Client usage
curl https://prjct.net/tzbounce
replies a YAML formatted message containing matched information:
Api: tz-bounce yaml v1.0.0PublicIP: 14.200.66.162Timezone: Australia/SydneyLocation: Country: AU Region: 02 City: Bondi Metro: null Latitude: -33.8939 Longitude: 151.2498
Automatic timezone selection using NetworkManager
The client.sh
tool in the repository can be placed in /etc/NetworkManager/dispatcher.d/
to update the timezone upon connecting to a network.
License & repository
This project is available on GitHub and npm
Copyright 2015 Stefan Hamminga - prjct.net
License: GPL v3.0. The license text is included in the repository.