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.8KB

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

Git Command line Order to Push:

  • git pull origin
  • git add .
  • git commit -m "message"
  • git push origin

Passwords:

  • Backend PC: Lego?Ohm1
  • Raspy: OHM_123.!