PHP micro project
PHP micro project
Mumbai. (M.S.)
MICRO PROJECT
On
“Weather Forecast”
Submitted by
Amol Kakde
Ruchir Terkhedkar
G.S. Mandal’s
Department of Computer Engineering
Marathwada Institute of Technology,
Polytechnic, Aurangabad.
CERTIFICATE
This is to certify that : -
Roll Exam
Name of Student Enrollment No.
No. Seat No.
64 Ruchir Terkhedkar 2100660372 -
Date: 5/4/2024
Principal
Marathwada Institute of Technology,
Polytechnic, Aurangabad
INDEX
3.0 Proposed Methodology (procedure in brief that will be followed to do the micro-
project in about 100-200 words.)
4.0 Action Plan (Sequence and time required for major activity.)
5.0 Resources required (major resources such as row material, some machining facility,
software etc.)
3.0 Course Outcomes Achieved (Add to the earlier list is more Cos are addressed)
5.0 Actual Methodology Followed (Write step wise work done, data collected and its
analysis (if any). The contribution of individual member may also be noted.)
7.0 Outputs of the micro projects (Drawings of the prototype, drawing of survey,
presentation of collected data, findings etc.)
Micro Project
Signature of Teacher :
Weather is something everybody deals with, and accurate data of it like what is coming can
help users to make inform decisions. With weather apps for iOS and Android, people can
exactly know when to expect a change in the weather conditions. Weather apps can give
urgent alerts too.
Undoubtedly, weather forecasting has come a long way, helping people to know about
weather conditions. So, if you are in an area where weather frequently changes from sunny
to torrential rain in a matter of minutes, then what is the easiest way to make sure to be
prepared for. A suitable answer is a weather application.
Weather applications continuously update their forecasts, whether it is by the day, hour or
minute, so it always takes us one step ahead. The best weather apps for Android are like
pocket weather channels, and they do not just tell anyone when the sun is going to shine
andthe rain is going to fall, these apps tell us the wind speed, the UV level, humidity levels,
and even “feels like” temperature to account for the dreaded wind chill.
d) Then I will resarch a information and watched video then I will start my main project.
e) At the time of project if I am getting some problem then I will ask to the respective
subject teacher (Prof . G.B.Adhane) .
f) After removing errors from my project, I will show it to subject teacher for
checking/correction.
4.0 Action Plan (Sequence and time required for major activity.)
properly
04 Start to code 26/02/2023 02/03/2023 Ruchir , Amol
64 Ruchir Terkhedkar
53 Amol Kakde
Annexure-II
Micro-Project Report
(Format for Micro-Project Report minimum 4 pages)
1.0 Rationale (Importance of the project, in about 30 to 50 words. This is a modified version of
the earlier one written after the work)
PHP is a general purpose, server-side scripting language run a web server that’s designed to
make dynamic pages and applications. PHP as a web development option is secure, fast and
reliable. In the growing field of Web technology, it is essential for every Diploma pass outs
to learn PHP Language to help them build interactive web applications. This course is
designed to inculcate web based applications development skills in students using server side
scriptingwith PHP.
a) Weather Forecast
b) Weather History
c) Weather Prediction
d) Humidity
e) Visibility
f) Clouds situations
g) Wind speed
h) Rain Prediction
i) Dynamic city weather viewer
3.0 Course Outcomes Achieved (Add to the earlier list is more Cos are addressed)
a) https://openweathermap.org/
From this website we have generated an api key which we later on used in our source code .
An API key is a unique identifier used to connect to, or perform, an API call. API stands for
application programming interface . Open weather is an website where we can get api’s related to
weather
b) https://en.wikipedia.org/wiki/API_key
c) https://www.hmablogs.com/how-to-create-weather-app-in-php/
From this website we actually get to know how we can use the api keys in programs.
This website also helps us to gather the logic related to our works
d) https://ijarcce.com/upload/2016/december-16/IJARCCE%2037.pdf
e) https://core.ac.uk/reader/95759120
f) https://www.mdpi.com/1424-8220/20/18/5173
Above are some research paper that we have visited to gather some information
g) https://www.accuweather.com/en/in/aurangabad/189320/weather-forecast/189320
We use this website to cross-check(verify), if our website is giving correct weather result
or not. This is trusted and accurate website that sows the forecast of weather.
k) phpMyAdmin https://www.phpmyadmin.net/:
•phpMyAdmin is a web-based tool for managing MySQL databases, including storing user signup data.
•Studies suggest that phpMyAdmin simplifies database management tasks, offering an intuitive interface for executing
SQL queries and managing database structures.
5.0 Actual Methodology Followed (Write step wise work done, data collected and its
analysis (if any). The contribution of individual member may also be noted.)
At the beginning we were confused about selecting Topic for PHP Subject microproject but
after a conversation with subject teacher we made my decision and select topic Weather
Viewer App.
After selecting project topic then we searched lots of information related to test cases.we
was visited more than 5 websites which gave me valuable information about my Project
topic.
As we was not able to proceed further in micro project we did brief discussion with
respected subject teacher (Prof. G.B.Adhane) ,During conversation Mam gave me proper
instruction and Sequence for project.
After removing errors, we had completed my project and got the proper output.
6.0 Actual Resources Used (mention the actual resources used).
7.0 Outputs of the micro projects (Drawings of the prototype, drawing of survey,
Presentation of collected data, findings etc.)
a) Weather History
b) Weather Prediction
c) Humidity
d) Visibility
e) Clouds situations
f) Wind speed
g) Rain Prediction
h) Dynamic city weather viewer
WEATHER FORECAST
Code:
<?php
$status="";
$msg="";
$city="";
if(isset($_POST['submit'])){
$city=$_POST['city'];
$url="http://api.openweathermap.org/data/2.5/weather?q=$city&appid=ce0253a4a31a854ffcfe4cfedee6bfb4";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$result=curl_exec($ch);
curl_close($ch);
$result=json_decode($result,true);
if($result['cod']==200){
$status="yes";
}else{
$msg=$result['message'];
}
}
?>
</div>
</article>
<?php } ?>
</body>
</html>
OUTPUT: