![]() If there's enough interest, I can create a separate tutorial covering that. There are ways to enable Flask to accept CORS requests and resources for that are easy to find. So because of that, we will run the Flask app behind Apache so that we can simpley hit our Pi's IP address and control our LED. A flask app runs on port 5000 and if we serve the web page through Flask, then it's fine, but no one wants to go to a website with a Port number. ![]() Why? In the next tutorial, we'll use a simple web app to make an AJAX request to turn on and off an LED from a browser. ![]() Welcome to another Raspberry Pi Tutorial! In the last tutorial, I showed you How to run a Flask App on a Raspberry Pi In today's tutorial, we will take another step run a Flask app behind an Apache web server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |