Now i can see this in my serial.
With this code:
/*
Web client
This sketch connects to a website (http://www.google.com)
using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
created 18 Dec 2009
by David A. Mellis
modified 9 Apr 2012
by Tom Igoe, based on work by Adrian McEwen
*/
#include <SPI.h>
#include <Ethernet.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0x84, 0x42, 0x8B, 0xBA, 0xB2, 0x31 }; //mac address of ethernet shield
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
IPAddress server(192,168,5,91); // numeric IP for Google (no DNS)
//char server[] = "www.google.com"; // name address for Google (using DNS)
// Set the static IP address to use if the DHCP fails to assign
IPAddress ip(192, 168, 5, 92);
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// try to congifure using IP address instead of DHCP:
Ethernet.begin(mac, ip);
}
// give the Ethernet shield a second to initialize:
delay(1000);
Serial.println("connecting...");
// if you get a connection, report back via serial:
if (client.connect(server, 80)) {
Serial.println("connected");
// Make a HTTP request:
client.println("GET /search?q=arduino HTTP/1.1");
client.println("Host: www.google.com");
client.println("Connection: close");
client.println();
} else {
// if you didn't get a connection to the server:
Serial.println("connection failed");
}
}
void loop() {
// if there are incoming bytes available
// from the server, read them and print them:
if (client.available()) {
char c = client.read();
Serial.print(c);
}
// if the server's disconnected, stop the client:
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();
// do nothing forevermore:
while (true);
}
}
i see this in serial monitor :
connecting...
connected
HTTP/1.1 200 OK
Content-Type: text/html
Connection: close
Refresh: 5
<font color=black size=7>Senzorji DS18B20<font color=black size=7>
<font color=black size=7>Temperatura pri kurah: [5.06] °
C
<font color=green size=7><font color=black size=7>
<font color=black size=7>Temperatura v kurilnici: [9.88] °
C
<font color=green size=7><font color=black size=7>
<font color=black size=7>Temperatura v garazi: [6.63] °
C
<font color=black size=7>
Senzor DHT22<font color=black size=7>
<font color=black size=7>Temperatura v garazi: [nan] °
C
<font color=green size=7><font color=black size=7>
<font color=black size=7>Vlaga v garazi: [nan] %
<font color=green size=7>
disconnecting.
How now extract this value [6.63] and show in LCD ?
I use some sketch for lcd
Like this :
void loop() {
delay(250);
//float h = dht.readHumidity();
//float t = dht.readTemperature();
float temp1 = sensors.getTempC(Thermometer1); //Kurilnica
float temp2 = sensors.getTempC(Thermometer2); //Peč
float temp3 = sensors.getTempC(Thermometer3); //Dovod
float temp4 = sensors.getTempC(Thermometer4); //Povratek
//prints sensor output to lcd and serial monitor
// LCD 1
//lcd1.clear();
// prva vrsta
lcd1.setCursor(0, 0);
lcd1.print("PIN8/PEC:");
lcd1.setCursor(13, 0);
lcd1.print(temp2);
// druga vrsta
lcd1.setCursor(0, 1);
lcd1.print("DOVOD:");
lcd1.setCursor(13, 1);
lcd1.print(temp3);
// tretja vrsta
lcd1.setCursor(0, 2);
lcd1.print("POVARETEK:");
lcd1.setCursor(13, 2);
lcd1.print(temp4);
// četrta vrsta
lcd1.setCursor(0, 3);
lcd1.print("KURILNICA:");
lcd1.setCursor(13, 3);
lcd1.print(temp1);
// LCD 2
// lcd2.clear();
// prva vrsta
lcd2.setCursor(0, 0);
lcd2.print("PIN8/PEC:");
lcd2.setCursor(13, 0);
lcd2.print(temp2);
// druga vrsta
lcd2.setCursor(0, 1);
lcd2.print("DOVOD:");
lcd2.setCursor(13, 1);
lcd2.print(temp3);
// tretja vrsta
lcd2.setCursor(0, 2);
lcd2.print("POVRATEK:");
lcd2.setCursor(13, 2);
lcd2.print(temp4);
// četrta vrsta
lcd2.setCursor(0, 3);
lcd2.print("KURILNICA:");
lcd2.setCursor(13, 3);
lcd2.print(temp1);
Thankyou for help....