Journal of Cognitive Human-Computer Interaction

Online Weather Station

Sanjay Rajan J., Sanjay Kumar M., Madesh G., Sanjai S., C. Manikandan
Volume 5, Issue 2, pp. 24-30 (2023)
DOI: https://doi.org/10.54216/JCHCI.050203
Online: https://www.americaspg.com/journal/25/article/1827

Abstract

The creation of an online weather station utilising the ESP32 microcontroller and BME280 is described in this abstract. The project's goal is to give people access to current weather information and forecasts via a web interface. The system makes use of sensors to assess temperature, humidity, pressure, and other environmental factors. These measurements are then transferred through Wi-Fi to a cloud-based server. Weather forecasts are created using the analysed and processed data and then shown on an easy-to-use dashboard that can be accessed via a web browser. Users can also sign up to receive email or SMS alerts and notifications if the weather changes. The project provides a scalable and inexpensive method to detect and monitor weather conditions in numerous areas, making it appropriate for application in the aviation, agricultural, and other sectors.

Keywords: Automation System; Weather station; Microcontroller.

1. Introduction

Hello and welcome to the Internet of Things (IoT) world! In this project, we'll investigate how to create an online weather station using the ESP32 microcontroller. Weather information affects our daily decisions in a variety of areas, including agriculture, transportation, and even outdoor sports. We can now build a cost-effective and effective weather station that offers real-time weather data and forecasts via a web interface thanks to the ESP32 microcontroller. To assess environmental factors like as temperature, humidity, pressure, and more, the project uses a variety of sensors. Through Wi-Fi connectivity, the gathered data is then sent to a cloud-based server where it is analysed and processed to produce weather forecasts. Users may use the IoT technology has spread to all sectors, and given the future opportunities and benefits of IoT-based weather monitoring systems, numerous industries can benefit [1].

The IoT weather reporting system finds application among farmers, who can use IoT weather to ensure higher productivity of their crops and reduce the risk of weather hazards. The IoT-based weather station is proving useful for monitoring weather in areas with volcanoes or rainforests. This is especially important with the drastic changes in weather conditions we are currently experiencing.The IoT weather monitoring system with IoT-enabled controllers is fully automated and efficient. It requires no manual labor or attention.You can schedule and visit the places whenever you want without having to check the weather conditions beforehand. You can easily check the status of weather conditions and air quality, etc [2-3].

With the help of embedded devices and sensors, any environment can be transformed into a smart environment to collect data and analyze the environment in real time. with these advances in the Internet of Things (IoT), companies are focusing on understanding the impact of weather on their operations and finding innovative analytics to control the impact on their business.IoT technology has spread to all sectors, and given the future opportunities and benefits of IoT-based weather monitoring systems, numerous industries can benefit. The IoT weather reporting system finds application among farmers, who can use IoT weather to ensure higher productivity of their crops and reduce the risk of weather hazards [4].

The IoT-based weather station is proving useful for monitoring weather in areas with volcanoes or rainforests. This is especially important with the drastic changes in weather conditions we are currently experiencing. The IoT weather monitoring system with IoT-enabled controllers is fully automated and efficient. It requires no manual labor or attention [5].

You can schedule and visit the places whenever you want without having to check the weather conditions beforehand. You can easily check the status of weather conditions and air quality, etc. With the help of embedded devices and sensors, any environment can be transformed into a smart environment to collect data and analyze the environment in real time. with these advances in the Internet of Things (IoT), companies are focusing on understanding the impact of weather on their operations and finding innovative analytics to control the impact on their business [6-8].

Types of Wather Stations

The weather station has a number of devices that are used to provide perfect climate data, depending on how sophisticated the weather station is.

Some of the features of a weather station are listed below:

 Thermometer and hygrometer

 Rain gauge

 UV sensor

 Weather alerts for hail, snow, precipitation

 Air quality tester

 Wind speed and direction

 A ground temperature metre is also available in some models of the weather station

2. Internet of Things (IoT)

2.1 Project Overview

Internet of Things is referred to as IoT. It describes the connectivity of physical objects that are implanted with connectivity, software, and sensors that allow them to connect and exchange data. Examples of such products are appliances and cars. This technology makes it possible to gather and share data from a huge network of gadgets, opening the door to the development of automatic and more effective systems. The Internet of Things (IoT) is the networking of physical items with electronics built into its architecture to enable communication and the detection of interactions between them or with the surrounding environment. IoT-based technology will provide higher levels of services in the future years, effectively altering how individuals go about their daily lives. improvements in gene medicines, agriculture, smart cities, and power [9].

Figure 1. Basic flow-chart
Figure 1. Basic flow-chart

2.2 Existing Method

Weather stations have historically been enormous, expensive equipment that were exclusively available to institutions or specialists. For the majority of people or small enterprises, these systems were out of reach due to the high equipment and installation costs. These weather stations need specialized sensors, data loggers, and communication systems, which were frequently exclusive and pricy. The cost of ownership was further increased by the fact that these devices needed specialized training and expertise for installation and maintenance. These weather stations collected data that was frequently processed and examined by experts, making it challenging for the general public to access or comprehend [10-13].

3. Proposed Method

The suggested approach entails creating a more accessible and affordable weather station utilising the ESP32 microcontroller. Environmental parameters like temperature, humidity, and pressure are measured by the system's BME280 sensor and sent through Wi-Fi to a cloud-based server. Weather forecasts are created using the analysed and processed data and then shown on an easy-to-use dashboard that can be accessed via a web browser. This approach is perfect for use in agriculture, aviation, and other sectors that depend on weather data for decision- making since it provides a scalable and economical option for recording weather conditions in numerous areas.

3.1Hardware Components

Figure 2. ESP32
Figure 2. ESP32

Espressif Systems created and made the low-cost, low-power ESP32 system on a chip (SoC) microcontroller. It is the popular ESP8266 microcontroller's successor, adding new functions and making improvements. A dual-core processor, Wi-Fi and Bluetooth functionality, a selection of digital and analogue input/output pins, and compatibility for numerous communication protocols are all included in the ESP32.

The ESP32 is more powerful than the ESP8266 because of its dual- core processor, which can operate at up to 240 MHz. The ESP32 features up to 512KB of RAM and up to 4MB of flash memory, which is more memory than its predecessor. The ESP32 also comes with a variety of peripherals, including touch sensors, capacitive touch pins, and other communication interfaces like I2C, SPI, and Bluetooth. The ESP32 is widely utilised in many different applications, including robotics, home automation, industrial automation, and IoT (Internet of Things) devices. Applications that call for wireless communication can benefit greatly from its integrated Wi-Fi and Bluetooth capabilities.

Overall, the ESP32 is a robust and adaptable microcontroller that has gained popularity in DIY and maker communities because of its low price, simplicity of usage, and wealth of capabilities.

Figure 3. BME280 SENSOR
Figure 3. BME280 SENSOR

The business Bosch Sensortec created the BME820 sensor type. It is a highly accurate environmental sensor intended to gauge air pressure, temperature, and humidity. The MEMS (microelectromechanical systems) technology-based BME820 is a very small device that can be used in a wide range of applications.The BME820 sensor is made to deliver precise readings of air pressure, humidity, and temperature in a variety of settings. With an accuracy of 0.5°C, it measures temperatures between -40°C and 85°C, humidity levels between 0% and 100% with an accuracy of 2%, and air pressure levels between 300 hPa and 1100 hPa with an accuracy of 0.12 hPa.

Applications for the BME820 sensor are common.It is a highly accurate environmental sensor intended to gauge air pressure, temperature, and humidity. The MEMS (micro-electromechanical systems) technology-based BME820 is a very small device that can be used in a wide range of applications.The BME820 sensor is made to deliver precise readings of air pressure, humidity, and temperature in a variety of settings. With an accuracy of 0.5°C, it measures temperatures between -40°C and 85°C, humidity levels between 0% and 100% with an accuracy of 2%, and air pressure levels between 300 hPa and 1100 hPa with an accuracy of 0.12 hPa.

Overall, the BME820 sensor is a reliable and accurate sensor that is widely used in various industries for environmental monitoring and control.

3.2 SOFTWARE AND LANGUAGES ARDUINO IDE

The open-source software programme known as the Arduino Integrated Development Environment (IDE) is used to create and upload code to Arduino boards. The operating systems Windows, Mac OS X, and Linux all support it.

A code editor with syntax highlighting and automatic indentation, together with a serial monitor for debugging and communication with the Arduino board, are all included in the Arduino IDE. Additionally, a library manager is provided, making it simple for users to download and set up libraries for added functionality.

You must download and install the Arduino IDE on your computer before you can begin using it. Additionally, a USB cable must be used to link your Arduino board to your computer.

3.3 HTML

In order to generate web pages and other kinds of electronic documents that can be seen on the World Wide Web, markup languages called HTML (Hypertext Markup Language) are needed. Web browsers interpret this common markup language, which is used to generate the structure and content of web pages, and show the content to users [14].

The structure and content of web pages are specified by a collection of tags in HTML. Tags are used to specify elements including headings, paragraphs, images, links, forms, and more. Tags are expressed in angle brackets. .html or.htm file extensions are frequently used to preserve HTML documents.

3.4 VISUAL STUDIO CODE

Microsoft created the integrated development environment (IDE) known as Visual Studio, which was originally made available in 1997. Since then, there have been numerous substantial updates and changes to the ecosystem. The most recent edition, released in 2019, comes with a number of additional features and enhancements over earlier iterations.

It is among the most widely used tools for software development, testing, and deployment. The solution comes with all the tools a developer might possibly need, including a code editor, a debugger, compilers, and numerous other tools and services to speed up software development.

4. APPLICATIONS

[15] The ESP32 microcontroller can be used to build a number of online weather stations that can be used in a variety of businesses. Listed below are a few uses for an online weather station:

 Agriculture: Farmers depend on weather information to plan irrigation, harvest, and planting operations. Farmers may organize their activities accordingly by accessing real-time weather information and forecasts from an online weather station.  Aviation: To guarantee safe and effective flight operations, pilots and air traffic controllers rely on precise meteorological data. Aviation professionals may access real-time weather information and forecasts from an online weather station, enabling them to make educated decisions about operations and flight plans.  Construction: The effects of weather on building projects can be enormous, influencing everything from deadlines to safety. Construction managers may plan their projects more effectively by using real-time weather data and projections from an online weather station.  Outdoor recreation: To organise their activities properly, people who participate in outdoor activities like hiking, camping, and fishing require precise weather information. Outdoor enthusiasts can obtain current weather information and forecasts from an online weather station, enabling them to plan their activities wisely.  Research: In many areas of study, including meteorology, environmental science, and climate change, weather data is crucial. Researchers can conduct their research more effectively by using an online weather station to give them access to real- time weather data and forecasts.

5. PROJECT OVERVIEW

Figure 4. Connections
Figure 4. Connections
Figure 5. Webpage overview
Figure 5. Webpage overview

6. Conclusion

In conclusion, creating an online weather station with the ESP32 is a fun and worthwhile project that can give people useful data on the weather in real-time. The ESP32 microcontroller and the sensors it works with offer a dependable platform for data collection and transmission, and the web platform makes it simple for users to access any data. Agricultural use, weather forecasting, and environmental monitoring are just a few of the potential applications for this research. Among other things, it can be used to increase crop yields, forecast weather, and keep an eye on the air quality. Furthermore, it is available to anybody interested in tracking weather conditions because to its inexpensive cost and simplicity of use.

Overall, the ESP32 online weather station is a superb illustration of how technology can be used to deliver useful information that can aid us in better comprehending and navigating our environment. We may anticipate seeing more cutting-edge projects like this one that apply the most recent tools and strategies to address real-world issues as technology develops.

References

Figure
Figure
  1. https://www.digitalocean.com/community/tutorial_series/how-to- build-a-website-with-html
  2. https://www.w3schools.com/howto/howto_make_a_website.asp
  3. https://microcontrollerslab.com/iot-fire-detection-esp32-flame- sensor-email-alert/
  4. https://ieeexplore.ieee.org/document/6851114
  5. Israa Jasim Mohammed 1 * Bashar Talib Al-Nuaimi 2 Ther Intisar Baker 3 , Weather Forecasting over Iraq Using Machine Learning, Volume 2 , Issue 2, PP: 39-45 , 2022
  6. https://ieeexplore.ieee.org/document/8286184.
  7. K. Nanagasabapathy; G. Harish; O. I. Allen Sebastian; N. Sowrabh Chandra; V. D. Ambeth Kumar,” Validation system using smartphone luminescence”, IEEE International Conference on Intelligent Computing, Instrumentation and Control Technologies (ICICICT), Pages: 235 – 239, 2017. DOI: 10.1109/ICICICT1.2017.8342566
  8. V.D.Ambeth Kumar et.al. , “A Survey on Face Recognition in Video Surveillance,” , Lecturer Notes on Computational and Mechanism, Vol. 30, pp: 699-708, 2019
  9. V. D. Ambeth Kumaret.al , “ Cloud enabled media streaming using Amazon Web Services”, IEEE International Conference on Smart Technologies and Management for Computing, Communication, Controls, Energy and Materials, Pages: 195 – 198, 2-4 Aug. 2017, India (DOI: 10.1109/icstm.2017.8089150)
  10. Mohammed K. Hassan , Ahmed K. Hassan , Ali I. Eldesouky, MSJEP Classifier: “Modified Strong
  11. Vijay K, Collaborating The Textual Reviews Of The Merchandise and Foretelling The Rating Supported Social Sentiment, Journal of Cognitive Human-Computer Interaction, Vol. 1 , No. 2 , (2021) : 63 -72 (Doi : DOI: https://doi.org/10.54216/JCHCI.010203)
  12. P. Kavitha , R. Subha Shini , R. Priya, An Implementation Of Statistical Feature Algorithms For The Detection Of Brain Tumor, Journal of Cognitive Human-Computer Interaction, Vol. 1 , No. 2 , (2021) : 57 - 62 (Doi : DOI: https://doi.org/10.54216/JCHCI.010202)
  13. S. Naeem, A. Goktas, F. Jamal, C. Chesneau, and S. Anam, "Machine learning-based automated segmentation and hybrid feature analysis for diabetic retinopathy classification using fundus image," Entropy, vol. 22, no. 5, p. 567, 2020. [Online]. Available: https://doi.org/10.3390/e22050567
  14. S. I. Young et al., "Supervision by Denoising for Medical Image Segmentation," arXiv preprint arXiv:2202.02952, 2022. [Online]. Available: https://arxiv.org/abs/2202.02952
  15. Hamzah A. Alsayadi,El-Sayed M. El-Kenawy,Abdelhameed Ibrahim,Marwa M. Eid,Abdelaziz A.