Springboot

Solar Car Charging Dance In Software

Paul Goulbourn
After thinking about how to use the solar power my home generates in the most efficient way I realised that this is a generic problem. Effectively we have three types of devices in play : Generation Sources. eg. my solar panels, the house battery, the grid. Switchable Consuming Devices. eg. My car, a heat pump, the house battery. The load generated by these devices can be turned on/off. Background Load. The overall usage at the site.

RestTemplate and Java 17 Records

Paul Goulbourn
As part of my ongoing solar project I wanted some basic weather forecast information to help make judgements around cloud coverage. The good people at OpenWeather provide an api with a free tier that includes forecasted cloud coverage data hourly for a couple of days. The api returns a JSON structure that looks like this : { "lat": 50.8, "lon": 0.027, "timezone": "Europe/London", "timezone_offset": 0, "current": { "dt": 1644836705, "sunrise": 1644822797, "sunset": 1644858426, "temp": 281.