This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error compiling new version
#1
Good evening, after several weeks without activity we return to work.
I tried to compile the latest version, the RX_v2.0_b001 (now I have the RX_v1.0_b14 installed) and it gives me the following error:

espcomm_open_failed
espcomm_upload_mem failed

Also on the TX board I installed an AM2302 temperature / humidity sensor which, according to the distributor, is identical to the DHT22 but the outside temperature is not updated

It is very possible that it is a rookie error ...   Huh

Thanks and Merry Christmas

M.
Reply
#2
Hi,

Quote:espcomm_open_failed
espcomm_upload_mem failed

This not seem a compilation error but a communication error. Check you have selected the correct COM port.

Quote:Also on the TX board I installed an AM2302 temperature / humidity sensor which, according to the distributor, is identical to the DHT22 but the outside temperature is not updated

Indeed the AM2303 is identical to DHT22. Check the connections, and use the Debug options on the TX sofware to be sure that the sensor is being read.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel



Reply
#3
Ok, I'm beginning to understand how this works.

I have activated the TX Debug and I see that the temperature sensor works on the monitor but the screen does not update. Also, now I have the RX and the TX on the table and the difference is 3º (23.6º on the screen 20.6º on the monitor).

Thank you,
M.
Reply
#4
(24-12-2018, 18:33)mikelone Wrote: Ok, I'm beginning to understand how this works.

I have activated the TX Debug and I see that the temperature sensor works on the monitor but the screen does not update. Also, now I have the RX and the TX on the table and the difference is 3º (23.6º on the screen 20.6º on the monitor).

Thank you,
M.

Please post your Config_Options.h files used on TX and RX sofware.
Maybe I could help.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel



Reply
#5
Code:
// --------------------------------------------------------------------------------------

//    WeatherDuino Pro2 Universal TX - Version: 6.0_b008
//           Start of user configurable options
// --------------------------------------------------------------------------------------


// --------------------------------------------------------------------------------------
//   Define ID and TX unit number
// --------------------------------------------------------------------------------------
#define Station_ID  0xA1    // Must be equal to your RX Unit (Value from 0x00 to 0xFF)  
#define Unit_ID        0    // If you use only one TX unit define it as Unit_ID = 0
// For a second TX unit, define it as Unit_ID = 1

// --------------------------------------------------------------------------------------
//   Define type of Temperature / Humidity sensor used as Sensor 0 and / or Sensor 1
// --------------------------------------------------------------------------------------
#define TH_SENSOR0  9      // [SENSOR 0] - 0 for SHT2x sensor, 1 for SHT31 sensor, 2 for HTU21 sensor, 9 for Not Used
#define TH_SENSOR1  1      // [SENSOR 1] - 0 for SHT1x sensor, 1 for DHT22 sensor, 9 for Not Used


// --------------------------------------------------------------------------------------
//   Define which Temp / Hum sensor controls the fan, and threshold values
// --------------------------------------------------------------------------------------
#define FANCONTROL_SENSOR  0      // 0 for Sensor 0, 1 for Sensor 1 (which sensor is used to control the RS Fan)
const int fanOn_HiTemp  = 32;     // RS Fan turn on when outside temperature is >= than this value (ºC)
const int fanOn_LowTemp =  2;     // RS Fan turn on when outside temperature is <= than this value (ºC)
const int fanOn_LowWind =  1;     // RS Fan turn on when Wind Average is <= than this value (m/s)


// --------------------------------------------------------------------------------------
//   Define type of Wind Speed sensor. See below for allowed types
// --------------------------------------------------------------------------------------
/*
  --- Fine Offset Anemometers ---
  Use 1O for standard FO anemometers
  Use 11 for FO anemometer modified with 1 hall effect sensor

  --- Inspeed Anemometers ---
  Use 20 for Inspeed Vortex, digital 8 pulse revolution anemometer
  Use 21 for Inspeed Vortex, hall efect sensor
  Use 22 for Inspeed Vortex, read switch sensor

  --- Davis Anemometers ---
  Use 30 for Davis 6410, 7911 anemometer

  --- Novalynx Anemometers ---
  Use 40 for Novalynx, model 200-WS-02F

  --- Environmental Measurements Limited ---
  Use 50 for EML, model WSD1

  --- Didcot Instrument Company ---
  Use 60 for DIDCOT, model DWR205

  --- Vector Instruments ---
  Use 70 for Vector Instruments model A100LK
  Use 71 for Vector Instruments model A100L2
  Use 72 for Vector Instruments model A100R
*/
#define WINDSPEED_SENSORTYPE 10             // SEE INFO ABOVE!!!


// --------------------------------------------------------------------------------------
//   Define type of Wind Direction sensor
// --------------------------------------------------------------------------------------
/*
  --- Fine Offset Wind Vane ---
  Use 1O for standard FO wind vane

  --- Analogue Wind Vanes ---
  Use 20 for any 5V analogue wind vane. See bellow for a list of tested models

  - Inspeed E-Vane 2
  - Davis 6410
  - Novalynx, model 200-WS-02F
  - Environmental Measurements Limited, model model WSD1
  - DIDCOT, model DWD205
  - Almost all 5V analogue wind vanes will work

*/
#define WINDDIR_SENSORTYPE  10  // SEE INFO ABOVE!!!


// --------------------------------------------------------------------------------------
//          Analogue Vane Offset Calibration
// --------------------------------------------------------------------------------------
const int WDir_offs  = 0;   // Usually there is no need to change default value (zero)


// --------------------------------------------------------------------------------------
//   Define Rain Gauge tip boucket value (mm)
// --------------------------------------------------------------------------------------
/*
  Use 0.280 for standard FineOfset rain gauges (Datasheet value = 0.2794)
  Use 0.200 for standard metric Davis rain gauges
  Use 0.254 for standard imperial Davis rain gauges
*/
#define COLLECTOR_TYPE  0.280  // Please note: Values must be in metric units. Max. resolution: 3 decimal digits


// --------------------------------------------------------------------------------------
//   Define type of UV Sensor
// --------------------------------------------------------------------------------------
#define UV_SENSOR  9      // 0= UVM-30A, 1= VEML6075, 9= Not used


// --------------------------------------------------------------------------------------
//   Soil / Leaf Interface Enable Disable
// --------------------------------------------------------------------------------------
#define SOILLEAF_INTERFACE        0    // 0 = Soil Leaf Interface not used, 1 = Enable Soil Leaf Interface
const byte Number_AnalogSensors = 2;   // Up to 4 analog sensors


// --------------------------------------------------------------------------------------
//   Define which data this unit will send. 0 = Not send this data, 1= Send this data
// --------------------------------------------------------------------------------------
#define ID0  1   // Temp/Hum Data
#define ID1  0   // Not Used
#define ID2  1   // Wind data
#define ID3  1   // Rain data
#define ID4  0   // SolRad / UV data
#define ID5  1   // Hardware Status - System Temp, Battery Voltage etc
#define ID7  0   // Send Soil & Leaf Temperature Data
#define ID9  0   // Send Soil & Leaf Moisture / Wetness Data


// *************************************************************************************
//     Hardware Settings
// *************************************************************************************
// Define if the TMP36 sensor is instaled
#define USE_TMP36       0          // 0= Not Instaled, 1= Intalled


// --------------------------------------------------------------------------------------
//   SHT31 I2C Address - Default address will work most of the times!
// --------------------------------------------------------------------------------------
#define SHT31_ADDRESS 0x44           // Default value is 0x44, but it can be changed to 0x45


// --------------------------------------------------------------------------------------
//   Debug
// --------------------------------------------------------------------------------------
#define ENABLE_DEBUG      true      // antes en false
#define DEBUG_ID0         true      // antes en false
#define DEBUG_ID2         false
#define DEBUG_ID3         false
#define DEBUG_ID4         false
#define DEBUG_ID5         false
#define DEBUG_SLINTERFACE false
#define EASYWEATHER_TEST  false


// ---------------------------------------------------------------------------------------------------
//     End of user configurable options
// ---------------------------------------------------------------------------------------------------



Code:
#########################################################################

// --------------------------------------------------------------------------------------

//  WeatherDuino Pro2 Compact RF Receiver - Version: P2ESP8266_RX_v2.0_b001
//                  Start of user configurable options
// --------------------------------------------------------------------------------------
// If you need help about any of the user configurable settings, please first do a search
// at the WeatherDuino Pro2 support forum. If you don't find any relevant info, then post
// a new thread.
//
// --------------------------------------------------------------------------------------
//   Define Name and ID's for this weather station
// --------------------------------------------------------------------------------------
const char* WeatherStation_Name = "Playa de la Mora - TGN"; // Put here your Weather Station name don't leave default name

const byte Station_ID = 0xA1;    // Station_ID, use the same value in all TX units
const byte Relay_ID   = 0xA3;    // Relay_ID,   use the same value in all WD units


// --------------------------------------------------------------------------------------
//   Define your Weather Station location. Use decimal format for Latitude and Longitude
// --------------------------------------------------------------------------------------
#define LATITUDE      41.132    // Put here your Station latitude in degrees North (always use 3 decimal places)
#define LONGITUDE     1.353    // Put here your Station longitude in degrees - minus for West (always use 3 decimal places)
#define ELEVATION     55       // Put here your Station height above sea level in Meters (no decimal places)


// --------------------------------------------------------------------------------------
//   Define rules for Auto Summer Time Display, and clock adjustment
// --------------------------------------------------------------------------------------
// Example for Australia Eastern Time Zone (Sydney, Melbourne)
// TimeChangeRule aEDT = {"AEDT", First, Sun, Oct, 2, 660};    //UTC + 11 hours
// TimeChangeRule aEST = {"AEST", First, Sun, Apr, 3, 600};    //UTC + 10 hours
// Timezone myTZ(aEDT, aEST);

TimeChangeRule PST = {"PST", Last, Sun, Mar, 1, 60};   //Portuguese Summer Time -  "UTC + 1" or GMT + 1
TimeChangeRule GMT = {"GMT", Last, Sun, Oct, 2, 0};    //Portuguese Winter Time -  "UTC + 0" or GMT
Timezone myTZ(PST, GMT);


// --------------------------------------------------------------------------------------
//   Define Interface Language
// --------------------------------------------------------------------------------------
     
#include "_lang/es_ES.h"      // Change the language code according to your preference. Keep "_lang/" and the ".h" at the end
                             // Currently available languages: en_GB, fr_FR, de_DE, pt_PT, es_ES, cs_CZ, nl_NL, it_IT

// --------------------------------------------------------------------------------------
//   Define Roll Over Hour for Meteorological Day
// --------------------------------------------------------------------------------------
const byte MeteoDay_HStart = 0;    // Use values from 0 to 23


// --------------------------------------------------------------------------------------
//   Define BigClock Settings
// --------------------------------------------------------------------------------------
const byte AutoBigClock_time = 30;    // Time in minutes (1 to 255) to automatically show the Big Clock. 0= Disable auto BigClock

#define BIGCLOCK_COMLEDS       1     // 0= No, 1= Yes - Show comunication (RX and USB) activity in two simuled Led's    

// --------------------------------------------------------------------------------------
//   Define data display units
// --------------------------------------------------------------------------------------
#define DATE_TIME_FORMAT  0    // 0 for dd-mm-yyyy, 1 for yyyy/mm/dd
#define TEMP_DISPLAY_UNIT 0    // 0 for ºC, 1 for ºF
#define ATM_DISPLAY_UNIT  0    // 0 for mBar, 1 for inHg
#define RAIN_DISPLAY_UNIT 0    // 0 for mm, 1 for inches
#define WIND_DISPLAY_UNIT 0    // 0 for Km/h, 1 for mph, 2 for m/s, 3 for Knots


// --------------------------------------------------------------------------------------
//   Fine adjusts for Inside Temperature and Barometer
// --------------------------------------------------------------------------------------
const int   TemperaturaInt_offset =   0;   // Inside Temperature Fine Adjust in Tenths of Degree (-4 = -0,4ºC)
const float pressure_offset       =   0;   // Pressure Fine Adjust in mB


// --------------------------------------------------------------------------------------
//   Define Wind Speed and Wind Gust resolution
// --------------------------------------------------------------------------------------
// This setting only have effect when the software is used in Davis VP emulation mode
#define VP2_WIND_RESOLUTION     2    // If set to 2, set Cumulus Wind Speed and Wind Gust multipliers to 0.448. Wind Resolution 0.72 Km/h
                                    // If set to 1, set Cumulus Wind Speed and Wind Gust multipliers to 0.224. Wind Resolution 0.36 Km/h
                                    // WARNING !!! Setting this variable to 1 allows a better wind speed and gust resolution,
                                    // but also limits both of them, to a maximum reading of just 91.8 Km/h
                                    // If set to 0, system uses Standard Davis wind resolution (1 mph or 0.1mph with LOOP2).
                                    // Weather Display users should set this option to 0 - Standard Davis wind resolution  

// --------------------------------------------------------------------------------------
//   Define use of Wind Gust Spike prevention routines (mostly for FO anemometers)
// --------------------------------------------------------------------------------------
#define WIND_SPIKECONTROL 1   // 0= Disable, 1= Enable


// --------------------------------------------------------------------------------------
//   Define the source of your main outside sensors
// --------------------------------------------------------------------------------------
// ---- If you are using just one TX board, the source for all items should be equal to your single TX Unit ID (most likely zero).
// ---- Define the source of your main Temperature / Humidity sensor
#define TH_SOURCE       0   // 0= Temp/Hum sensor connected to TX_Unit 0, 1= for TX_Unit 1, ..., 3 for Auriol RF Temp / Hum
// ---- Define the source of your Main Wind sensor
#define WIND_SOURCE     0   // 0= Wind instruments connected to TX_Unit 0, 1= for TX_Unit 1, ..., 3 for Auriol RF Wind Speed & Dir
// ---- Define the source of your main Rain Gauge
#define RAIN_SOURCE     0   // 0= Rain Gauge connected to TX_Unit 0, 1= for TX_Unit 1, ..., 3 for Auriol RF Rain Gauge
// ---- Define the source of your main Solar Radiation sensor
#define SOLAR_SOURCE    9   // 0= Solar Radiation sensor connected to TX_Unit 0, 1= for TX_Unit1, ..., 9 for not used
// ---- Define the source of your main UV sensor
#define UV_SOURCE       9  // 0= UV sensor connected to TX_Unit 0, 1= for TX_Unit1, ..., 9 for not used


// --------------------------------------------------------------------------------------
//   Each TX unit can send data from two Temp / Hum sensors.
//   Here you must define which one will be used as your main outside Temperature / Humidity Sensor
//   SENSOR_0 can be any of the supported I2C T/H sensors (SHT31, SHT21 or HTU21D), SENSOR_1 can be an SHT1x or DHT22
// --------------------------------------------------------------------------------------
#define MAINOUT_TH_SENSOR 0   // 0 for SENSOR_0, 1 for SENSOR_1


// --------------------------------------------------------------------------------------
//   Define the type of your Solar Radiation sensor
// --------------------------------------------------------------------------------------
//                       1= Solar Cell "Pyranometer"
//                       2= Apogee SP-110 Pyranometer
//                       3= Reserved
//                       4= Apogee SQ-110: Photosynthetically Active Radiation Sensor (Support for this sensor is experimental)

#define SOLAR_SENSOR     2  


// --------------------------------------------------------------------------------------
//   Define the type of your UV sensor
// --------------------------------------------------------------------------------------
//                       1= UVM-30A
//                       2= VEML6075
//                       3= Reserved
//                      20= Rika RK200-04 (MODBUS)

#define UV_SENSOR        1
const byte UV_Transmission = 65;    // UV Transmission percentage of UV sensor cover material.  


//---------------------------------------------------------
//    Enable / Disable getting Temperature / Humidity from WiFI sensors (Usually the local T/H sensor on Wireless Display units)
//---------------------------------------------------------
#define ENABLE_TH_FROM_WIFISENSORS     0                         // 1= Enable, 0= Disable
#define WIFISENSORS_WEBSERVER_PORT    80                         // WebServer Port defined on WD units

const char* WIFIunit_address [][4]= { ""                         // IP address of first WiFi sensor
                                   , ""                         // IP address of second WiFi sensor
                                   , ""                         // IP address of third WiFi sensor
                                   , ""                         // IP address of fourth WiFi sensor                          
                                   };


// --------------------------------------------------------------------------------------
//   Extra Sensors Settings and Mapping
// --------------------------------------------------------------------------------------
// ---- Define the source and sensor type (number) for each of the seven extra sensors, insert 9 if not used.
//      Sensors SHT31, SHT21 or HTU21D are type 0, sensors SHT1x or DHT22 are type 1
//
// ---- Source 0 means TX unit0, 1 means TX unit1...
// ---- Source 6 (Reserved)
// ---- Source 7 is for BIOS Sensor (Only Temperature is shown)
// ---- Source 8 is for Temperature/Humidity from the Air Quality Monitor
//
// ---- First field = Sensor source, Second field = Sensor type (0 or 1 for TX units)
// ---- Example:
// ----                          ES0   ES1   ES2   ES3   ES4   ES5   ES6    
//#define EXTRASENSORS_SOURCE  { {0,1},{1,1},{9,9},{6,3},{9,9},{8,0},{8,1} }
//               {0,0} - First extra sensor (ES0), will be sensor 0 from TX unit0
//               {0,1} - Second extra sensor (ES1), will be sensor 1 from TX unit0
//               {1,0} - Third extra sensor (ES2), will be sensor 0 from TX unit1
//               {9,9} - Fourth extra sensor (ES3), not used - not mapped
//               {9,9} - Fifth extra sensor (ES4), not use - not mapped
//               {8,0} - Sixth extra sensor (ES5), will be Temperature / Humidity from the Air Quality Monitor
//
//-----                        ES0   ES1   ES2   ES3   ES4   ES5   ES6    
#define EXTRASENSORS_SOURCE  { {9,9},{9,9},{9,9},{9,9},{9,9},{9,9},{8,0} }


// --------------------------------------------------------------------------------------
//   Define personalized names for each Extra sensor. Attention, 8 chars maximum
// --------------------------------------------------------------------------------------
//                   Max. Size  [--------]
const char ESname_1[] PROGMEM = "";            // 8 chars max
const char ESname_2[] PROGMEM = "";            // 8 chars max
const char ESname_3[] PROGMEM = "";            // 8 chars max
const char ESname_4[] PROGMEM = "";            // 8 chars max
const char ESname_5[] PROGMEM = "";            // 8 chars max
const char ESname_6[] PROGMEM = "";            // 8 chars max
const char ESname_7[] PROGMEM = "Dust TH";     // 8 chars max


// --------------------------------------------------------------------------------------
//   BIOS soil moisture sensor settings
// --------------------------------------------------------------------------------------
// ---- Please use the included BIOS_ID_Scanner sketch to find you BIOS Device ID
#define BIOS_SENSOR_ID   0   // Device ID in HEX format, or 0 not used

// --------------------------------------------------------------------------------------
//   Soil / Leaf Interface Settings and Sensors Mapping
//   (The mapping logic is the same than used with the Extra Sensors)
// --------------------------------------------------------------------------------------
// 0 = Soil Leaf Interface not used
// 1 = Soil Leaf Interface connected to a TX unit
#define SOIL_LEAF_INTERFACE  0   // 0, 1,

// ---- For Soil & Leaf data from SoilLeaf_Interface wired to a TX unit, use TX Unit number as source
// ---- For BIOS Soil Temp / Moisture use 7 as source
// ---- To disable use 9 in both fields
//                                 S1    S2    S3    S4
#define SOILTEMPSENSORS_SOURCE  { {9,9},{9,9},{9,9},{9,9} }
#define LEAFTEMPSENSORS_SOURCE  { {9,9},{9,9},{9,9},{9,9} }
#define SOILMOISTSENSORS_SOURCE { {9,9},{9,9},{9,9},{9,9} }
#define LEAFWETSENSORS_SOURCE   { {9,9},{9,9},{9,9},{9,9} }


// --------------------------------------------------------------------------------------
//   Define personalized names for each Soil and Leaf sensor. Attention, 8 chars maximum
// --------------------------------------------------------------------------------------
//              Soil Max. Size  [--------]
const char SSname_1[] PROGMEM = "1";        // 8 chars max
const char SSname_2[] PROGMEM = "2";        // 8 chars max
const char SSname_3[] PROGMEM = "3";        // 8 chars max
const char SSname_4[] PROGMEM = "4";        // 8 chars max

//              Leaf Max. Size  [--------]
const char LSname_1[] PROGMEM = "1";        // 8 chars max
const char LSname_2[] PROGMEM = "2";        // 8 chars max
const char LSname_3[] PROGMEM = "3";        // 8 chars max
const char LSname_4[] PROGMEM = "4";        // 8 chars max


// Define VWC calculation method
// Method 1 applies only for VH400 soil moisture sensor
//
// METHOD 1 - Conversion from voltage to VWC (volumetric water content) is done using the piecewise regressions provided by the manufacturer
// at http://www.vegetronix.com/Products/VH400...urve.phtml
//
// METHOD 2 - Used for any sensor which have a linear output between voltage and VWC (0V=0VWC, maxV=100VWC) .

#define VWC_CALCMETHOD   1  // 1 or 2

// Max and Min output voltage of the analog sensors connected to Soil / Leaf Interface
// Default value for Decagon Devices LWS Leaf Wetness Sensor (3.3V power): Max. Output Voltage - 1395mV (max wetness), Min Output Voltage - 530mV (dry)

//                                              ADC1  ADC2  ADC3  ADC4  
const uint16_t AnalogSensor_MaxVoltOut[4]   = { 3000, 1395, 5000, 5000 };    // Values in miliVolts
const uint16_t AnalogSensor_MinVoltOut[4]   = {    0,  530,    0,    0 };


// --------------------------------------------------------------------------------------
//   Define type of your Weather Software
// --------------------------------------------------------------------------------------
#define WEATHERSOFT      1   // 0= CumulusMX, 1= Any other (Cumulus 1, WeewX, Weather Display, etc.)


// --------------------------------------------------------------------------------------
//   Easyweather format data Output
// --------------------------------------------------------------------------------------
#define EASYWEATHER_OUT  0   // 0= Disable (defaut) 1= Enable


// --------------------------------------------------------------------------------------
//   Enable / Disable WiFi connection
// --------------------------------------------------------------------------------------
#define ENABLE_INTERNET     1                          // 1= Enable Internet connection, 0= Disable


// --------------------------------------------------------------------------------------
//   Broadcasting data to Wireless Display Units using WiFi
// --------------------------------------------------------------------------------------
#define BROADCAST_DATA      0         // 0= Disables Data Relay, 1= Enables Data Relay
#define UDP_BROADCAST_PORT  9889      // Define the UPD broadcast port


// --------------------------------------------------------------------------------------
//   Enable / Disable time sync with an NTP server
// --------------------------------------------------------------------------------------
#define ENABLE_NTP          1                        // 1= Enable Sync time with NTP servers, 0= Disable


// --------------------------------------------------------------------------------------
//   NTP Servers - Enable only one
// --------------------------------------------------------------------------------------
#define TIMESERVER "pool.ntp.org"
//#define TIMESERVER "time.nist.gov"                 // ntp1.nl.net NTP server
//#define TIMESERVER "80.96.196.58"                  // timp.mcsi.ro
//#define TIMESERVER "193.79.237.14"                 // ntp1.nl.net NTP server


// --------------------------------------------------------------------------------------
//   Enable / Disable data transmission to Weather Wunderground
// --------------------------------------------------------------------------------------
#define ENABLE_WU_UPLOAD   0                         // 1= Enable upload to Wunderground, 0= Disable
#define WU_UPLOAD_INTEMP   0                         // 1= Enable upload of Inside Temperature / Humidity, 0= Disable
byte    WU_upload_period = 5;                        // Period in minutes between uploads to WU. (Should be >= 3 minutes, if less defaults to 3 minutes)

// --------------------------------------------------------------------------------------
//   WU Forecast Settings
// --------------------------------------------------------------------------------------
#define FORECAST_MODE        0                           // 0= Get from a defined location, 1= Get from a defined WU Personal Weather Station (PWS)
                                                        // NOTE: Due to recent changes on WU API, currently mode 1 is not working properly!
                                                   
// Used by Forecast Method 0
const String  WUNDERGROUND_COUNTRY    = "PO";
const String  WUNDERGROUND_CITY       = "Alcoentre";

// Used by Forecast Method 1
const String  WUNDERGROUND_PWS        = "ICERCALC2";

const String  WUNDERGROUND_LANGUAGE   = "PT";            // Language used on the 4 Days Forecast, default is English language. Check WU language codes here: https://www.wunderground.com/weather/api...ge-support
const boolean IS_METRIC               = true;            // Metric or Imperial units in Forecast
const boolean USE_PM                  = false;

// --------------------------------------------------------------------------------------
//   Enable / Disable data transmission to ThingSpeak
// --------------------------------------------------------------------------------------
#define ENABLE_TS_UPLOAD   0                         // 1= Enable, 0= Disable


// --------------------------------------------------------------------------------------
// Air Quality Monitor - Upload and insert data in a SQL table at your own server ----
// Be sure you have already created the database and table. See AirQuality_LogToSQL.php script for info
// --------------------------------------------------------------------------------------
#define ENABLE_AQM_TO_MYSERVER    0                  // 1= Enable, 0= Disable


// --------------------------------------------------------------------------------------
//   Enable / Disable internal Web Server
// --------------------------------------------------------------------------------------
#define ENABLE_WEBSERVER          1                  // 1= Enable 0= Disable
#define WEBSERVER_PORT           80                  // WebServer port (default 80)


// --------------------------------------------------------------------------------------
//   Define data screens order
//   Use numbers from 1 to 5 to define a personalized order for the data screens
// --------------------------------------------------------------------------------------
#define WUforecast_Data    5
#define AirQuality_Data    1
#define TXinfo_Data        2
#define ExtraSensors_Data  3
#define SoilLeaf_Data      4


// --------------------------------------------------------------------------------------
//   Test Mode : Never run a live system in test mode
// --------------------------------------------------------------------------------------
bool Test_Mode = false;    // false= Normal working mode, true= Test mode only (no logger, no usb connection)


/*************************************************************************************
    Hardware Settings
*************************************************************************************/

// --------------------------------------------------------------------------------------
//   Define PCB Version Number
// --------------------------------------------------------------------------------------
//                              Take particular attention to this setting.
//                              Your system may not work properly if you define a wrong pcb version number.
//                              In case of doubt check what is printed in your pcb.
#define PCB_VERSION   10   // PCB version number, without the decimal point Ex: 1.3 = 13 (integer number)



// --------------------------------------------------------------------------------------
//   SHT31 I2C Address - Default address will work most of the times!
// --------------------------------------------------------------------------------------
#define SHT31_ADDRESS       0x44       // Default value is 0x44, but it can be changed to 0x45


// --------------------------------------------------------------------------------------
//   Presure Sensor Address (no need to change)
// --------------------------------------------------------------------------------------
//#define BMP085_ADDRESS    0x77       // I2C address of BMP085 or BMP180


// --------------------------------------------------------------------------------------
//   Debug helper - Print debug messages to serial monitor
// --------------------------------------------------------------------------------------
//#define PRINT_DEBUG_WIFI
//#define PRINT_DEBUG_NTP_UPDATE       // Prints to serial monitor messages related to sync time with NTP server
//#define PRINT_DEBUG_WU_UPLOAD        // Prints to serial monitor messages related to Weather Underground upload.
//#define PRINT_DEBUG_TS_UPLOAD
//#define PRINT_DEBUG_MYSERVER_UPLOAD
//#define PRINT_DEBUG_VCHECK
//#define PRINT_DEBUG_TCP_SERVER
//#define PRINT_DEBUG_AURIOL
//#define PRINT_DEBUG_BIOS
//#define PRINT_DEBUG_RF_MESSAGES
//#define PRINT_DEBUG_WIFI_SENSORS
//#define PRINT_GENERALDEBUG

// ---------------------------------------------------------------------------------------------------
//     End of user configurable options
// ---------------------------------------------------------------------------------------------------



Thanks for your attention

M.


Edited by Werk_AG to insert the CODE tag
Reply
#6
Hi

On the RX Pro2 Compact, change this:


Code:
// --------------------------------------------------------------------------------------
//   Each TX unit can send data from two Temp / Hum sensors.
//   Here you must define which one will be used as your main outside Temperature / Humidity Sensor
//   SENSOR_0 can be any of the supported I2C T/H sensors (SHT31, SHT21 or HTU21D), SENSOR_1 can be an SHT1x or DHT22
// --------------------------------------------------------------------------------------
#define MAINOUT_TH_SENSOR 0   // 0 for SENSOR_0, 1 for SENSOR_1

to this:

Code:
// --------------------------------------------------------------------------------------
//   Each TX unit can send data from two Temp / Hum sensors.
//   Here you must define which one will be used as your main outside Temperature / Humidity Sensor
//   SENSOR_0 can be any of the supported I2C T/H sensors (SHT31, SHT21 or HTU21D), SENSOR_1 can be an SHT1x or DHT22
// --------------------------------------------------------------------------------------
#define MAINOUT_TH_SENSOR 1   // 0 for SENSOR_0, 1 for SENSOR_1

When posting code, please use the CODE tag, it makes reading easier.
Thanks.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel



Reply
#7
Good evening, when compiling the TX code I get the following result:

Code:
El Sketch usa 526996 bytes (50%) del espacio de almacenamiento de programa. El máximo es 1044464 bytes.
Las variables Globales usan 40736 bytes (49%) de la memoria dinámica, dejando 41184 bytes para las variables locales. El máximo es 81920 bytes.
C:\Users\Miguel\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13/esptool.exe -vv -cd nodemcu -cb 115200 -cp COM1 -ca 0x00000 -cf C:\Users\Miguel\AppData\Local\Temp\arduino_build_868539/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino.bin
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from COM1 to COM1
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
error: Failed to open COM1
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed



Thank you for your patience,

M.

PS: how do I insert an image?


[img]file:///D:/Miguel%20V/Captura.JPG[/img]
Reply
#8
WeatherDuino WiKi  - Installing and Configuring the software
Reply




Users browsing this thread: 1 Guest(s)