mysensors / MySensors

MySensors library and examples
https://www.mysensors.org
1.32k stars 895 forks source link

Improve log parser (capabilities + missing messages) #1533

Open mfalkvidd opened 2 years ago

mfalkvidd commented 2 years ago

Example: https://www.mysensors.org/build/parser?log=60%20MCO%3ABGN%3AINIT%20GW%2CCP%3DRNNGE---%2CFQ%3D80%2CREL%3D255%2CVER%3D2.3.2%0A118%20TSF%3ALRT%3AOK%0A133%20TSM%3AINIT%0A147%20TSF%3AWUR%3AMS%3D0%0A170%20TSM%3AINIT%3ATSP%20OK%0A191%20TSM%3AINIT%3AGW%20MODE%0A213%20TSM%3AREADY%3AID%3D0%2CPAR%3D0%2CDIS%3D0%0A246%20MCO%3AREG%3ANOT%20NEEDED%0Ascandone%0A1322%20GWT%3ATIN%3ACONNECTING...%0A2350%20GWT%3ATIN%3ACONNECTING...%0Ascandone%0Astate%3A%200%20-%3E%202%20(b0)%0A4097%20GWT%3ATIN%3ACONNECTING...%0Astate%3A%202%20-%3E%203%20(0)%0Astate%3A%203%20-%3E%205%20(10)%0Aadd%200%0Aaid%201%0Acnt%20%0A%0Aconnected%20with%20Automation%2C%20channel%209%0Adhcp%20client%20start...%0Aip%3A192.168.1.30%2Cmask%3A255.255.255.0%2Cgw%3A192.168.1.193%0A4316%20GWT%3ATIN%3AIP%3A%20192.168.1.30%0A4354%20GWT%3ATIN%3AETH%20OK%0A4376%20MCO%3ABGN%3ASTP%0AESP8266MySensorsGateway%20version%3A%200.40%0A4394%20MCO%3ABGN%3AINIT%20OK%2CTSP%3D1%0A4463%20TSM%3AREADY%3ANWD%20REQ%0A4490%20%3FTSF%3AMSG%3ASEND%2C0-0-255-255%2Cs%3D255%2Cc%3D3%2Ct%3D20%2Cpt%3D0%2Cl%3D0%2Csg%3D0%2Cft%3D0%2Cst%3DOK%3A%0A6865%20TSF%3AMSG%3AREAD%2C2-2-0%2Cs%3D0%2Cc%3D1%2Ct%3D37%2Cpt%3D2%2Cl%3D2%2Csg%3D0%3A208%0A6933%20GWT%3ATSA%3AETH%20OK

Decode the capabilities Decode the TIN lines that currently are shown as "unknown". Move the empty columns (Node Id | Child Sensor | Command Type | Echo Req/Resp)

to the far right to avoid confusing people that the log parser shows nothing on small screens.