esp8266-arduino-ebus icon indicating copy to clipboard operation
esp8266-arduino-ebus copied to clipboard

Enhancement of status page

Open HuffYk opened this issue 11 months ago • 2 comments

I did a fork with small changes (mainly to status page):

  • added check for ESP8266 or ESP32 and show it with pragma message (ends with pragma error otherwise)
  • refactored status_string fnc to use String class
  • added new info to status page:
    • ESP32 chip model and rev
    • ESP32 chip cores
    • ESP32 chip temperature
    • CPU chip speed
    • Flash chip speed
    • Flash size
    • SDK version
    • Wifi SID
    • Wifi IP address

if interested these are two relevant commits (forgot to put it into one PR):

  • https://github.com/VladimirHirner/esp-arduino-ebus/commit/bde52397c2e8d22402e999a1b1226a02b9ba44c7
  • https://github.com/VladimirHirner/esp-arduino-ebus/commit/30cc5c2f2481bf74364ac6d901936a34c1f44d0b

example:

Firmware version: bde5239-dirty
ESP32 chip model: ESP32-C3 Rev 4
ESP32 chip cores: 1
ESP32 chip temperature: 57.20 °C
CPU chip speed: 160 MHz
Flash chip speed: 80 MHz
Flash size: 4 MB
Free heap: 161624 B
SDK version: v4.4.6-dirty
Wifi SID: MyWifiSID
Wifi IP address: 192.168.2.50
Wifi rssi: -58 dBm

async mode: true
software serial mode: true
uptime: 1005 s
last_connect_time: 345 ms
reconnect_count: 1 
reset_code: 3
loop_duration: 22 µs
max_loop_duration: 33739 µs
nbr arbitrations: 170
nbr restarts1: 0
nbr restarts2: 0
nbr lost1: 4
nbr lost2: 0
nbr won1: 166
nbr won2: 0
nbr late: 0
nbr errors: 0
pwm_value: 130

HuffYk avatar Mar 11 '24 16:03 HuffYk

Hello, could you please create a PR? Although this is broken now already, I'd like to have a uniform format for all the status variables:

lowercase_name_of_variable_with_underscores: value unit

Could you also please change that?

danielkucera avatar Mar 11 '24 19:03 danielkucera

sure, here it is: https://github.com/danielkucera/esp-arduino-ebus/pull/71

HuffYk avatar Mar 11 '24 22:03 HuffYk