Skip to content

mariusbreivik/netatmo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netatmo-api

📖 describe()

netatmo-api is a lightweight api written in java. It's mostly just for fun, but the purpose is retrieving from netatmo apis.


📜 prerequisites()

  • 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 and clientSecret in order to retrieve data from your Netatmo Weateher Station through the API.

💾 use()

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();