Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    1. Home
    2. TheStigh
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    TheStigh

    @TheStigh

    0
    Reputation
    28
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    TheStigh Unfollow Follow

    Latest posts made by TheStigh

    • RE: Temperature label near cities are missing

      @Olexandr11 I asked the same question, they have removed it from the API due to creating heavy load on the servers.

      posted in Windy API v4
      T
      TheStigh
    • RE: WindyAPI: Start weatherforecast by default on page load?

      @marekd

      I actually solved it a different way; by calling

      document.getElementById('playpause').click()
      

      Thanks anyway for the quick replies :)

      posted in Windy API v4
      T
      TheStigh
    • RE: WindyAPI: Start weatherforecast by default on page load?

      @marekd

      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

      posted in Windy API v4
      T
      TheStigh
    • RE: How to show temperatures in the map using windyAPI.store ?

      @marekd Ok, thank you for the feedback :)

      posted in Windy API v4
      T
      TheStigh
    • 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...

      posted in Windy API v4
      T
      TheStigh
    • RE: How to show temperatures in the map using windyAPI.store ?

      @marekd Correct :)

      posted in Windy API v4
      T
      TheStigh
    • 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?

      posted in Windy API v4
      T
      TheStigh
    • 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!

      posted in General Discussion
      T
      TheStigh
    • RE: How to update zoom-level at runtime?

      @siim

      Thanks, that worked :)
      Can I change overlay (like from 'wind' to 'rain') using [map.] method, rather than using

      store.set('overlay', wind )
      

      ?

      posted in General Discussion
      T
      TheStigh
    • 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 ?

      posted in General Discussion
      T
      TheStigh