repository to manage all files related to the makeathon farm bot project (Software + Documentation).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usefull-stuff.md 1.6KB

Some useful stuff

GIT

Python

Python Virtual Environments

Create Virtual Environment:

```python -m venv .venv```

Activate VE:

  • .venv/Scripts/activate.bat (Win CMD)
  • .venv/Scripts/activate.ps1 (Win PS)
  • source .venv/bin/activate (Linux/mac bash)

Deactivate VE:

  • .venv/Scripts/deactivate.bat (Win CMD)
  • .venv/Scripts/deactivate.ps1 (Win PS)
  • deactivate (Linux/mac bash)

Install requirements.txt: pip install -r requirements.txt

Freeze requirements pip freeze > requirements.txt

Python Flask

https://flask.palletsprojects.com/en/2.2.x/quickstart/#a-minimal-application

flask --app python-flask-server run to run server on localhost flask --app python-flask-server run --host=192.168.1.x to define own host

To send requests to your service, https://www.postman.com/downloads/ is a good application.

MQTT

Matter