@sdetweil it’s indeed pointing to my module. Here’s the output:
and the huge LOG ends with the last 2 arguments: null & 2
Read the statement by Michael Teeuw here.
Posts made by SopaMaruchan
-
RE: Electricity Bill Module Development
-
RE: Electricity Bill Module Development
@SopaMaruchan I’m realizing that my my receiveSocketNotification is not being triggered on my MM-Module file:
I logged some text after calling receiveSocketNotification function but there’s no output on console.node_helper:
-
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?
-
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💝 -
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:
Here the code:
-
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:
I did it this way on my node_helper file (Highlighted the lines I added):
Did I missed anything? -
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:
How can I send that data from node_helper to my MMM-CFE and place it on a meter element?
MMM-CFE:
node_helper:
Thought of socketNotification but I couldn’t figure it out, any ideas?