Menu

1 / 2

How I Used Open-Meteo's Free Weather API to Build a Privacy-Friendly Firefox Extension

DEV Community·Weather Clock Dash·6 months ago
#sWQ4Yc3F
#api#firefox#tutorial#open#meteo
Reading 0:00
15s threshold

When building Weather & Clock Dashboard — a Firefox new tab extension — one of my core requirements was: no user accounts, no API keys, no data sent to my servers .

This post covers how I achieved that using Open-Meteo, a completely free weather API.

Why Open-Meteo?

Most weather APIs require:

Registration + API key management

Rate limits tied to an account

Potential privacy concerns about who's tracking what

Open-Meteo requires none of that. It's:

100% free (10,000 requests/day without an API key)

No registration needed

Open-source

GDPR-compliant by design

The Approach

The extension uses the browser's built-in Geolocation API to get coordinates, then makes a simple HTTP request to Open-Meteo.

Step 1: Get user location

navigator . geolocation . getCurrentPosition ( ( position ) => { const { latitude , longitude } = position . coords ; fetchWeather ( latitude , longitude ); }, ( error ) => { console .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.