Read the statement by Michael Teeuw here.
Creating Module with API Key/Secret
-
@lilpkstud said in Creating Module with API Key/Secret:
JSON.stringify()
correct… u converted the object to a string… don’t need to do that
just pass the object from helper up to module …
then it will use the this.data.name
-
@lilpkstud next to what sdetweil said you should also not save your result into this.data as it is an instance property which already contains data, see https://github.com/MichMich/MagicMirror/tree/master/modules#available-module-instance-properties for reference
-
@strawberry-3-141 should call it api_data maybe!
-
@sdetwell @strawberry-3-141 thanks guys got it to work!
I used JSON.Stringify() to look at the data when I was console.loggining so that was the reason why my object were turning into strings
-
@lilpkstud cool… if need it in strings someplace, need to convert it back object=JSON.parse(string)