Maxim Prokhorov
0e48dab5fb
github: yaml typo in issue forms
1 year ago
Maxim Prokhorov
e8e9c152e7
pio: missing scripts
1 year ago
Maxim Prokhorov
f3d4a4ae8a
github: issue forms and bug report tools updates
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests
1 year ago
Maxim Prokhorov
a6df38e807
pio: stack dump decoder script
from the pending ESP8266 Core PR
1 year ago
Maxim Prokhorov
74ce4d974d
pio: update formatting
1 year ago
Maxim Prokhorov
c0e74e431d
pio: prettier file size output
1 year ago
Maxim Prokhorov
fd249c8055
pio: also hide raw putc function in postmortem
updates scripts to be a post action
rename redefined symbols to stubs
1 year ago
Maxim Prokhorov
6f122f5ecb
pio: debug info in distributed builds and build-and-copy fixes
store objcopy of these extra symbols and .map from the linker
distribution will have an extra debug .zip file that could be used with
the exception decoder
also fixes relative paths in the build-and-copy
(although, yet again loses the pio target in the gui)
1 year ago
Maxim Prokhorov
25f6b021f5
system: convert is not inline
1 year ago
Maxim Prokhorov
8aacf08c71
ci: .github/ contents need to be fetched
1 year ago
Maxim Prokhorov
59c4246c68
system: hwdt reset should start the check
in case rare errors sneak up, do not force into unstable mode
previously removed rtcmem special case allows us to continue
1 year ago
Maxim Prokhorov
93da96ca25
settings: todo
1 year ago
Maxim Prokhorov
ff19c0889d
test: fix namespaces
1 year ago
Maxim Prokhorov
98584aecc4
settings: clean up after namespace update
missing stringview key checks
fix template specialization order when building single source
update left-over modules that werent using espurna { ... }
1 year ago
Maxim Prokhorov
cc16c36736
light: experimental sequence support
execute multiple transition-initiating functions
when we don't do any transitions or have value changes queued
main application for right now is a simple notification
routine that consists of N single channel on->off transitions
1 year ago
Maxim Prokhorov
3e36438748
settings: key check with string view
make our string comparisons nicer
also clean-up namespaces for storage access
1 year ago
Maxim Prokhorov
deffe551ed
emon: fix missing terminal output for energy
1 year ago
Maxim Prokhorov
3f7d832267
sns: dummy sensor energy counter
1 year ago
Maxim Prokhorov
f4951d7228
system: set unstable flag when hwdt reset happens
- reduce number of resets that triggers unstable mode
- introduce a reboot reason for stability counter
which only gets handled on soft-reset
- allow to forcibly change to either stable or unstable mode
more explicit terminal comands to leave or enter either mode
1 year ago
Maxim Prokhorov
7659a63441
board: hwdt still keeps valid rtcmem contents
1 year ago
Maxim Prokhorov
b9427de5c0
board: do not reset sdk when already reset
1 year ago
Maxim Prokhorov
e704efffb4
emon: fix infinite recursion
1 year ago
Maxim Prokhorov
16fcee1786
Fix namespacing scope, export StringView
rework more namespaces to use `espurna` root
makes internal references much easier (and shorter)
view class is not specific to settings, could use it across the app
remove duplicate code from IR
1 year ago
Maxim Prokhorov
037a76733c
terminal: type ambiguity
1 year ago
Maxim Prokhorov
0e55397a4a
sns: add missing sensor strings
1 year ago
Maxim Prokhorov
befa961a8e
web: strict check for ap connection
also fix invalid header accessor, toString() returns the whole HTTP
request string as `Host: blabla\r\n`
1 year ago
Maxim Prokhorov
00b001a1d9
ci: release template
1 year ago
Maxim Prokhorov
2d15c80a64
ci: 2 digit year
1 year ago
Maxim Prokhorov
97a4e0a8fc
pwm: default to 1kHz
new-lib does not appear to work very well with 2 kHz
1 year ago
Maxim Prokhorov
1bc0bcdbaa
pwm: terminal command and new-lib clean-up
restore pinMode(..., OUTPUT)
manually set initial duty
1 year ago
Maxim Prokhorov
2365d08b88
pwm: also handle older Core versions
when target duty is either zero or at the driver limit, forcibly
stop the waveform / pwm driver via a sort-of private function call
resolve #2532
1 year ago
Maxim Prokhorov
16d61d5fc2
gpio: register access commands
1 year ago
Maxim Prokhorov
091c87ea45
gpio: fix not using provided mode in gpio16 case
1 year ago
Maxim Prokhorov
2868e0a481
pwm: arduino needs an explicit stop
1 year ago
Maxim Prokhorov
1cb841125f
pwm: adjust for float precision loss
1 year ago
Maxim Prokhorov
08a31fcbf5
pwm: fix arduino pin init
1 year ago
Maxim Prokhorov
844f20003d
pzem004tv30: convert to watt seconds just once
1 year ago
Maxim Prokhorov
49b616afbc
emon: rollover happens on kwh limit
1 year ago
Maxim Prokhorov
c86b4c3778
pzem004tv30: actually ignore initial energy request
amend 037be9aa99
1 year ago
Maxim Prokhorov
fb511ef891
pzem004tv30: sensor string
1 year ago
Maxim Prokhorov
7adb804464
pzem004tv30: try to calculate energy delta
- store latest pzem reading and compare with the latest one each reading
- fix `Energy::Energy(double)` scale, it should be kWh and not Wh
- move watt-second accumulator to constructor, allow object addition
1 year ago
Maxim Prokhorov
037be9aa99
emon: separate initial and reset energy api
ignore energy reset on boot with pzem004t(v30), ref. #2530
(and continue to use its own internal energy persistance)
1 year ago
Maxim Prokhorov
b86b62f884
doc: update release shields
1 year ago
Maxim Prokhorov
7095cfffd7
pwm: missing header
missed when moving new-pwm includes
fix accidentally including sdk header
1 year ago
Maxim Prokhorov
2d38efcd6b
pzem004tv30: fix debug
1 year ago
Maxim Prokhorov
c07310c974
pzem004tv30: correct magnitude index for energy reset
1 year ago
Maxim Prokhorov
7f15da59ee
sns: fix swdt reset when parsing MQTT payload
This *must* use views, but that's something for another day
Tweak terminal command, also allow to view the energy value
1 year ago
Maxim Prokhorov
1e655cc921
system: fix Core flash API usage when assessing latest crash
amends 8fb1a49881
Core accepts address, not sector
Compare with partial data, not just one byte
1 year ago
Maxim Prokhorov
c9a3a6ed54
lib: fix fs_math include
1 year ago
Maxim Prokhorov
b0da3e8c7f
light: external pwm support
- allow both new-pwm and analogWrite (Core) implementations
- rework new-pwm initialization, a bit more sane type for pin config
- remove pin setup from lights, everything is handled by provider already
Core prepares and initializes pins when updating duty, new-pwm does this
when pwm_init is called
- rework internals related to value scaling, allow percentage as pwm duty
and value limit (instead of absolute limit set by lights previously)
1 year ago