INTERNET ARDUINO CONTROL

Hello, I work at present in a personal project the purpose of which is to automate the air conditioning of the house with arduino and especially with internet.
Thus I have already managed to send the data on the Internet thanks to MYSQL and to post(show) them in my web page.
The righteous it is the opposite, if I say that I want to have a 5 degree Celsius ambient temperature, I seize her(it) on the web page and to send him(it) in mysql then towards arduino, thus arduino will serve later as thermostat.
If you have an idea, please
I use arduino uno
the ethernet shiel
and php code

I have no idea what to do because there are no tutorial for it on the net (I do not find). the problem is that I have to send several given to both Arduino, not one. So how?
I have envoier to each configuration and maximum acceptable temperature miimale (it's required)

I try to get some thing like this on my arduino, it may -Being a track if you can help me

"GET /?out=3&status=1"

What are you using to 'sense' the air conditions? I am using a DHT22 sensor to test my air quality, and trigger relays based upon those conditions. I will share that code here.

#include "DHT.h" // Temp/Humidity Sensor Library

#define TURN_ON 0 // TURN_ON and TURN_OFF are defined to account for Active High relays
#define TURN_OFF 1 // Used to switch relay states for on/off of AC devices

#define Relay_A  30  // relay 1 - Mega Pin 30  //  Lights ----- // Timed
#define Relay_B  31  // relay 2 - Mega Pin 31  //  Feed Pump(s) // Timed
#define Relay_C  32  // relay 3 - Mega Pin 32  //  ------------ // Timed
#define Relay_D  33  // relay 4 - Mega Pin 33  //  ------------ // Timed
#define Relay_E  34  // relay 5 - Mega Pin 34  //  Exhaust Fan- // Conditioned
#define Relay_F  35  // relay 6 - Mega Pin 35  //  Heater------ // Conditioned
#define Relay_G  36  // relay 7 - Mega Pin 36  //  Dehumidifier // Conditioned
#define Relay_H  37  // relay 8 - Mega Pin 37  //  ------------ // Conditioned

// Sensor Declaration
#define DHTPIN A2     // DHT22 data - pin A2.  A 10k pullup resistor is used to connect data to +5V
#define DHTTYPE DHT22

//  DHT Reference Values - CHANGE THESE TO MANAGE YOUR ROOM'S CLIMATE - //
byte hiMaxTemp = 90;   // temp that triggers heat removal fan on
byte lowMaxTemp = 75;  // temp that triggers heat removal fan off 
byte hiMinTemp = 70;   // temp that triggers heater on
byte lowMinTemp = 60;  // temp that triggers heater off
byte hiHum = 75;       // High humidity value that triggers dehumidifier on
byte lowHum = 70;      // Low humidity value that triggers dehumidifier off

//  declare DHT variables
float h;
float f;

void setup()
{
dht.begin();
}

void loop()
{
delay (2000);

  h = dht.readHumidity();  // assigns humidity reading as "h"
  f = dht.readTemperature(true);  // assigns fahrenheit reading as "f"
    if (isnan(f) || isnan(h)) 
  {
    Serial.println("Failed to read from DHT");
  }

  else
  {
    float hi = dht.computeHeatIndex(f, h);
    Serial.print(F(" Humidity: "));
    Serial.print(h);
    Serial.println("%\t");
    Serial.print(F(" Fahrenheit: "));
    Serial.print(f);
    Serial.println(" \t");
    Serial.println();
  }
  delay(500);

  //   Tests temp & humidity to see if preset values are exceed.
  //   If exceeded, a relay is trigger high to power an exhaust fan or heater.
//**************************** REMOVING HEAT *************************************//
  if (f >= hiMaxTemp)  //if "f" is greater than or equal to hiMaxTemp,
  {
    digitalWrite(Relay_E, TURN_ON);  // TURN_ON relayE (fan).
    Serial.print("\t");
    Serial.println(F("Exhausting the heat!")); //  Text printed to serial monitor
    Serial.print("\t");
  }
  else if (f <= lowMaxTemp)  //  or else if "f" is less than or equal to lowMaxTemp
  {
    digitalWrite(Relay_E, TURN_OFF); //  TURN_OFF relay E.
  }
  delay (500);
//****************************** ADDING HEAT *******************************//
  if (f <= lowMinTemp)   
  {
    digitalWrite(Relay_F, TURN_ON);  // (heater)
    Serial.print("\t");
    Serial.println(F("Warming the room!"));  
    Serial.print("\t");
  }
  else if(f >= hiMinTemp);
  {
    digitalWrite(Relay_F, TURN_OFF); 
  }
delay (250);
//**************************** REMOVING HUMIDITY *******************//
  if (h >= hiHum) 
  {
    digitalWrite(Relay_G, TURN_ON);  // (dehumidifier)
    Serial.print("\t");
    Serial.println(F("Drying the air!"));  
    Serial.print("\t");
  }
  else if (h <= lowHum)
  {
    digitalWrite(Relay_G, TURN_OFF);  
  }
}
}

Half of my relays are earmarked for Time and the other half for Conditions. I too am wanting my project data to get posted to my website (PHP in WordPress) but am unable to find any code that will help me get to where I want it to be. Would you kindly share your networking code so I can see how you prepare your data, send it to your MySQL, and then to your web page.

Any assistance you can provide will be most helpful in my project. Even if it doesn't perform to my expectations, I can still learn a lot from it by seeing the general structure of it all, and what needs to occur to be successful.

Thanks in advance

Ok I use the DS18B20 for the temperature sensing. i've use web client to send

that's the methode tosend data from arduino with the ethernet shield

client.print( "GET /testserver/arduino_temperatures/add_data.php?");
client.print("serial=");
client.print( "288884820500006X" );
client.print("&&");
client.print("temperature=");
client.print( "12.3" );
client.println( " HTTP/1.1");
client.print( "Host: " );
client.println(server)
client.println( "Connection: close" );
client.println();
client.println();
client.stop();

Curious, was my above code helpful at all? I'll do my best with questions, but for the DHT, that code works perfectly. As best I can tell, the sensor is initialized and then read with each loop, and based upon each reading, my (byte) variables are tested to see if values were breached.

Do you have a link to a tutorial, or can you list all of the code, files, and procedures? I hate to ask for so much, but I really need this, or at least something I can use to advance my understanding so I can get my project connected to my page.

or just open webclient on example

With this code, i can send data to arduino from web, but i want to use the number to control the arduino

/*
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[] = { 0x90, 0xA2, 0xDA, 0x0F, 0x69, 0x4B };
// 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,1,77); // numeric IP for Google (no DNS)
char server[] = "voromahery.esy.es"; // name address for Google (using DNS)
//IPAddress server(192,168,1,77);
// Set the static IP address to use if the DHCP fails to assign
IPAddress ip(192,168,1,177);

// 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 Leonardo only
}

// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// no point in carrying on, so do nothing forevermore:
// 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.print("GET /rec.php HTTP/1.1\n");
client.println("GET /rec.php HTTP/1.1");///tech/rec.p
client.println("Host: voromahery.esy.es");
client.println("Connection: close");
client.println();
}
else {
// kf 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("value of c= ");
Serial.print(c);
Serial.println(" V ");
}

// if the server's disconnected, stop the client:
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();

// do nothing forevermore:
while(true);
}
}