How jazjmjk/sshweatherapp works
This Spring Boot weather application presents station observations and exposes weather-data endpoints. The main workflow is a browser request handled by WeatherController, which delegates station discovery or latest/range retrieval to SshService; the service reads remote station files over SSH and produces weather records for the response or dashboard model. The controller also contains station statistics and health-check behavior. The excerpts establish these service/model relationships, but do not show the exact view mapping or SSH host configuration, so those links are omitted or marked unverified.
Main entry points: WeatherController.java Weather controller · SshService.java SSH weather service · WeatherData.java Weather records · Estacion.java Station metadata
Components 8
Web interface
- Weather controller
src/main/java/com/data/sshweatherapp/controller/WeatherController.java - Weather dashboard
src/main/resources/templates/principal.html - Spring Boot entry
src/main/java/com/data/sshweatherapp/SshWeatherAppApplication.java
Weather domain
- Weather records
src/main/java/com/data/sshweatherapp/model/WeatherData.java - Station metadata
src/main/java/com/data/sshweatherapp/model/Estacion.java
Remote data access
- SSH weather service
src/main/java/com/data/sshweatherapp/service/SshService.java - Remote station files
Other components
- Browser user
Connections 8
- Browser user → Weather controller: requests weather
src/main/java/com/data/sshweatherapp/controller/WeatherController.java - Weather controller → SSH weather service: requests data
src/main/java/com/data/sshweatherapp/controller/WeatherController.java - SSH weather service → Remote station files: reads via SSH
src/main/java/com/data/sshweatherapp/service/SshService.java - SSH weather service → Weather records: creates records
src/main/java/com/data/sshweatherapp/service/SshService.java - SSH weather service → Station metadata: builds metadata
src/main/java/com/data/sshweatherapp/service/SshService.java - Weather controller → Weather records: uses records
src/main/java/com/data/sshweatherapp/controller/WeatherController.java - Weather controller → Station metadata: uses station data
src/main/java/com/data/sshweatherapp/controller/WeatherController.java - Weather controller → Weather dashboard: may render