HTTP and JSON in Python¶
In this week, we will communicate via HTTP and build our own little server for that. This server will be able to serve a simple website and we will use it to store data from the Raspberry Pi.
Learning Goals¶
After this week, you will be able to:
- Create your own webserver in Python.
- Serialize data in Python via JSON.
- Send complex data types via HTTP.
- Assemble an overall system.
- Know more about HTTP, JSON, client-server, request-response.
- Today's lecture slides
Preparation¶
Go through the following preparation material before we meet in class:
Teamwork¶
In the lab, go through the following activities with your team:
Individual Reflections¶
Every week, each of you should complete a short reflection about what you have learned. Think about one thing you learned well, and one thing you found difficult. This helps you reflect on your learning, and also gives us valuable insight.
Add your individual reflections at the end of each week's section of your lab report.