I get some data (temperature and humidity) from a DHT11 through a BLE: It is sent with a ";" separator that allow me to split it in two (first I remove the [ and ]). I manage to display the values in some label zone (label7 and label8) and event do some mathematics in it.
For now I m just looking to X-plot the 2 values (yes it is stupid ... -> the plan is to add an time ID value latter and to append the just received list to the old one to get more than 1 couple of value and have a small historic )
Hi Timai2,
thx for your reply,
At the beginning of the process it got something like [24;65], and after bracket removal and split I guess it is more likely to look like this?... (but I m not sure )
24
65
How to split the text in a way that it is not in row but rather in column? or maybe I do not split, but I replace the ";" by a "," simply?
Sorry, looks surely stupid, but I m not so familiar (yet) with the list ...
Please share an example of your raw stringValues.
( I am surprised it is a list as it is.....)
Your text manipulation probably needs an "\n" in it somewhere
Now I am guessing that one of the values is temperature and one is humidity, and that you only want to show the temperature, and that this will only place the one value?
yes it is a list with one item:
how to split it so it will be 2 items but in column like this
24.00(in column A) 63.00 (in column B)
and not in row, all in column A (as the text split is doing)
24.00
63.00
for now I m just trying to Xplot those 2 values (expecting that if I manage to do that I will be able to do it latter with the time in X-ordinate)
.... or it is rather creating 3 columns with data set temperature and humidity so the one will be replaced by the hour or any counting index, i m right?
then you won't need to do all that string manipulation, just attach the get stringValues block to each of the select list item blocks in the chartMaker block
even when I 'do it' on my original code that is well working (e;g; return the 2 individual temperature/humidity values, each into a label ... ) . below the code that is working without problem: