This Mac app displays weather information about the Netatmo weather station you have at home. The app uses the Netatmo API to fetch the data.
- MacOS 13 or later
- A Netatmo Weather Station
- A Netatmo account and API key
To set up credentials for your Netatmo weather station, follow these steps:
-
Visit the Netatmo Developer website and log in with the account you registered your weather station.
-
Go to My apps to find your
clientId
andclientSecret
. -
Use the Token generator in the same section to generate your
accessToken
andrefreshToken
. -
Navigate to My Account > Settings > Manage my home to find your weather station's
deviceId
(MAC address). -
Rename the file
NetatmoCredentials.swift.txt
toNetatmoCredentials.swift
. -
Replace the placeholders in
NetatmoCredentials.swift
with your credentials:
struct NetatmoCredentials {
static var accessToken = "YOUR_ACCESS_TOKEN"
static let refreshToken = "YOUR_REFRESH_TOKEN"
static let clientId = "YOUR_CLIENT_ID"
static let clientSecret = "YOUR_CLIENT_SECRET"
static let deviceId = "YOUR_DEVICE_ID"
}
This app was developed only for learning purposes and is not an official Netatmo app. It was created as a personal project to explore the use of the Netatmo API and macOS development.
Getting started with Earthquakes, official Apple tutorial.
Netatmo API
We welcome contributions to this project. If you would like to contribute, please fork the repository and submit a pull request.
This app is released under the MIT License. See LICENSE for details.