-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.local.js.tmpl
50 lines (43 loc) · 1.49 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
47
48
49
50
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',
description: 'the S-Market stop, 900 m',
id: '1055',
maxDepartures: 4
},
{
name: 'Short walk',
description: 'the Pianissimo stop, 300 m',
id: '1045',
maxDepartures: 4
}
];
// Weatherbug
config.weatherbug = {};
config.weatherbug.apiCode = '<INSERT CODE HERE>';
config.weatherbug.baseUrl = 'http://' + config.weatherbug.apiCode + '.api.wxbug.net/getLiveWeatherRSS.aspx';
// Search city codes by 'http://<APICODE>.api.wxbug.net/getLocationsXML.aspx?ACode=<APICODE>&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;
})());