diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..1ff1093 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/projektarbeit_duelger_waldhauser_caliskan.iml b/.idea/projektarbeit_duelger_waldhauser_caliskan.iml index 43f86f1..431ae89 100644 --- a/.idea/projektarbeit_duelger_waldhauser_caliskan.iml +++ b/.idea/projektarbeit_duelger_waldhauser_caliskan.iml @@ -2,6 +2,7 @@ + \ No newline at end of file diff --git a/README.md b/README.md index f5f5bf0..c7f23f1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ -# projektarbeit_duelger_waldhauser_caliskan +# Smart Garden Project -repository to manage all files related to the makeathon farm bot project (Software + Documentation). +- Repository to manage all files related to the Makeathon farm bot project (Software + Documentation). -To use the same module versions in backend and raspi communication, a conda environment was created -Basic conda usages: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html \ No newline at end of file +## Folders: + +- /software: contains all software components + - /software/backend: server, database and mqtt broker sourcecode + - /software/robot: raspi and robot sourcecode + - /software/frontend: Website sourcecode + +## How to develop: + +- Installation of venv in usefull-stuff.md file diff --git a/environment.yml b/environment.yml deleted file mode 100644 index 1690642..0000000 Binary files a/environment.yml and /dev/null differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..19ac505 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,10 @@ +certifi==2022.12.7 +charset-normalizer==3.0.1 +click==8.1.3 +Flask==2.2.3 +idna==3.4 +itsdangerous==2.1.2 +Jinja2==3.1.2 +MarkupSafe==2.1.2 +requests==2.28.2 +urllib3==1.26.14 \ No newline at end of file diff --git a/usefull-stuff.md b/usefull-stuff.md new file mode 100644 index 0000000..5744ebe --- /dev/null +++ b/usefull-stuff.md @@ -0,0 +1,49 @@ +# Some useful stuff + +## GIT +- Command line tool: https://git-scm.com/ +- Useful commands: https://www.syncfusion.com/blogs/post/top-10-git-commands-every-developer-should-know.aspx +- Nice GUI: https://www.sourcetreeapp.com/ + +## 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 +- https://www.youtube.com/watch?v=EIxdz-2rhLs&ab_channel=RuiSantos +- MQTT Explorer: https://mqtt-explorer.com/ +- MQTT Broker: https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/ +- Maybe this tool could be helpful to manage the logic: https://nodered.org/ +- how we can use MQTT with Arduino IDE: https://randomnerdtutorials.com/esp32-mqtt-publish-subscribe-arduino-ide/ + +## Matter +- https://github.com/project-chip/connectedhomeip +- https://blog.espressif.com/announcing-matter-previously-chip-on-esp32-84164316c0e3 \ No newline at end of file