{
  "id": "halo.sample.weather",
  "name": "Weather",
  "version": "1.0.0",
  "author": "Halo",
  "icon": "cloud.sun.fill",
  "summary": "Current conditions for your location.",
  "refreshInterval": 900,
  "permissions": ["network"],
  "code": "function render(ctx){var loc=JSON.parse(JSON.parse(halo.httpSync(JSON.stringify({url:'https://ipapi.co/json/'})).body));var w=JSON.parse(JSON.parse(halo.httpSync(JSON.stringify({url:'https://api.open-meteo.com/v1/forecast?latitude='+loc.latitude+'&longitude='+loc.longitude+'&current=temperature_2m,wind_speed_10m'})).body));var t=Math.round(w.current.temperature_2m);return{title:'Weather',subtitle:loc.city+', '+loc.region_code,items:[{id:'now',text:t+'°C',subtitle:'Wind '+Math.round(w.current.wind_speed_10m)+' km/h'}]};}"
}
