stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
126 stars 41 forks source link

Update language files #13

Closed roblad closed 6 years ago

roblad commented 6 years ago

Hi,

Could you update language files, I will translate , I do not know which variables I need to add

roblad commented 6 years ago

You can add

//STB mod

define D_MOISTURE "Wilgoc"

define D_DISTANCE "Odleglosc"

//end

it is for that 👍 Plant Watering Alarm https://wemakethings.net/chirp/ ?

that

//STB mod GPIO_SEN_TRIG, GPIO_SEN_ECHO, GPIO_REL1_TOG_A, GPIO_REL1_TOG_B, GPIO_REL2_TOG_A, GPIO_REL2_TOG_B, //end

not exists in lang pack What is these 2 first lines ?

Ia ma not able to find "Configure PCF8574" I add

define D_CONFIGURE_PCF8574 "Configure PCF8574"

PL

define D_CONFIGURE_PCF8574 "Konfiguruj PCF8574"

( ---

---)

When no relay1 configured these button options does not exists:

https://github.com/arendst/Sonoff-Tasmota/wiki/Button-usage

when relay is configured button usage works

I updated script for wemeos D1 pro esp8266.flash.16m.ld

/ Flash Split for 16M chips / / sketch 999KB / / eeprom 20KB / / spiffs 15MB /

MEMORY { dport0_0_seg : org = 0x3FF00000, len = 0x10 dram0_0_seg : org = 0x3FFE8000, len = 0x14000 iram1_0_seg : org = 0x40100000, len = 0x8000 irom0_0_seg : org = 0x40201010, len = 0xfeff0 }

PROVIDE ( _SPIFFS_start = 0x402FB000 ); PROVIDE ( _SPIFFS_end = 0x402FB000 ); PROVIDE ( _SPIFFS_page = 0x100 ); PROVIDE ( _SPIFFS_block = 0x2000 );

INCLUDE "esp8266.flash.common.ld"

And updated config for DS

[env:wemeos-ds18x20-PL] platform = espressif8266 framework = arduino board = d1_mini board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.16m.ld -DMQTT_MAX_PACKET_SIZE=707 -DUSE_DS18x20 -DMESSZ=600 -DMY_LANGUAGE=pl-PL lib_deps = PubSubClient,NeoPixelBus, ArduinoJSON, IRremoteESP8266, i2cdevlib-ADS1115, OneWire upload_speed = 115200 ; Serial Monitor options monitor_baud = 115200

stefanbode commented 6 years ago

Thanks for your input. Added the PL language info. Yes, the CHIRP is the one you mentioned. It works really well as a moisture sensor. Also added your configuration to the platform.ini. I do no know how and where to add the change in the board configuration.

GPIO_SEN_TRIG, GPIO_SEN_ECHO, are for the HR-SR04 ultrasonic distance measure.

The other 4 are not used currently, They are planned for motors that need inverse voltage and therefore need two operating relays. Valid input is then -1 | 0 | 1 for backward, stop, forward.

roblad commented 6 years ago

Hi,

Do you have any place where can I buy it (chip ofcource :-)) CHIRP - it will solve my one configuration in the garden :-)

stefanbode commented 6 years ago

I got mine from tindie. I found no cheaper place to by the ESP version

https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

roblad commented 6 years ago

What is a price to send to you ? Maybe you have some chiper site :-), we do not have EU salaries :-)

stefanbode commented 6 years ago

Moisture measurement is quite difficult AND expensive if you want to make it reliable and get some values, that makes sense. The CHIRP is presented to me at 13USD+shipping. It has really good values, that really matches the real situation. There is also analog version: https://de.aliexpress.com/item/DFRobot-Capacitive-Analog-Soil-Moisture-Sensor-3-3-5-5V-Corrosion-Resistant-with-Gravity-3-Pin/32574020064.htm This is 8USD+shipping. It is also not bad in the beginning, but have problems after 9 months outdoor. Even using plastic spray and shrink tubes to protect the circuit board. If you search for professional compensated moisture sensors they start at 80USD. Everything that is not capacitive, just do not order. This is just for playing.

roblad commented 6 years ago

Hi,

This CHIRP you send is pure and not i2c, maybe I will order thhat previous :-)

What measure I can do on that one - TEMP, MOISURE, LUX ?

I compiled your new version and uploaded through www, right now I did not noticed any issue :-)