Commit graph

68 commits

Author SHA1 Message Date
lumapu
44b31f765c Merge branch 'main' of https://github.com/grindylow/ahoy 2022-06-02 22:42:06 +02:00
lumapu
0e2fe920e7 * added another yield 2022-06-02 22:41:59 +02:00
lumapu
e0800bd87e
Merge branch 'main' into main 2022-06-02 22:39:55 +02:00
lumapu
c7d039ac8c * added RX channel 40
* improved RF24 ISR
* reduced AP active time to 60s (will be increase once a client is connected)
* added `yield` without success -> random reboot (cause 4)
2022-06-02 08:20:16 +02:00
Stefan Thieme
b1906f0f31 add method entry debug statements 2022-06-02 00:06:25 +02:00
Stefan Thieme
ae1272ccf0 normalize settings for AHOY-DTU 2022-06-01 23:55:20 +02:00
Stefan Thieme
ea9ab4601a add channel 2440 to RX_CHANNELS 5 in hmRadio.h 2022-06-01 23:48:44 +02:00
Stefan Thieme
9e5105a98b use mSendInterval for showIndex and index.html 2022-06-01 23:46:38 +02:00
lumapu
247ae3e1db fix #56 2022-05-29 22:48:42 +02:00
lumapu
df5a306bb2 * inverter dependent mqtt (is avail)
* implemented heap stats #58
* inserted 'break' in ISR while loop
2022-05-29 21:57:59 +02:00
Peter Lelie
5c1c88d5bf 3D-Model for a case for Wemos D1
This is a 3D printable case for a Wemos D1 and a nrf24 module sandwiched together.
2022-05-26 00:18:26 +02:00
lumapu
69f8f0b806 * reduced heap size (>50%) by using 'F()' for (nearly) all static strings (mentioned by @stefan123t) 2022-05-24 21:52:27 +02:00
lumapu
01f1fab27f * try to fix #52 2022-05-23 20:31:21 +02:00
lumapu
6a1a3b86d2 * added patch from @Argafal
* Updated readme to refer library versions
2022-05-23 12:22:31 +02:00
lumapu
7844ea2946 * moved mqtt loop out of checkTicker as mentioned in #49
* added irritation and efficiency calculations (** EPPROM CHANGE - YOUR SETTINGS MAYBE BECOME CURRUPT! **)
* improved style
2022-05-23 11:35:56 +02:00
lumapu
8238e90903 * fix #38 current assignment for 4-channel inverters
* added last received timestamp in /hoymiles livedata web page #47
* improved style.css
* improved NTP as described in #46
2022-05-19 16:52:21 +02:00
lumapu
99f829ac87 * added free heap, mentioned in #24 (added in serial print, status on index and mqtt)
* fixed #45, AC current by factor 10 too high
* fixed failed payload counter
2022-05-19 08:12:09 +02:00
lumapu
a35cb414a8 * fixed #41 HM800 Yield total and Yield day were mixed around. Found issue while comparing to Python version
* fixed #43 HM350 channel 2 is displayed in Live-View
* added #42 YieldTotal and YieldTotal Day for HM600 - HM800 inverters
2022-05-17 21:47:41 +02:00
lumapu
5acce759e0 * fix #39 Assignment 2-Channel inverters (HM-600, HM-700, HM-800) 2022-05-17 20:05:31 +02:00
lumapu
6871bf4247 * multi inverter support
* full re transmit included
2022-05-17 17:15:44 +02:00
lumapu
724f0ab83a * complete payload processed (and crc checked)
* inverter type is defined by serial number
* serial debug can be switched live (using setup)
-> Note: only one inverter is supported for now!
2022-05-17 15:30:36 +02:00
lumapu
f2e7105cb3 fix #26 ticker / interval in app.cpp 2022-05-13 08:02:04 +02:00
lumapu
b485cb8151 * improved stability (in comparison to 0.3.7)
* reset wifi AP timout once a client is detected
* fix #26 wrong variable reset
2022-05-10 21:00:32 +02:00
lumapu
37206847c5 * added rx channel switching
* switched to crc8 check for valid packet-payload
2022-05-09 20:47:05 +02:00
lumapu
8f444cee2f * improved tickers, only one ticker is active
* added feature to use the ESP as access point for all the time
* added serial features to setup
2022-05-04 19:28:54 +02:00
lumapu
4c3852cde4 * fixed erase settings
* fixed behavior if no MQTT IP is set (the system was nearly unusable because of delayed responses)
* fixed Station / AP WiFi on startup -> more information will be printed to the serial console
* added new ticker for serial value dump
2022-05-03 23:29:33 +02:00
lumapu
539d4f73c1 * added config.h for general configuration
* added option to compile WiFi SSID + PWD to firmware
* added option to configure WiFi access point name and password
* added feature to retry connect to station WiFi (configurable timeouts)
* updated index.html
* added option for factory reset
* added info about project on index.html
* moved "update" and "home" to footer
* fixed #23 HM1200 yield day unit
* fixed DNS name of ESP after setup (some commits before)
2022-05-03 21:03:03 +02:00
docBmuc
59b6addccf Fix in live view, larger boxes in CSS, SPI-Speed define
Fixed missing HM800 in liveView

Larger boxes in CSS

Introduced SPI speed define for reduced speed (1MHz) for increased stability
2022-05-02 19:06:10 +02:00
lumapu
2abd388726 * converted to "poor-man-ticker" using millis() for uptime, send and mqtt
* added inverter overview
* added send count to statistics
2022-05-01 20:48:10 +02:00
lumapu
89624f7f02 compile of merge, binary published on https://www.mikrocontroller.net/topic/525778?goto=7051413#7051413 2022-05-01 13:26:25 +02:00
Thomas Basler
774be8fecf Fixed assignment for HM-600
Based on several logs and tries we updated the AC
side of the HM-600 inverter.
2022-04-30 22:58:33 +02:00
lumapu
41b4f72b52 fix: doCalculations was not called 2022-04-30 09:44:20 +02:00
lumapu
71c83ac1fb * version 0.3.0
* added unit test
2022-04-30 02:13:38 +02:00
lumapu
af4960f1c4 * fixed issues (found during unit test) 2022-04-30 02:02:41 +02:00
lumapu
32e58c98c0 * compile ok, added 4 calculation functions for test 2022-04-30 00:53:51 +02:00
lumapu
c8a05efadc Merge branch 'main' into dev
# Conflicts:
#	tools/esp8266/defines.h
#	tools/esp8266/hmSystem.h
2022-04-29 20:49:50 +02:00
lumapu
6a31bcddb1 * added HM800 defines
* updated README.md
2022-04-29 20:33:15 +02:00
Andreas Erhard
edcf69aa01 * added display name to inverter view 2022-04-29 08:41:22 +02:00
lumapu
b3bdf2811e * fix: random crashes #15
-> don't use delay() on ESP while Wifi connection is established!?
2022-04-28 19:40:51 +02:00
lumapu
1300f0a19e
Merge pull request #1 from dad401/main
PR Test gemäß Thread
2022-04-27 23:29:00 +02:00
lumapu
5844795447 Merge branch 'main' into dev
# Conflicts:
#	tools/esp8266/app.cpp
#	tools/esp8266/hmInverters.h
#	tools/esp8266/hmSystem.h

* added missing files
2022-04-27 23:27:52 +02:00
lumapu
5c63503168 * fixed #13, Inverter Type changed after reboot
* fixed #11, WiFi password length limit increased to 63, check 802.11i spec:
> A pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters. The limit of 63 comes from the desire to distinguish between a pass-phrase and a PSK displayed as 64 hexadecimal characters.
2022-04-27 23:10:22 +02:00
lumapu
f6b75aff90 * preliminary state, compiles good not tested on hardware
* converted struct inverter_t to class Inverter
* started with calculation functions (idea from Hubi/mikrocontroller.net)
2022-04-27 23:03:37 +02:00
Marcus
20cd77a6c2 Revert "* Divisor HM-400 angepasst (für Wh)"
This reverts commit c65607026c.

fixed divisor to show Wh
2022-04-27 17:41:59 +02:00
Marcus
aa2c495d2f Revert "* Divisor HM-400 angepasst (für Wh)"
This reverts commit c65607026c.
2022-04-27 17:40:33 +02:00
Marcus
a3e5fd93f2 Revert "fixed size"
This reverts commit 11113da53e.

brachte nicht die Lösung
2022-04-27 17:39:56 +02:00
Marcus
11113da53e fixed size 2022-04-27 11:04:28 +02:00
Marcus
c65607026c * Divisor HM-400 angepasst (für Wh)
* Ausgabebuffer angepasst, war mit 10 Bytes zu wenig um z.B. YieldTotal auszugeben (Unit wurde abgeschnitten)
2022-04-27 10:58:20 +02:00
lumapu
a9b7fd0599 * added IP address to serial console on successful connect to station WiFi
* fix: RF24 power setting configuration
* added RF24 isChipConnected
* added MQTT port configuration
* fix offsets for HM400 and HM600 inverters
* added warning if configuration was changed without reboot
2022-04-26 22:49:00 +02:00
lumapu
169bf8c7c8 * try to avoid exceptions, added yield
* try to fix DNS problems
2022-04-26 08:50:36 +02:00