Read the statement by Michael Teeuw here.
Displaying JSON results onto my MagicMirror
-
Hi there,
Im recently introduced to the applications of Raspberry Pi .I was amazed by Magic Mirror’s modules and applications, however, im very new to coding so please pardon me for my lack of understanding.
Currently im trying to create a new module for my Magic Mirror, I have obtained a python script that generates a JSON file as an output. My current issue is that Im not too sure how i can display these results onto my MagicMirror as part of my module. I studied some of the default magic mirror and most of them uses XML to process the API calls. I tried researching online about using Js to run a local python script but it seems to be fruitless =/ .
Hence, im seeking a little help from the community of MagicMirror
-
@zichao92 json has the structure of an js object so it’s way easier access the properties and display them, than an xml file
to run a python script you need to create a node_helper e.g. this module uses python shell to run a python script
for more details see the readme https://github.com/MichMich/MagicMirror/tree/master/modules
-
@strawberry-3-141 , thanks for the reply. Will check out the pages that you mentioned!
-
@zichao92 feel free to ask again if you stuck on something