Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasmota (8.3.1) log line is not valid #5

Open
Cougar opened this issue Jul 22, 2020 · 0 comments
Open

Tasmota (8.3.1) log line is not valid #5

Cougar opened this issue Jul 22, 2020 · 0 comments

Comments

@Cougar
Copy link

Cougar commented Jul 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant