From eb17eccb27b9fd2c3b7617716bc1f5d38b09ac28 Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Mon, 18 Sep 2017 23:10:36 +0200 Subject: [PATCH] =?UTF-8?q?Passage=20=C3=A0=20un=20MQTT=20mosquitto=20en?= =?UTF-8?q?=20localhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arduino/mqtt_esp8266_BME280/mqtt_esp8266_BME280.ino | 2 +- cameteo-interface/cameteo.conf | 10 +++++----- cameteo-interface/mqtt2epaper.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arduino/mqtt_esp8266_BME280/mqtt_esp8266_BME280.ino b/arduino/mqtt_esp8266_BME280/mqtt_esp8266_BME280.ino index 67d9a79..e98b92b 100644 --- a/arduino/mqtt_esp8266_BME280/mqtt_esp8266_BME280.ino +++ b/arduino/mqtt_esp8266_BME280/mqtt_esp8266_BME280.ino @@ -15,7 +15,7 @@ /************************* MQTT broker Setup *********************************/ -#define MQTT_SERVER "192.168.0.3" +#define MQTT_SERVER "192.168.0.18" #define MQTT_SERVERPORT 1883 // use 8883 for SSL #define MQTT_USERNAME "arofarn" #define MQTT_KEY "WaKaW9XMGUZ3rRJD" diff --git a/cameteo-interface/cameteo.conf b/cameteo-interface/cameteo.conf index 041d27d..f1bc6e4 100644 --- a/cameteo-interface/cameteo.conf +++ b/cameteo-interface/cameteo.conf @@ -1,7 +1,7 @@ [SQL] -sql_host = aro-yuno -sql_port = 3306 -sql_base = iot_test +sql_host = localhost +sql_port = 3306 +sql_base = cameteo sql_user = arofarn sql_pass = WaKaW9XMGUZ3rRJD sql_sys = mysql @@ -9,7 +9,7 @@ sql_api = pymysql sql_verbose = 0 [MQTT] -mqtt_host = aro-yuno +mqtt_host = localhost mqtt_port = 1883 mqtt_client_id = cameteo mqtt_user = arofarn @@ -23,7 +23,7 @@ camera_resolution_x=2592 camera_resolution_y=1944 camera_warmup_time=2 camera_iso=0 -camera_rotation=0 +camera_rotation=180 camera_auto_white_balance=auto camera_exposure_mode=auto camera_contrast=0 diff --git a/cameteo-interface/mqtt2epaper.py b/cameteo-interface/mqtt2epaper.py index e3be8d2..30bd59c 100644 --- a/cameteo-interface/mqtt2epaper.py +++ b/cameteo-interface/mqtt2epaper.py @@ -61,7 +61,7 @@ def on_message(client, userdata, msg): if val['type'] in coord_type: disp.Dis_String(125, coord_type[val['type']], "{} {} ".format(val['value'], val['unit']), 16) -#Callback particulier pour gérer les date/heure arrivent sur le broker MQTT +#Callback managing date and time from MQTT broker def on_message_date(client, userdata, msg): payload = msg.payload.decode() print("Date : " + payload)