MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. lkthomas
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 17
    • Best 1
    • Controversial 0
    • Groups 0

    lkthomas

    @lkthomas

    1
    Reputation
    370
    Profile views
    17
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    lkthomas Unfollow Follow

    Best posts made by lkthomas

    • RE: how to adjust brightness based on time on RPi3?

      all good! thanks, I missed the dependencies installation section.

      posted in Troubleshooting
      L
      lkthomas

    Latest posts made by lkthomas

    • From JSON to display on MM

      I am very new to building my own module, I have a special bus ETA data which, I want to display it on MM; Here are the specs,

      1. JSON is downloaded from a fixed URL
      2. refresh data every 30 seconds
      3. display module on specific period (e.g in the morning)
      4. data_timestamp need to filter and get the closest time in relative to current time (You will see what I mean from the JSON sample below)

      Question:

      1. which module should I use as an example for JSON iteration?
      2. How could I filter the closest timestamp with current time then display it in minute on MM?

      Remark: Sample code doesn’t always come back with 3 sub-section

      Sample code:
      {
      “type”: “ETA”,
      “version”: “1.1”,
      “generated_timestamp”: “2023-01-12T10:44:01+08:00”,
      “data”: [
      {
      “co”: “NWFB”,
      “route”: “26”,
      “dir”: “O”,
      “seq”: 20,
      “stop”: “002759”,
      “dest_tc”: “勵德邨”,
      “dest_en”: “Lai Tak Tsuen”,
      “eta”: “2023-01-12T10:53:43+08:00”,
      “rmk_tc”: “”,
      “eta_seq”: 1,
      “dest_sc”: “励德邨”,
      “rmk_en”: “”,
      “rmk_sc”: “”,
      “data_timestamp”: “2023-01-12T10:43:03+08:00”
      },
      {
      “co”: “NWFB”,
      “route”: “26”,
      “dir”: “O”,
      “seq”: 20,
      “stop”: “002759”,
      “dest_tc”: “勵德邨”,
      “dest_en”: “Lai Tak Tsuen”,
      “eta”: “2023-01-12T11:08:56+08:00”,
      “rmk_tc”: “”,
      “eta_seq”: 2,
      “dest_sc”: “励德邨”,
      “rmk_en”: “”,
      “rmk_sc”: “”,
      “data_timestamp”: “2023-01-12T10:43:03+08:00”
      },
      {
      “co”: “NWFB”,
      “route”: “26”,
      “dir”: “O”,
      “seq”: 20,
      “stop”: “002759”,
      “dest_tc”: “勵德邨”,
      “dest_en”: “Lai Tak Tsuen”,
      “eta”: “2023-01-12T11:29:05+08:00”,
      “rmk_tc”: “”,
      “eta_seq”: 3,
      “dest_sc”: “励德邨”,
      “rmk_en”: “”,
      “rmk_sc”: “”,
      “data_timestamp”: “2023-01-12T10:43:03+08:00”
      }
      ]
      }

      posted in Development
      L
      lkthomas
    • RE: remove a module forever after a specific date and time

      @fozi I have a countdown to some event that is a one-off in my life, so after that date in a specific year (which cron can’t do a specific year), then that module will need to remove forever.

      posted in Troubleshooting
      L
      lkthomas
    • remove a module forever after a specific date and time

      How could I remove a module forever after a specific date, month, year, time?

      For example: 01-09-2021 01:00:00

      MMM-ModuleScheduler seems unable to deal with “use once” scenario

      posted in Troubleshooting
      L
      lkthomas
    • RE: Sweeping second hand on the clock?

      I didn’t ask for second hand to change color, I am actually asking if the second hand could “Sweep” and not tick in 1 second interval

      posted in General Discussion
      L
      lkthomas
    • Sweeping second hand on the clock?

      Is that possible to have a sweeping second hand like a mechanical watch on the built-in clock dial?

      posted in General Discussion
      L
      lkthomas
    • MMM-cryptocurrency ETHBTC price?

      is that possible to display ETHBTC with MMM-cryptocurrency?
      Link: https://github.com/matteodanelli/MMM-cryptocurrency

      posted in Troubleshooting
      L
      lkthomas
    • RE: shade don't align with clock

      .clock .bright {
      font-size: 120px;
      padding-bottom: 20px;
      }

      fixed!

      posted in Custom CSS
      L
      lkthomas
    • shade don't align with clock

      0_1557328664068_abc.jpg

       body {
          margin: 0px;
          position: absolute;
          height: 100%;
          width: 100%;
          background-color: #cccccc;
       }
      
      .clock .bright {
      font-size: 120px;
      }
      
      .clock .date {
      font-size: 55px;
      padding-bottom: 30px;
      padding-top: 5px;
      }
      
      
      .wi.dimmed.wi-sunset {
      color: orange;
      }
      .wi.dimmed.wi-sunrise {
      color: yellow;
      }
      
      
      .module {
              background-color:rgba(0,0,0,0.6);
              zoom: 185%;
      }
      
      

      As you could see “11:13” leg seems not covered by shade; Only top bar module having this issue, everything else is fine, how could I fix it?

      posted in Custom CSS
      L
      lkthomas
    • RE: how to adjust brightness based on time on RPi3?

      all good! thanks, I missed the dependencies installation section.

      posted in Troubleshooting
      L
      lkthomas
    • RE: how to adjust brightness based on time on RPi3?

      @ianperrin just tested, dimlevel at 20 and 80 also show black screen

      posted in Troubleshooting
      L
      lkthomas