Skip to content

BFH-data-driven-waste-management/data-acquisition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data-Driven Waste Management - Data Acquisition

Summary

The data-aquisition backend system acts as the central data repository and integration layer. Its responsibilities include receiving incoming data from mobile clients, validating the received payloads, and storing the data in a persistent and structured form. The backend does not actively control or coordinate field operations nor provide real-time feedback. In addition to client-generated data, the backend consumes the city’s daily waste bin metadata export via the existing FME interface. This external data source is treated as authoritative for bin locations, and bin types and used as the basis for bin identification during data capture.

Implementation

The backend is a layered Spring Boot application that provides the REST API for the Data-Driven Waste Management system. It follows a controller-service-repository structure to separate API handling, application logic, and persistence access. Data is persisted using Spring Data JPA with Hibernate, while authentication is handled centrally through JWT-based Spring Security.

The application also includes scheduled backend processes and centralised exception handling to provide consistent HTTP responses for backend errors and invalid application states.

How to develop

  1. Run docker compose up -d (once).
  2. Create a run configuration that enables the dev profile.
  3. Add a dummy 265-bit jwt secret as an environment variable in the run configuration: APP_JWT_SECRET=265-bit-secret.
  4. Request the FME URL from the City of Biel and insert it in bin-service/src/main/resources/application.yml instead of CITY_OF_BIEL_FME_INTERFACE_URL.

Authors


License

Copyright (c) 2026 Affolter Marco, Scherer Janic, Scherer Luca. All rights reserved.

This repository is made available for academic, educational, and research purposes only. Commercial use, redistribution, sublicensing, hosted use, or use in production systems requires prior written permission from the copyright holders. See the LICENSE file for details.

About

Responsible for aquiring (especially bin fill level) data.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors