denverquane / MMM-Teslamate

Magic Mirror Module for the Teslamate utility
MIT License
52 stars 14 forks source link

How to show the software version number? #23

Closed chansters closed 3 years ago

chansters commented 3 years ago

First of all, thanks for building this module, it's working great ! I'm trying to edit your module to show the software version below the odometer reading. I can get it to display most the values from MQTT except for version. It shows up as "0". Would appreciate any guidance to get this to work. Thanks!!

telegram

My modified JS file : https://pastebin.com/zmcHKM34

olexs commented 3 years ago

You need to add the subscription to the /version topic in node_helper.js as well as in the main file. node_helper.js is what runs on the "server" side of MagicMirror and actually fetches data from Teslamate, while the MMM-Teslamate.js file is executed in the browser frontend.

chansters commented 3 years ago

You need to add the subscription to the /version topic in node_helper.js as well as in the main file. node_helper.js is what runs on the "server" side of MagicMirror and actually fetches data from Teslamate, while the MMM-Teslamate.js file is executed in the browser frontend.

Thank you !! That did the trick. Thanks for explaining the role of the node_helper.js file. I'm a week old with MM and I had no idea that was the purpose of this file.