Weather Checker Tool Kaise Bnaye -With Php And Openweathermap Api


Weather Checker Tool Kaise Bnaye

Local Weather from AccuWeather.com-


(weather check,weather report,temprature checker,humidity meter,wind speed meter)
Hello Friends Ajj Me Apko Btaunga Ki Kis Prakar Ham Weather Checker Tool Bana Sakte Hai Php ,Html Use Karke.
Yanha Aap Signup Kar Lijiye .Apko Signup Karne Ke Bad Apki Api Key Milegi Aap Us Api Key Ko Yanha Paste Kar De Code Me Ya Fir Aap Same To Same Niche Diye Gye Code Ka Use Kar Sakte Hai Means Mere Api Key Ka Be Use Kar Sakte Hai.
App Index.Php Name Ki File Create Kar Lijiye Wanha Niche Diya Gya Code Copy Kar Lijiye
Index.Php
<center>

<!DOCTYPE html>

<html>

<head><title>Weather Report Using api </title>



</head>



<body>



<center>



</center>

<center><br><br>

<h1> Gajabwap Web In Hindi   Check Temprature Here</h1>

<form method="GET" action="">

<h1>Type City and Country</h1>

<input type="text" name="map" required>

<input type="submit" name="submit">

</form>

</center>

</body>

</html>



<?php



error_reporting(0);

if(isset($_GET['submit'])){

$get = json_decode(file_get_contents('http://ip-api.com/json/'),true);

date_default_timezone_set($get['timezone']);

$city = $_GET['map'];

$string = "http://api.openweathermap.org/data/2.5/weather?q=".$city."&units=metric&appid=24a2aca5fe1efdc6b8fcf5698a0e7ad8";

$data = json_decode(file_get_contents($string),true);



$temp = $data['main']['temp'];



$visibility = $data['visibility'];

$visibilitykm = $visibility / 1000;



$temperature =  $temp."°C-<b>Temprature</b><br>";

$clouds = "".$data['clouds']['all']."%-<b>Clouds</b><br>";

$humidity = "".$data['main']['humidity']."%-<b>Humidity</b><br>";

$windspeed = "".$data['wind']['speed']."m/s-<b>Wind Speed</b><br>";

$pressure = "".$data['main']['pressure']."hpa-<b>Pressure</b><br>";

$visibility =  "".$visibilitykm."Km-<b>visibility</b><br>";







  echo $temperature;



echo $humidity;

echo $windspeed;

echo $pressure;

echo $visibility;

  echo $clouds;



   echo $city;

}



?>

</center>





App Is Code Ko Copy Karke Aap Apne Website Me Jis Place Par Aap Weather Checker Tool Lagana Chahte Ho Wanha Is Code Ko Add Kar Dijiye .
 Is Parkar Aap Easily Apne Website Me  Weather Checker Tool Integrate Kar Sakte  Hai

Me Ummid Karta Hu Ki Apko Mere Ye Post Achi Lagi Hogi Agar Apko Koi Be Problem A Rhe Hai To Aap Comment Section Me Puch Sakte Ho Me Apki Puri Sahayata Karunga
Thank You
Team Gajabwap Web In Hindi
Previous
Next Post »
Thanks for your comment