Report Abuse

Skip to main content
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ.

ASSALAMUALAIKUM W.H.B AND WELCOME TO MY PAGE.

This project apply the NodeMCU ESP8266 as it is a microcontroller embbed together with Wi-Fi
along with four sensors DHT22, Ultrasonic, Soil Moisture and pH sensor.

This blog shall shows progress report/logbook on my Final Year Project.
Every processes/articles/works/researches regarding the project were updated in this blog.

Thank you for visiting this blog. Hopes that anyone reading these posts could gain more knowledges ❤😁.

Week 24

 Sublime Text and HTML code for Webpage Display.

From php MyAdmin, MySQL databased are displayed and this information would be easy for a technical user to understand. However, not all users will be able to comprehend these databases. As a result of the deployment of Sublime Text and HTML, users now have access to a proper table on website. All the data is kept on the cloud, which is where the whole database will be kept.

Sublime Text  imply HTML coding for sending data program to database.

These codes need to be aligned with NodeMCU ESP8266 program and MySQL database to help the data from NodeMCU to be send to the databased. Each table of MySQL database seen on php MyAdmin will require two file of sublime text. Since there are two table of databased therefore four file of sublime text are needed. Figure above shows the first file called “post-esp-data-FYP2.php”. In this coding it summarizes the data from NodeMCU ESP8266 to be sent to MySQL databased.


coding of display MySQL data to webpage

In figure above, it shows the second filed of sublime text created. The file name is “esp-data-FYP2.php”. The summarization of the coding is to display the data that were send from NodeMCU ESP8266 program to the databased of php MyAdmin on the web page. It works as a bridge to allow the data to transmit. Once it is completed, client could access the website of databased at “http://192.168.0.195/public_html/esp-data-FYP21.php. IP address depend on the network connected on wireless network.  

Once it is success, then users could view MySQL databased with proper table on the Webpage as figure below.


Webpage display of MySQL databased.


Comments