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)