About
The source code of the location-based services project group that develops a crowd-sourcing backend and apps for temperature information. For more information see the Mobile Weather Station website.
Setup
This project is configured to be built with Gradle which allows automated building and testing using Jenkins. The project is a multi-module project so that different system components can be developed in separate library projects. Widely used integrated development environments such as IntelliJ IDEA or Eclipse enable direct imports of the Gradle modules. IntelliJ supports this out of the box. Eclipse uses the Buildship Plugin to generate the Eclipse settings from the build.gradle files.
Building
To build the project, you will have to install Java, Gradle and the Android SDK. Make sure to install the platform packages for API level 28 using the SDK manager, as they are required to build the application. When everything is set up, simply run 'gradle build' or 'gradle clean build' to trigger a build.
Jenkins CI
Pull requests and new commits to any branch are automatically built by a Jenkins service. A Gitea webhook informs the service about changes to the repository. In addition, the service will automatically scan the lbs Gitea organization for new repositories every hour. Successful builds of new commits are indicated by a green tick on the commit page. The build status of pull requests is currently not shown in Gitea. However, you can go to the Jenkins service to view the result of builds including the console output. To modify the build process, you can change the Jenkinsfile groovy script in the root of the repository, if necessary.
Configuration
The MoWeSta backend uses a number of system properties to configure the location of input and output folders, the base url of videos and the forecast downlods. You can set them when starting wildfly by passing a -DpropretyName=propertyValue switch to the standalone.sh. The configurations are:
- baseDirectory: Defines where the input and output folders are placed. Default is working directory.
- limitedMode: Defines whether to limit the forecast download to cosmo europe. Default is false.
- videoUrl: Define the url to prefix the file names with. Default is https://www.mowesta.com/data/video.