Arduino read value from local server webpage and write on LCD

Check Data types you will find your answer there.

TXH WIKIBEAR...

I try FLOAT and have decimal places, but i things is something wrong with

because it reads only the first character

finder.find("Temperatura pri kurah:");
Ā  Ā  float temperature1 = finder.getValue();
Ā  Ā  Serial.println(temperature1);

serial monitor with float:

10.00 real is 14.30 degrees

read only first digit....

Where is problem ?

Add these lines before setup:
#include <TextFinder.h>
TextFinder finder( client );

Modify the connection code as follows:
if (client.connected())
{
finder.find("Results "); // seek to the Results field
finder.find("of about "); // skip past this
long value = finder.getValue(); // get numeric value
Serial.print(value);
Serial.println(" hits");
}

Where is problem ?

The problem is that you are being lazy, trying to use a class that you do not understand, without reading the documentation. The TextFinder library does nothing that you can't do yourself.

But, if you insist on using it, you really should know that getValue() returns a long. The documentation describes that there are other functions for getting floats and strings.

I have lines

finder.find("Temperatura pri kurah:");Ā  // seek to the Results field
Ā  Ā  long value = finder.getValue(); // get numeric value
Ā  Ā  Serial.print(value);

Read only first number
because there is no comma but is dot, and automatically stop read.

In web show this format:

Temperatura pri kurah: [4.94] ° C

In serial monitor i see only number 4 and not 4.94

I really do not understand why you can not understand that int, long, short, unsigned int, unsigned long, unsigned short, char and byte are integral values and can not possible hold values that are not whole numbers.

4.94 is a floating point value. You MUST get the value AS A FLOAT and store it IN A FLOAT. (Just doing one is NOT sufficient).

Uff PaulS!!!

FLOAT ......

I try FLOAT but returns 5.00 or 4.00 , not 5.25 or 4.81 ....

finder.find("Temperatura pri kurah:");Ā  // seek to the Results field
Ā  Ā  float value = finder.getValue(); // get numeric value
Ā  Ā  Serial.print(value);

It is "TEXT.FINDER" even suitable for my case or not ???? >:(

Re-read my previous two replys. getValue() returns a long. There is NO point in reading part of the number, and then storing it in a float, and expecting that somehow, magically, the decimal point data that you did not read will follow along.

getValue() is the WRONG FUNCTION!.

YOU need to read the documentation to determine the right function.

:slight_smile: :slight_smile: PAULS you are realy help me ....
I speend 3 hours, I finished your puzzle >:(

Now all work, thanks again.....
Second time, write magical letters like this :
;D 8) :wink:

float value1 = finder.getFloat(".");

;D 8) :wink:

Code is now repeated also, i moved request in LOOP.

Well anyway you help me, I am grateful to you

Thankyou

Regards