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

    SopaMaruchan

    @SopaMaruchan

    0
    Reputation
    3
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    SopaMaruchan Unfollow Follow

    Latest posts made by SopaMaruchan

    • RE: Electricity Bill Module Development

      @sdetweil it’s indeed pointing to my module. Here’s the output: 55021cd9-1c10-46c3-8a9d-5de1e97674a1-image.png
      and the huge LOG ends with the last 2 arguments: null & 2 e2503443-14c0-45ad-9614-37a9392997c0-image.png

      posted in Utilities
      S
      SopaMaruchan
    • RE: Electricity Bill Module Development

      @SopaMaruchan I’m realizing that my my receiveSocketNotification is not being triggered on my MM-Module file:
      f111ce89-0276-4196-a41b-2ad73b016eaa-image.png
      I logged some text after calling receiveSocketNotification function but there’s no output on console.

      node_helper:
      74f933d7-53b1-483c-b0a3-0abfe6827b34-image.png

      posted in Utilities
      S
      SopaMaruchan
    • RE: Electricity Bill Module Development

      Does it help if I tell you that I got everything on my onstart function of the node_helper file?

      posted in Utilities
      S
      SopaMaruchan
    • RE: Electricity Bill Module Development

      hmm, actually it does help. I’ll be testing around and tell you when I get it to work!
      Anyways your help was a huge pilar to keep myself going with this, much thanks brother💝

      posted in Utilities
      S
      SopaMaruchan
    • RE: Electricity Bill Module Development

      @sdetweil Hahahaha true that!
      Kinda fixed it guided by your recommendations but the thing is that I’m still getting the same output: 098fca99-2a82-4ccd-8758-b81dcaedc3b6-image.png
      Here the code:
      80366fb7-a775-46ea-a207-88b196b918cd-image.png

      posted in Utilities
      S
      SopaMaruchan
    • RE: Electricity Bill Module Development

      @sdetweil I named my retreived data as “foo” and then used sendSocketNotification as you previously told me but I got this as output:
      e9ba4fa8-aca0-4167-b503-ec9c105d2bb4-image.png
      I did it this way on my node_helper file (Highlighted the lines I added):
      c59c8d5a-fce8-46b6-8305-9454cad39dbf-image.png
      Did I missed anything?

      posted in Utilities
      S
      SopaMaruchan
    • Electricity Bill Module Development

      Hi there!
      I’m developing a new module for a Magic Mirror to display Electricity Bill data but I’m struggling with something. The thing is that I consume an API which requires Bearer Token as an authentication to retrieve the data. I handle it using a node_helper file, but the thing is that I only get to display the data on the console but not visually on screen: 3001fe30-5cfb-4a4a-923e-f6c58e949e3e-image.png
      How can I send that data from node_helper to my MMM-CFE and place it on a meter element?
      MMM-CFE:
      24a3f6b7-560e-445d-af1a-ed6011281f2a-image.png
      node_helper:
      49c33b4e-73f8-4b3c-ae4f-d6ff6849228f-image.png
      Thought of socketNotification but I couldn’t figure it out, any ideas?

      posted in Utilities
      S
      SopaMaruchan