www/config.php.dist

Sun, 05 Jan 2020 11:42:02 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 05 Jan 2020 11:42:02 +0100
changeset 578
e75ce5bbda73
parent 185
4c25db9e8102
permissions
-rw-r--r--

Changed the interface from the iSpindels to be the same as other devices. A webpage converts each call to two standard MQTT messages. The nodes MQTT message extended with an interval parameter. iSpindels now have a generated uuid made up from the chipid.

<?php

/*
 * Check for development server
 */
if (isset($_SERVER['SERVER_NAME']) && ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0))  {

	define ('DBASE_NAME', 'bms_dev');
	define ('DBASE_HOST', 'lx02');
	define ('DBASE_USER', 'bms_dev');
	define ('DBASE_PASS', 'bms_dev');
	define ('DBASE_CHARSET', 'utf8');

	define ('EMAIL_FROM', 'noreply@mbse.ym');

	define ('MQTT_HOST', 'localhost');
	define ('MQTT_PORT', 1883 );
	define ('MQTT_USER', 'mqtt_user' );
	define ('MQTT_PASS', 'mqtt_pass' );

	setlocale ( LC_TIME , 'nl_NL' );

} else {

        define ('DBASE_NAME', 'bms_dev');
	define ('DBASE_HOST', 'lx02');
	define ('DBASE_USER', 'bms_dev');
	define ('DBASE_PASS', 'bms_dev');
	define ('DBASE_CHARSET', 'utf8');

	define ('EMAIL_FROM', 'noreply@mbse.ym');

	define ('MQTT_HOST', 'localhost');
        define ('MQTT_PORT', 1883 );
        define ('MQTT_USER', 'mqtt_user' );
        define ('MQTT_PASS', 'mqtt_pass' );

	setlocale ( LC_TIME , 'nl_NL' );

}

mercurial