Graphrt

Open-Meteo Weather

Cari tempat untuk koordinat dan prakiraan cuaca dengan nilai saat ini, per jam dan harian, plugin deklaratif rujukan

Stabil v0.1.0 Node.js Wasm 3 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk API cuaca Open-Meteo yang gratis. Plugin ini mencari tempat berdasarkan nama dan mengembalikan prakiraan cuaca (kondisi saat ini, nilai per jam dan harian sampai 16 hari). Tidak perlu akun atau API key. Setiap operasi adalah node workflow dan tool agent.

Yang bisa dilakukan

  • search_locations: place name or postal code to coordinates, time zone, country, admin regions and population (filter by country, choose the language)
  • get_forecast: forecast for a coordinate. By default it returns current temperature, humidity, feels-like temperature, precipitation, weather code and wind, plus a daily summary (weather code, min/max temperature, precipitation sum and probability) in the location's own time zone. Any Open-Meteo variable can be requested through current, hourly and daily.
  • api_request: any other endpoint on api.open-meteo.com, e.g. /v1/forecast with minutely_15 (GET only when called by an agent)

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Weather forecast open-meteo.get_forecast
  • Search places open-meteo.search_locations
  • Open-Meteo forecast API request open-meteo.api_request

Pengaturan

Plugin ini tidak butuh pengaturan.

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Open-Meteo Weather.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install open-meteo
workflow.yaml
- id: place
  type: open-meteo.search_locations
  name: "{{#start.city#}}"
  count: 1
- id: forecast
  type: open-meteo.get_forecast
  latitude: "{{#place.data.0.latitude#}}"
  longitude: "{{#place.data.0.longitude#}}"
  hourly: [temperature_2m, precipitation_probability]
  forecast_days: 2
  wind_speed_unit: ms
Plugin di docs