-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathITpings_access_database.php
34 lines (25 loc) · 1.45 KB
/
ITpings_access_database.php
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
<?php
//region ===== REQUIRED CONFIGURATION =============================================================
/** Database access settings, if you don't know what to use, contact your Webserver Administrator **/
// Typically the Web and Database server run on the same server: localhost
// If your ISP has given you a hostname, first try without the :port number
define('DBHOST', 'localhost');
//define('DBHOST', 'ourownserver.com:3306');
// The database name given by your Database Administrator
define('DBNAME', 'ITpings');
// update with your own Database user account
define('DBUSERNAME', 'YOURUSERNAME');
define('DBPASSWORD', 'YOURPASSWORD');
// this key protects your webhook from being abused by others
// The TTN HTTP Integration URI then is: ...\ITpings_connector.php?key=__ENTER_YOUR_PRIVATE_KEY_
define('YOUR_ITPINGS_KEY', '__ENTER_YOUR_PRIVATE_KEY_');
// [optional] open the ITpings_connector.php in your WebBrowser
// and see ITpings create the Database Schema
// Now define a HTTP integration in your TTN Application Console
// pointing to webhook: YOUR_WEBSERVER/ITpings_connector.php?key=YOUR_ITPINGS_KEY
// If no Tables exist yet,
// The whole Database Schema will be created by ITpings when the connector is first executed
// IFTTT - IF THIS THEN THAT Configuration
// see the URI key at https://ifttt.com/services/maker_webhooks/settings
define('IFTTT_KEY','');
//endregion == REQUIRED CONFIGURATION =============================================================