Skip to content

Tasmota (8.3.1) log line is not valid #5

Description

@Cougar

8.3.1 (maybe some older version too) logs rfcodes with time like this:

00:11:23 MQT: tasmota_434A6E/tele/RESULT = {"Time":"1970-01-01T00:11:23","RfRaw":{"Data":"AA B1 03 02EE 00E6 1D7E 01101001100110011010101010010101010110010110100112 55"}}

Entering this line to STDIN works fine but when reading such line from a file doesn't. This line of code doesn't recognize it as a valid line:

if '{"RfRaw":{"Data":"AA B1' in line:

Simple fix for that is just remove leading { from the string:

-            if '"{RfRaw":{"Data":"AA B1' in line:
+            if '"RfRaw":{"Data":"AA B1' in line:

Because filterInputStr() function is looking AA B1 and doesn't care about that, this is the only thing that needs to be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions