Simple webpage with weather information.
Go to: http://kindle.hrincar.eu/weather/ and that's it!
or you can install it on your own server, customize it, or run it locally on your Kindle.
Please, if you use this website, generate your free OWM token (see: https://openweathermap.org/api for more info), because the default token can be blocked and changed at any time and the weather forecast can stop working.
- current weather and temperature
- forecast: hourly every 3 hours (next 12 hours, landscape mode for 15 hours) or daily for 4/5 days
- sunrise and sunset
- Moon phase
- portrait and landscape mode
- landscape mode on Paperwhite!! see configuration
- configurable place, units, language
- automatic night mode
- tested on Kindle 3/4/5, Paperwhite 3, iPad Air, it may also work on other Kindles and devices,
Weather and forecast source: https://openweathermap.org/
Icons source: https://github.com/erikflowers/weather-icons
- clone or download repository
- generate your free API key (AppId) at http://openweathermap.org/appid
- rename
config.js.sampletoconfig.jsand set the parameters you need (all parameters are optional and can be set in the HTML webpageconfig.html, but I recommend setting at least theapi_appId) - copy the folder with all files to the root of Kindle storage
- disable the screensaver on your Kindle:
- press the search button (or keyboard button on Kindle 4) on homescreen and type:
;debugOnand press enter on the keyboard - press the search button (or keyboard button on Kindle 4) again and type:
~disableScreensaverand press enter on the keyboard. (On Kindle Paperwhite, type:~ds- with new firmware this may not be possible, but see these instructions for a solution)
- launch the browser on your Kindle and go to:
file:///mnt/us/kindle-weather-dashboard/index.html(wherekindle-weather-dashboardis the folder in the root of your Kindle storage from step 4)
create a config.js file from config.js.sample and set variables:
api_locParams- query parameters to set location (e.g.lat=50&lon=14, orq=Paris)api_appId- set yourAPI KEY (appId)from http://openweathermap.org/appidapi_lang- output language (e.g.en, default:en)api_units- units:metric(°C),imperial(°F),standard(K) (default:metric)- or you can set all API parameters at once with the
api_paramsvariable (e.g.q=Prague&appid=YOUR_API_KEY&lang=sk&units=metric). Note: whenapi_paramsis set,api_locParams,api_appId,api_lang,api_unitsand their URL counterparts (city,lat,lon,appId,lang,units) are ignored. rotation- force rotation (on Kindle Paperwhite)llfor left landscape,lrfor right landscape, andupfor upside down (default: none)night_mode-auto- based on sunrise and sunset,on- always on,HH-HH(22-06) interval for on/off,offornullto disable (default:off)refreshTime- refresh rate in milliseconds (default: 30 minutes)utcOffset- if not set, it is determined by location (default:auto),local- local machine UTC offset, or custom UTC offset. (Because Kindle doesn't report the correct local time. You may need to change the value after the winter/summer time change)tempType- usefeelsLikefor current weather and hourly forecast; daily forecast uses actual min/max temps (default:actual)forecastType-hourfor 3-hour steps ordailyfor daily forecast (default:hour)
See more: http://openweathermap.org/current, http://openweathermap.org/forecast and http://openweathermap.org/forecast16
appIdsets the appIdcitysets the city (e.g.city=Paris)lat,lonset location (e.g.lat=50&lon=14)langsets language (default:en)unitssets units:metric(°C),imperial(°F),standard(K) (default:metric)rotationsets the rotation (default: none)utcOffsetsets UTC offset (default: auto by location)tempTypesets temperature type -actualorfeelsLike(default:actual)forecastTypesets forecast type -hourordaily(default:hour)nightsets night mode -off,auto,on(default:off)refreshTimesets refresh interval in minutes (default: 30)
Examples:
- Dashboard for Prague, metric units, Slovak language:
http://YOUR_URL/?city=Prague&lang=sk&units=metric&appId=YOUR_API_KEY - Dashboard for a given GPS location, metric units, default language:
https://YOUR_URL/?lat=50&lon=14&units=metric&appId=YOUR_API_KEY


