• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. vbloke
  3. Posts
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

Posts

Recent Best Controversial
  • 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
    V
    vbloke
    Oct 28, 2019, 7:25 PM
  • 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
    V
    vbloke
    Oct 28, 2019, 3:36 PM
  • 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
    V
    vbloke
    Oct 28, 2019, 11:57 AM
  • 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
    V
    vbloke
    Oct 28, 2019, 7:41 AM
  • 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
    V
    vbloke
    Oct 27, 2019, 2:23 PM
  • RE: global variables in config.js

    @sdetweil Done!

    posted in Feature Requests
    V
    vbloke
    Oct 27, 2019, 1:17 PM
  • RE: global variables in config.js

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

    posted in Feature Requests
    V
    vbloke
    Oct 27, 2019, 12:48 PM
  • 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
    V
    vbloke
    Oct 27, 2019, 8:31 AM
  • 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
    V
    vbloke
    Oct 26, 2019, 7:54 AM
  • 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
    V
    vbloke
    Oct 25, 2019, 8:58 PM
  • 1
  • 2
  • 1 / 2
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy