Package: uvraspy
UVedor HatSoftware for the UVedora hat.Getting startedto install the project consult theinstallation guideInstallationRaspberry PiThe python program can only be installed on the raspberry piBefore you install the program please install the dependencies required for the program to run. these are described belowInstalling uvraspy using pipYou can installuvraspyusing pip by running the following command:pipinstalluvedorauvraspy is now installed on your raspberry pi and you can start the program by running the following command:uvraspyInstalling uvraspy from sourceYou can also install uvraspy from source by running the following commands:# Make sure you are in the desired directorygitinit
gitremoteadd-foriginhttps://gitlab.utwente.nl/computer-systems-project/2022-2023/student-projects/cs22-25/cs-22-25-assignments.git

gitconfigcore.sparseCheckouttrueecho"RasPy/*">>.git/info/sparse-checkout
gitpulloriginmainTo run the program you can run the following command:cdRasPy/
python3-muvraspy.mainDependenciesYou need to install the following dependencies before you can install the program:sudoapt-getupdate
sudoaptinstallbluetoothbluezlibbluetooth-devlibudev-devWhen installing from source you also need to install the python dependencies, these can be installed by running the following command:pipinstall-rRasPy/requirements.txtSensorsHumidity-Temperature sensor (KY-015 DHT11)(front-facing, connections downwards)connect left connection to GPIO 23 (pin 16)connect middle connection to 3V3 power (pin 1)connect right connection to Ground (pin 6)Pressure sensor (BMP280)connect GND to Ground (pin 6)do not connect VCCconnect SCL to GPIO 3 (SCL) (pin 5)connect SDA to GPIO 2 (SDA) (pin 3)do not connect CSBconnect SDO to 3V3 power (pin 1)UV Sensor (LTR390 ALS+UV Sensor)connect VIN to 3V3 power (pin 1)do not connect 3V0connect GND to Ground (pin 6)connect SCL to GPIO 3 (SCL) (pin 5)connect SDA to GPIO 2 (SDA) (pin 3)do not connect INTAndroidThe android app can be installed on any android device running android 6.0 or higher.Installing the appYou can install the app by downloading the apk file from thereleases pageand installing it on your android deviceBuilding the app from source (only for developers)To build the app from source you need to install the following tools:Android Studio (recommended)Android SDK (v33)Android build toolsAndroid SDK Platform-ToolsAndroid SDK Command-line ToolsFlutter SDKAfter installing the tools you can clone the repository and open the MobileApplication project in the terminal or in Android StudioTo build the app you can run the following command:flutterbuildapk--releaseThe apk file can be found inbuild/app/outputs/flutter-apk/app-release.apkUsageRaspberry Pito run the program on the raspberry pi enter the following command:uvraspyAndroidto run the program on android install the app from thereleases pageand run the appwhen your hat is running you can connect to it using the appSupport and contactif you have any questions or problems you can contact usby emailorby creating an issueAuthors and acknowledgmentdeveloped by:Niek AukesFemke WeijsenfeldBjorn VuurensTessa LimbeekMaxim Roșcaspecial thanks to:Andy LeeContributingif you want to contribute to the project you can create a merge requestmake sure to read thecontribution guidelinesbefore you start contributingLicenseGnu General Public License v3.0