-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php.sample
More file actions
42 lines (37 loc) · 1.44 KB
/
Copy pathsettings.php.sample
File metadata and controls
42 lines (37 loc) · 1.44 KB
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
<?php
global $AprsFiKey;
# API key of APRS.FI
$AprsFiKey = 'CHANGE ME!';
global $ApiCacheTtl;
# Seconds to cache upstream aprs.fi / TTN responses (shared across clients). Default 15.
$ApiCacheTtl = 15;
global $TtnApiKey;
# API key for The Things Network Storage Integration (RIGHT_APPLICATION_TRAFFIC_READ)
$TtnApiKey = 'CHANGE ME!';
global $TtnAppId;
# TTN application id that owns the devices
$TtnAppId = 'CHANGE ME!';
global $TtnRegion;
# TTN cluster/region host prefix (eu1, nam1, au1, ...)
$TtnRegion = 'eu1';
global $TtnApps;
# Multi-application config for ttn.php. One entry per TTN application:
# app_id : TTN application id
# key : API key with RIGHT_APPLICATION_TRAFFIC_READ
# region : cluster host prefix (eu1, nam1, au1, ...)
# schema : payload decoder — 'cayenne' (gps_N/temperature_N/digital_out_N)
# or 'servet' (type 1 = GPS, type 2 = sensors)
# devices : device_ids that belong to this application
$TtnApps = [
[
'app_id' => $TtnAppId,
'key' => $TtnApiKey,
'region' => $TtnRegion,
'schema' => 'cayenne',
'devices' => ['CHANGE ME!'],
],
// Add more applications here, e.g.:
// [ 'app_id' => 'CHANGE ME!', 'key' => 'CHANGE ME!', 'region' => 'eu1',
// 'schema' => 'servet', 'devices' => ['CHANGE ME!'] ],
];
?>