@Olexandr11 I asked the same question, they have removed it from the API due to creating heavy load on the servers.
Latest posts made by TheStigh
-
RE: Temperature label near cities are missing
-
RE: WindyAPI: Start weatherforecast by default on page load?
I actually solved it a different way; by calling
document.getElementById('playpause').click()
Thanks anyway for the quick replies :)
-
RE: WindyAPI: Start weatherforecast by default on page load?
Did this:
windyInit (options, windyAPI => { const {store,map,overlays} = windyAPI; var overlay = store.get('overlay'); var windMetric = overlays.wind.metric; store.set('overlay',this.config.showLayer); store.set('animation',true); overlays.wind.setMetric(this.config.windyMetric); map.setZoom(this.config.zoomLevel); });
I tried, but got:
lib.js:6 Evented Failed to call animation TypeError: Cannot read property 'end' of undefined
at w (lib.js:82)
at lib.js:82
at Object. (lib.js:82)
at Object.emit (lib.js:16)
at h (lib.js:47)
at Object.i [as set] (lib.js:47)
at windyAPI (MMM-WindyV2-dev.js:167)
at m (lib.js:116)
at lib.js:116 -
RE: How to show temperatures in the map using windyAPI.store ?
@marekd Ok, thank you for the feedback :)
-
WindyAPI: Start weatherforecast by default on page load?
Hi,
Is there a parameter I can set to start the forecast by default upon loading the page, rather than clicking the 'play' button? My project will be without a mouse/keyboard, that's the reason I want it to autostart/by timer etc...
-
How to show temperatures in the map using windyAPI.store ?
Hi,
I've successfully built a module for MagicMirror using WindyAPI and the module has some nice feature like voice-control etc.
But when zooming in on the map, I don't see temperature values in the map.
How do I enable this? -
RE: 123
Hi @WXcycles
Awsome work!
Can this by added by CSS as I'm running a web-app version on my MagicMirror?Greetings from Norway!
-
RE: How to update zoom-level at runtime?
Thanks, that worked :)
Can I change overlay (like from 'wind' to 'rain') using [map.] method, rather than usingstore.set('overlay', wind )
?
-
RE: How to update zoom-level at runtime?
@siim said in How to update zoom-level at runtime?:
W.map.setView( center, zoom?, options? )
W.map.setZoom( zoom, options? )
W.map.zoomIn( delta?, options? )
W.map.zoomOut( delta?, options? )https://leafletjs.com/reference-0.7.7.html#map-set-methods
Windy (W.map) uses Leaflet 0.7.7
Hi @siim ,
I'm still a bit noob in development and have used the [store] and windyInit:
const options = { key: 'xxx', zoom: 5, lat: xx.xxx, lon: yy.yyy }, windyInit( options, windyAPI => { const { store } = windyAPI store.set('overlay', wind ) }, });
Can I somehow change zoom level using store.set ?