tz-bounce
v1.0.3
Published
Tiny webserver replying your current best guess timezone, based on your public IP and GeoIP databases
Downloads
2
Readme
tz-bounce
Node.js based timezone bounce server. Uses the public IP to reply a matched location and timezone.
Installation
cd mysites
git clone https://github.com/StefanHamminga/tz-bounce.git
cd tz-bounce
npm install
Client usage
curl https://prjct.net/tzbounce
replies a YAML formatted message containing matched information:
Api: tz-bounce yaml v1.0.0
PublicIP: 14.200.66.162
Timezone: Australia/Sydney
Location:
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.