arduplot icon indicating copy to clipboard operation
arduplot copied to clipboard

[Feature Request] Filter output for ardulog (Can't convert...)

Open jnovonj opened this issue 3 years ago • 2 comments

Hi,

I have a lot of output log in my projects, some of then are not numbers, could you implement so kind of filter to read by arduplot, also I use ESP_LOGI(TAG, "Preparando para configurar WiFI"); function more than Serial.print in Arduino

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/log.html

Some examples:

void loop() {
    Serial.println("Reading Humidity and Temperature");
    readDHT22();
    Serial.printf("Humidity: %.1f\t Temperature: %.1f\n", temperature, humidity);
    delay(1000);
}

I get lot of garbage:

Can't convert b'[main]' to float. it's zeroed out Can't convert b'12,' to float. it's zeroed out

void loop() {
    Serial.println("Reading Humidity and Temperature");
    readDHT22();
    Serial.printf("Humidity: [ARDUPLOT1]%.1f\t Temperature: [ARDUPLOT2]%.1f\n", temperature, humidity);
    delay(1000);
}

or

void loop() {
    Serial.println("Reading Humidity and Temperature");
    readDHT22();
    Serial.printf("[ARDUPLOT]%.1f\t %.1f\n", temperature, humidity);
    delay(1000);
}

So the plot is the for [ARDUPLOT]%.1f part.

I hope I explain properly.

Best Regards

jnovonj avatar Dec 02 '23 13:12 jnovonj

Hi,

For the mean time, I don't have the plan for a generic filter. The only plan I have is to implement the new label1:value1 label2:value2 label3:value3 .... style data instead of current value1 value2 value3... style. But I need to plan my time out of my other works.

Meanwhile, if you need some other generic and maybe serious low code serial plotter, you may want to try out the node-red with node-red-node-serialport and node-red-dashboard.

yhur avatar Dec 03 '23 01:12 yhur

Hi,

Thanks for you answer, I will wait for your improvements

jnovonj avatar Dec 06 '23 13:12 jnovonj