// This file is part of iWDL
//
// iWDL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iWDL is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with iWDL.  If not, see <http://www.gnu.org/licenses/>.

//
// Settings for the iWDL mobile phone webapp
// By Sietse Visser (sietse@sietse.nl)
// Version 1.3
//

// Where are the clientraw files
settings["clientraw_dir"] = "../";

// What units to use
// temp:   c f
// wind:   kn mph kmh ms
// wdir:   deg abbr        -- abbr will show W, NNE etc.
// rain:   mm in
// baro:   hpa mb hg
// time:   24 12
// date:   y-m-d y/m/d d-m-y d/m/y m-d-y m/d/y
// height: ft m
settings["temp"]   = "c";
settings["wind"]   = "ms";
settings["wdir"]   = "abbr";
settings["rain"]   = "mm";
settings["baro"]   = "hpa";
settings["height"] = "m";
settings["time"]   = "24";
settings["date"]   = "d/m/y";

//Language to use; a file named iwdl_lang_<language>.js must exist.
// Possible languages: cz de dk en fi fr hu it nl no pt se sp
settings["lang"] = "fi";
settings["all_langs"] = [ "cz", "de", "dk", "el", "en", "fi", "fr", "hu", "it", "nl", "no", "pt", "se", "sp" ];

// Station name override; iWDL normally uses the station name from the clientraw.txt.
// In case you want another name to show up in the top bar, remove // in the following line:
// settings["station_name"] = "Utrecht";

// Location name override; iWDL normally uses the coordinates from clientraw.txt.
// In case you want another location to show up in the map screen, remove // in the following line:
// settings["location"] = "Utrecht, NL";

// Station type; if this setting is not defined, Weather Display is assumed.
// Meteohub has another stationname/time separator, and negates longitude
// Possible setting: meteohub
// settings["station_type"] = "meteohub";

// Forecast; possible types:
// yr.no   -- get forecast from yr.no
// url     -- provide your own forecast
settings["forecast"] = "yr.no";

// Where to get the forecast; go to http://yr.no, find the forecast for your location
// and fill in the last part of the url like below.
settings["yr.no"] = "Finland/Southern_Finland/Kirkkonummi";

// When using yr.no, decide weather to show date and/or day of the week.
// Possible settings: date day date-day day-date
settings["date_day"] = "weekday";

// When 'forcast' set to 'url', fill in the url (it will be shown in an iframe).
// NOTE: You are responsible for a readable mobile phone page!
// The forecast_from field is shown at the bottom of the forecast screen
settings["forecast_url"] = "http://mobil.silkeborg-vejret.dk/vejrudsigt.php";
settings["forecast_from"] = "Silkeborg";

// If you have radar data, uncomment the following and set the url here; it is shown in an iframe
settings["radar"] = "http://saatutka.mobi/";

// If you have a webcam, uncomment the following and set the url here; it is shown in an iframe
settings["webcam"] = "http://veikkola-weather.com/iwdl/iwdl_webcam.html";

// Refresh period for live weather in seconds; 15 secs x 120 times = 30 minutes
// The number of refreshes is limited to prevent draining the battery if the page is still
// active in safari (even when the phone is turned off).
settings["refresh"]     =  15;
settings["num_refresh"] = 12;

// What to display on the live screen
// The numbers correspond with the ones in iwdl_lang_en.js
settings["home"]        = [4, 44, 5, 6, 7, 3, 1];
settings["live_screen"] = [4, 44, 45, 130, 5, 6, 7, 12, 13, 73, 3, 1, 2];
settings["min_max"]     = [47, 46, 137, 136, 76, 75, 78, 77, 111, 110, 129, 128, 132, 131, 11, 71, 113];

// Which records to show; possible values are
// temp wind rain baro soil grass solar uv
settings["records"] = ["temp", "wind", "rain", "baro"];

// If you want to toggle humidex (temp > 17C) and windchill (temp < 17C), then uncomment following option.
// In the live screen setting (see above), use either field 44 or 45, it will toggle
settings["humchill"] = "toggle";

// If you want to toggle heat index  (temp > 17C) and windchill (temp < 17C), then uncomment following option.
// In the live screen setting (see above), use either field 44 or 112, it will toggle
// settings["heatchill"] = "toggle";

// Possible settings for hour graphs:
// temp_out, humid_out, rain, baro, wind_speed, wind_gust, wind_dir, solar_wm
settings["hour_graphs"] = [ "temp_out", "humid_out", "baro", "rain",
                            "wind_speed", "wind_gust", "wind_dir" ];

// Possible settings for day graphs:
// temp_out, humid_out, rain, baro, wind_speed, wind_dir, solar_wm, solar_uv, temp_in
settings["day_graphs"] = [ "temp_out", "humid_out", "baro", "rain",  
                           "wind_speed", "wind_dir", "temp_in" ];

// Possible settings for week graphs:
// temp_out, humid_out, baro, wind_speed, wind_dir, solar_wm, solar_uv
settings["week_graphs"] = [ "temp_out", "humid_out", "baro", "wind_speed", "wind_dir"];

// Possible settings for month graphs:
// temp_high, temp_low, humid_out, rain, baro, wind_speed, wind_dir, rain_year
settings["month_graphs"] = [ "temp_high", "temp_low", "humid_out", "baro", "rain",
                             "wind_speed", "wind_dir", "rain_year" ];

// Next settings only needed if lat/long is not in your clientraw.txt; below are coordinates in Netherlands
// Negative values for east of Greenich and southern hempisphere
// settings["longitude"] = -5.119144;
// settings["latitude"]  = 52.08144;

// If you don't like the yellow background color, set your own color here:
settings["bgcolor"] = "#e0e0a0";
