MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. vbloke
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 15
    • Groups 1

    vbloke

    @vbloke

    Module Developer
    4
    Reputation
    385
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    vbloke Unfollow Follow
    Module Developer

    Best posts made by vbloke

    • MMM-Sunrise-Sunset

      I’ve created a module that displays the local sunrise, sunset and solar noon times. maybe it’ll be useful for people.

      alt text

      alt text

      Any offers to make it better are gratefully received!

      [card:prydonian/MMM-Sunrise-Sunset]

      posted in Utilities
      vblokeV
      vbloke
    • RE: MMM-Sunrise-Sunset

      @mrdenmark it appears that the API doesn’t like the Southern Hemisphere…

      http://api.sunrise-sunset.org/json?lat=-44.57&lng=168.50&date=today

      Is that config exactly as it appears in your config file? layout should be all lowercase.

      posted in Utilities
      vblokeV
      vbloke

    Latest posts made by vbloke

    • RE: MMM-Sunrise-Sunset

      @henry2man that’s the one I was using before, but it required a lot of work to get the time in your local time zone as all times were returned as UTC.

      The new API uses your location to format the time automatically.

      posted in Utilities
      vblokeV
      vbloke
    • RE: MMM-Sunrise-Sunset

      @henry2man the API is limited to 1000 calls per day. It doesn’t appear to expire after a day.

      Can you post the config for the module?

      it should look like this:

          {
            module: "MMM-Sunrise-Sunset",
            position: "bottom_bar",
            config: {
      		apiKey: "API_KEY",
      		latitude: "123.123",
      		longitude: "23.456",
      		layout: "inline"
            }
          },
      
      posted in Utilities
      vblokeV
      vbloke
    • RE: MMM-Sunrise-Sunset

      https://github.com/prydonian/MMM-Sunrise-Sunset

      Made a fairly big update using a different API that needs a free key.
      https://ipgeolocation.io/signup.html

      It now gives you moonrise and moonset times and day length.

      posted in Utilities
      vblokeV
      vbloke
    • RE: Tell me how to change the font.

      https://fonts.google.com

      (eg: @import url(‘https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700|Open+Sans:400,700&display=swap’);)

      use the @import method in custom.css and change the font declarations in
      body
      .thin
      .light
      .regular
      .bold
      header

      from (example)
      font-family: “Roboto Condensed”, sans-serif;
      to
      font-family: “Open Sans Condensed”, “Roboto Condensed”, sans-serif;

      posted in Custom CSS
      vblokeV
      vbloke
    • RE: global variables in config.js

      As long as the information can be put in the top level and made available to modules without having to repeat common variables over and over again in individual module configs, I don’t mind how it’s done.

      posted in Feature Requests
      vblokeV
      vbloke
    • RE: global variables in config.js

      @sdetweil Done!

      posted in Feature Requests
      vblokeV
      vbloke
    • RE: global variables in config.js

      @sdetweil Think I did that right. Hope someone can make it work.

      posted in Feature Requests
      vblokeV
      vbloke
    • global variables in config.js

      I’ve noticed a lot of modules want your latitude, longitude, and other info that gets repeated across various configs. It would make sense to have a global section where this can be defined once and then made available to all modules.

      e.g.:

      var config = {
        address: "localhost",
        port: 8080,
        ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
        customCss: "css/custom.css",
        language: "en",
        timeFormat: 24,
        units: "metric",
        latitude: "51.1",
        longitude: "0.1",
        timezone: "Europe/London",
        modules: [
      	  ...
        ]
      };
      
      posted in Feature Requests
      vblokeV
      vbloke
    • RE: MMM-Sunrise-Sunset

      @mrdenmark if you update the module now, it should account for the timezone if you set it in your config. From your latitude/longitude, yours (I think) would be “Pacific/Auckland”.

      Try this:

      {
        module: "MMM-Sunrise-Sunset",
        position: "top_left",
        config: {
      	latitude: "-44.57",
      	longitude: "168.50",
      	timezone: "Pacific/Auckland",
      	layout: "list"
        }
      },
      
      posted in Utilities
      vblokeV
      vbloke
    • RE: MMM-Sunrise-Sunset

      @mrdenmark the API returns all dates in UTC, so I may look at putting a time zone offset option in the config, or if you feel confident doing that yourself, feel free to try.

      posted in Utilities
      vblokeV
      vbloke