forked from ekantola/infodisplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.local.js.tmpl
46 lines (39 loc) · 1.39 KB
/
config.local.js.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
infodisplayConfig = $.extend({}, infodisplayConfig, (function() {
var config = {};
// Reittiopas
config.reittiopas = {};
config.reittiopas.username = "<INSERT USERNAME HERE>";
config.reittiopas.password = "<INSERT PASSWORD HERE>";
config.reittiopas.baseUrl = 'http://api.reittiopas.fi/public-ytv/fi/api/?user=' + config.reittiopas.username + '&pass=' + config.reittiopas.password + '&stop=';
config.reittiopas.stops = [ // Examples
{
name: "Long walk",
url: config.reittiopas.baseUrl + '1055'
},
{
name: "Short walk",
url: config.reittiopas.baseUrl + '1045'
}
];
// Weatherbug
config.weatherbug = {};
config.weatherbug.API_CODE = '<INSERT CODE HERE>';
config.weatherbug.BASE_URL = 'http://' + config.weatherbug.apiCode + '.api.wxbug.net/getLiveWeatherRSS.aspx';
// Search city codes by 'http://a4673533785.api.wxbug.net/getLocationsXML.aspx?ACode=A4673533785&SearchString=<city name>'
config.weatherbug.locations = [ // Examples
{ name: "Helsinki", code: 62073 },
{ name: "Tampere", code: 62152 },
{ name: "Berlin", code: 58439 }
];
// Taxi (optional)
/*
config.taxi = {
sms: {
number: '13170',
address: 'helsinki vattuniemenranta 2'
},
phone: '0100 0700'
}
//*/
return config;
})());