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

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Some useful stuff
  2. ## GIT
  3. - Command line tool: https://git-scm.com/
  4. - Useful commands: https://www.syncfusion.com/blogs/post/top-10-git-commands-every-developer-should-know.aspx
  5. - Nice GUI: https://www.sourcetreeapp.com/
  6. ## Python
  7. ### Python Virtual Environments
  8. Create Virtual Environment:
  9. ```python -m venv .venv```
  10. Activate VE:
  11. - ```.venv/Scripts/activate.bat``` (Win CMD)
  12. - ```.venv/Scripts/activate.ps1``` (Win PS)
  13. - ```source .venv/bin/activate``` (Linux/mac bash)
  14. Deactivate VE:
  15. - ```.venv/Scripts/deactivate.bat``` (Win CMD)
  16. - ```.venv/Scripts/deactivate.ps1``` (Win PS)
  17. - ```deactivate``` (Linux/mac bash)
  18. Install requirements.txt:
  19. ```pip install -r requirements.txt```
  20. Freeze requirements
  21. ```pip freeze > requirements.txt```
  22. ### Python Flask
  23. https://flask.palletsprojects.com/en/2.2.x/quickstart/#a-minimal-application
  24. ```flask --app python-flask-server run``` to run server on localhost
  25. ```flask --app python-flask-server run --host=192.168.1.x``` to define own host
  26. To send requests to your service, https://www.postman.com/downloads/ is a good application.
  27. ## MQTT
  28. - https://www.youtube.com/watch?v=EIxdz-2rhLs&ab_channel=RuiSantos
  29. - MQTT Explorer: https://mqtt-explorer.com/
  30. - MQTT Broker: https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/
  31. - Maybe this tool could be helpful to manage the logic: https://nodered.org/
  32. - how we can use MQTT with Arduino IDE: https://randomnerdtutorials.com/esp32-mqtt-publish-subscribe-arduino-ide/
  33. ## Matter
  34. - https://github.com/project-chip/connectedhomeip
  35. - https://blog.espressif.com/announcing-matter-previously-chip-on-esp32-84164316c0e3
  36. ## Git Command line Order to Push:
  37. - ```git pull origin```
  38. - ```git add .```
  39. - ```git commit -m "message"```
  40. - ```git push origin```
  41. ## Passwords:
  42. - Backend PC: Lego_Ohm1
  43. - Raspy: OHM_123.!