Tag: Web-based console
-
Web-Based console for Raspberry Pi: HTTP GET and HTTP POST
In this project, HTTP GET and HTTP POST are by Ajax in HTML file to talk with python file “server.py”. The main difference between HTTP GET and HTTP POST requests lies in how the data is transmitted and the intended purpose of each request type: In summary, GET requests are used for retrieving data, while… Read more
-
Web-Based console for Raspberry Pi: JSON data
In this Raspberry Pi project, JSON data is utilized as an interchange format between the front-end HTML/JavaScript and the back-end Python programs. In this post, let’s delve into the topic of JSON data, specifically focusing on its role in this project and providing examples of how it is used in the programs. JSON (JavaScript Object… Read more
-
Web-Based console for Raspberry Pi: python code to control GPIO
The GPIO pin status on a Raspberry Pi is managed through the /sys/class/gpio/ directory in the Linux file system. This directory contains a series of files and directories that allow you to interact with the GPIO pins. When you configure a GPIO pin as an input or output, a corresponding entry is created in the /sys/class/gpio/ directory. The naming… Read more