Merge branch 'main' into '44-als-gebruiker-wil-ik-dat-de-website-automatisch-het-aantal-nodes-dat-ik-heb-aangesloten-op-de'
# Conflicts: # arduino/node-code/node-code-final/node-code-final.ino # arduino/node-code/node-code-final/nodeCodeFinal.ino # arduino/node-code/node-code-final/nodeCodeHeader.h
This commit is contained in:
16
docs/rpi-documentation/Flask.md
Normal file
16
docs/rpi-documentation/Flask.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Flask
|
||||
|
||||
|
||||
## Introduction
|
||||
Flask is a micro web framework written in Python. It is easy to use and has a lot of documentation. We are going to use Flask to serve our REST api.
|
||||
|
||||
## Cheatsheet
|
||||
```python
|
||||
print(f"Hello world have a nice {args}!")
|
||||
```
|
||||
This way you can put variables in a string. This is called f-strings.
|
||||
|
||||
|
||||
|
||||
## Rules for python
|
||||
* You can only use one return statement in a function.
|
@@ -9,6 +9,8 @@ There are different languages to serve websockets with, but we are going to use
|
||||
|
||||
## Issues
|
||||
|
||||
Not all ports are open so we need to make a reverse proxy to use websockets.
|
||||
|
||||
### Ports
|
||||
We can only use certain ports like 113, 80, 443. These are common ports and are not blocked by firewalls. Something in the network is blocking all other ports which makes it hard to use websockets.
|
||||
|
||||
|
Reference in New Issue
Block a user