Commit Graph

2469 Commits

Author SHA1 Message Date
Max Prokhorov
1d133bee16 Build with platformio 4 (#1805)
- update file paths: .pioenvs -> .pio/build, .piolibdeps -> .pio/libdeps
- modify envs to use common settings
- enable shared libs in travis and ota scripts
2019-07-11 00:34:17 +03:00
Niek van der Maas
900bcb8bf1 PIO4: default_envs (#1793) 2019-07-07 22:55:01 +03:00
Max Prokhorov
9bae101ed1 PIO: Update for recent platforms (#1811)
* PlatformIO development platforms

* Properly detect platform directory

* Naming

* Update platformio.ini
2019-07-07 11:35:50 +03:00
Max Prokhorov
bd00758162 Thingspeak: async client fixes (#1806)
* Thingspeak: async client fixes

- remove memory management in async client callbacks
- instead of global one, reference asyncclient from callback argument
- transfer temporary data-buffer to the global scope, avoid accidental String copy
- implement strnstr to search onData payload

* fixup format strings

* update retry time each attempt

* start with default attempts value

* trying to work with lwip2-536

* count time from last request

* promptly run flush
2019-07-07 11:21:15 +03:00
Max Prokhorov
d09b3f156f Update ESPAsyncTCP to 7e9ed22 (#1752, #1806)
Fix random resets when connection closes prematurely
2019-07-07 10:57:36 +03:00
Max Prokhorov
c44c74f70e Import Encoder library (#1769)
* Update encoder

- import modified Encoder library
- customize minimum delta value

* minimum delta in header config

* fixup! minimum delta in header config

* fix dead code, actually use interrupts

* move static class methods to normal funcs, apply namespace

* drop hardcoded register use

- use peripheral api (see cores/esp8266/esp8266_peri.h)
- remove bitmask and register struct members

* add a note about changes

* fixup! add a note about changes
2019-07-07 10:55:01 +03:00
Vencislav Atanasov
dc26a69642 Add support for MagicHome RGBWW LED strip (#1787)
* Add support for MagicHome RGBWW LED strip

This adds support for MagicHome 5 channel LED strip. It is using ESP8285 board, labelled as ESP-M4, has 5 powerful MOSFETs (M3006D, up to 80A! continuous/160A peak) at 12-24V. They are driven by smaller transistors. Red LED is connected to 3.3V power supply, and can't be controller. Green LED is connected to GPIO. Pin mappings:
BTN IO0
R Q8 Q2 IO14
G Q6 Q3 IO12
B Q9 Q4 IO13
WW Q10 Q5 IO15
CW Q7 Q1 IO5
GREEN_LED IO2
Looks like the same board is used in another product which has support for RF remote, but mine doesn't, so I don't include RF config, if yours has it should be a simple copy/paste job to add it.

* Add config for push button

* Fix copy/paste mistake

* Turn on/off LEDs using the push button
2019-07-02 05:43:29 +03:00
Max Prokhorov
1baeec545f Revert "fix led invert for yjzk switches (#1779)" (#1804)
https://github.com/xoseperez/espurna/pull/1779#issuecomment-504789747
2019-07-02 05:42:14 +03:00
Max Prokhorov
ff046eb0f1 DEBUG_SUPPORT check for crashSetup (#1807) 2019-07-02 05:41:26 +03:00
Max Prokhorov
0d76910b6d Update EventsSensor (#1771)
- cache ms<->clockcycles conversions
- move callback invocation outside of ISR handler
- remember last event value
2019-06-30 02:10:40 +03:00
Max Prokhorov
5e091ec5a9 Relay: drop legacy settings migration (#1797) 2019-06-30 01:29:54 +03:00
Max Prokhorov
08a748e05d Update crash handler (#1796)
* Update crash handler

- limit recorder stack size by 128 bytes
- offset settings a bit more
- add possibility to disable crash crash recoder completely

* nicer setting names, comment layout change
2019-06-30 01:25:59 +03:00
Vencislav Atanasov
746ad7062d Add config for push button of Arilux AL-LC06 (#1794)
Button is not visible from the outside, but can be wired outside or made more accessible by using a thin object, so it feels more like a button than a hole. The configuration should not cause issues if the button is not used at all.
2019-06-30 01:25:28 +03:00
Max Prokhorov
36f6c822ad Configure WEB_REMOTE_DOMAIN at runtime (#1789)
* Configure WEB_REMOTE_DOMAIN at runtime

* typo
2019-06-30 01:25:05 +03:00
Niek van der Maas
3fb34c1cc4 Add ability to print all GPIO values at once (#1798)
* Added ability to print all GPIO values at once

* Print input/output pin state, optimize code
2019-06-30 01:24:48 +03:00
Max Prokhorov
e445cf8c70 Update arduino.h and platformio.ini (#1774) (#1790) 2019-06-24 00:30:41 +03:00
Max Prokhorov
aac36d9b0c Update debugSend / debugSend_P (#1788)
- chain debugSend_P into basic _debugSend instead of duplicating code, pass va_list between them
- check if new[] call was successful
- when possible, use stack buffer and fallback to heap buffer only when it is more that 64 chars
2019-06-24 00:30:16 +03:00
Max Prokhorov
0dbfce1444 Show Core revision as hex string (#1786) 2019-06-24 00:20:25 +03:00
Max Prokhorov
88b8fcc9e4 Start SmartConfig without any networks configured (#1785) 2019-06-24 00:19:56 +03:00
Max Prokhorov
dc3a572f29 Let JustWifi fallback handle AP (#1784) 2019-06-24 00:19:41 +03:00
Michael Murton
48699e62a0 fix led invert for yjzk switches (#1779)
Signed-off-by: Michael Murton <6764025+CrazyIvan359@users.noreply.github.com>
2019-06-24 00:18:48 +03:00
reaper7
bf3caf3758 add support for JINVOO VALVE SM-AW713 (#1774)
* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

Type: Other
Board: Jinvoo SM-AW713
Build flag: JINVOO_VALVE_SM_AW713
Description: motorized valve

* fix typo
2019-06-24 00:17:40 +03:00
Max Prokhorov
14b796b410 Rtcmem update (#1770)
* Custom erase method instead of memset

* Print whole available user rtc memory
2019-06-24 00:15:44 +03:00
Max Prokhorov
0f0d0b1b34 Close connection in notFound callback (#1768)
* Close connection in notFound callback

* Add early check of AP mode
2019-06-24 00:15:27 +03:00
Max Prokhorov
dfd3a14abc Terminal: heap fragmentation stat (#1740)
* debug: heap fragmentation stat

* Rework method detection

- return check integral type as a result of detection instead of method type
- type-tagging instead of enable_if

* fix alias

* typo

* only need one bool_type instance

* Move heap debug into HeapStats header

- don't show fragmentation stats on the first call
- prettify fragmentation display
- pack function params into helper struct
- naming

* pass external flag instead

* add missing prototypes
2019-06-24 00:15:03 +03:00
Xose Pérez
0998110d86 Merge pull request #1766 from mcspr/psh-fix
Fix PSH environments
2019-06-09 13:30:20 +02:00
Max Prokhorov
221e5a7cc5 Fix PSH envs in platformio.ini 2019-06-08 21:54:14 +03:00
Max Prokhorov
73f65b3f15 Disable Serial for hardware using TX or RX pins 2019-06-04 19:56:35 +03:00
Xose Pérez
c57a0abf7b Merge pull request #1757 from mcspr/mqtt/retry-states
MQTT connection state
2019-06-04 17:08:01 +02:00
Xose Pérez
79ee2a7ea4 Merge pull request #1758 from mcspr/ldr-sensor/defines
Rename NTC/LDR_SENSOR to NTC/LDR_SUPPORT
2019-06-04 17:05:14 +02:00
Xose Pérez
2cd7a8717a Upgraded NoFUSS support to 0.3, added build header to request, fixed bug in device string size 2019-06-04 13:07:04 +02:00
Xose Pérez
78ebe98532 Merge branch 'dev' of github.com:xoseperez/espurna into dev 2019-06-04 13:05:33 +02:00
Max Prokhorov
b316995f8d Update WebUI for 9ceca44770 2019-06-04 09:26:40 +03:00
Max Prokhorov
075b704d6c Log in travis if webui files have changed 2019-06-04 09:26:40 +03:00
reaper7
c5d4a1f7a6 Fix mqtt topic with ending slash (#1755) 2019-06-04 09:26:18 +03:00
copyrights
08a4940344 fix path creation for firmware in build.sh (#1753) 2019-06-04 09:24:22 +03:00
copyrights
21b0ac04df MQTT: send mired if cct in use (#1742) 2019-06-04 09:24:08 +03:00
Niek van der Maas
05f682189e Update PlatformIO Core versions (#1734)
* Added new core versions 2.5.1/2.5.2 with matching PlatformIO versions

* Update platformio.ini
2019-06-04 09:23:48 +03:00
Max Prokhorov
9f478e7bb9 Rename NTC/LDR_SENSOR to NTC/LDR_SUPPORT 2019-05-30 12:18:33 +03:00
copyrights
9ceca44770 Two channel CCT (#1732)
* add CCT support for 2 channel boards

* update webinterface description

* add 2 channel CCT to homeassistant and domoticz

* remove domoticz two channel cct support.
2019-05-27 02:47:58 +03:00
Max Prokhorov
334b499024 Safer settings reload and MQTT change detection (#1701)
* MQTT: config change detection
* Reload settings when config json is uploaded
* Apply only new settings
* Finish config early when not enabled
* Reuse existing buffers from getSetting String using std::move
2019-05-27 02:47:24 +03:00
Xose Pérez
b5b01a2376 Small desegin change in memanalizer output 2019-05-25 09:21:18 +02:00
Xose Pérez
76066a3aa1 Fix memanalizer out-of-range 2019-05-25 09:16:10 +02:00
Xose Pérez
868d4d5573 Added LDR sensor (thanks to Altan Altay) 2019-05-23 08:52:04 +02:00
copyrights
d9b9e1449d MQTT and HA brightness (#1730)
* MQTT and HA brightness shall only be depended on LIGHT_PROVIDER != LIGHT_PROVIDER_NONE

* remove unnecessary changes
2019-05-23 06:53:33 +03:00
m-kozlowski
471a6387fb Separate device name for alexa integration (#1727)
Allow defining custom device name for alexa integration, other than hostname.
Still uses hostname as a fallback.
2019-05-23 06:22:18 +03:00
Max Prokhorov
aac2e1e47e LED: store default settings exactly once (#1719, #1724) 2019-05-19 07:20:21 +03:00
Max Prokhorov
c7d467144a PIO: patch lwip1 MTU bug in travis (#1723) 2019-05-19 07:01:56 +03:00
Max Prokhorov
6452f1777e mqtt: remove 'connecting' flag when connected 2019-05-18 23:04:24 +03:00
Max Prokhorov
5ca44c1c4c mqtt: display connection state, mqtt.info command 2019-05-18 23:04:24 +03:00