netatmo-api
is a lightweight api written in java. It's mostly just for fun, but the purpose is retrieving from netatmo apis.
- You need to have your own Netatmo Weather Station in order to use this CLI
- Sign up at netatmo and create an app to get
clientId
andclientSecret
in order to retrieve data from your Netatmo Weateher Station through the API.
final NetatmoConfiguration config = new NetatmoConfiguration(
"YOUR_NETATMO_CLIENTID",
"YOUR_NETATM_CLIENTSECRET",
"YOUR_NETATMO_USERNAME",
"YOUR_NETATMO_PASSWORD");
final NetatmoApiClient client = new NetatmoApiClient(config);
final WeatherResource weatherResource = apiClient.weatherResource();
final StationData stationData = weatherResource.getStationData();