Read the statement by Michael Teeuw here.
How to run python module (+change size/C to F) newbie
-
Hi all, If this is posted in the wrong place, sorry.
This is my first time building a smart mirror, and quite honestly, my first pi project in full too. Ive managed to change the layout for how I want it to be, however I have one problem that I am unsure how to get around.
I want my local buses to be displayed 2/3 down the mirror, however the script is python.
I think I have put the folder in the correct place. /home/pi/MagicMirror/modules/bus however everything else is in /home/pi/MagicMirror/modules/default so not sure if I should place it in /default so it’s /home/pi/MagicMirror/modules/default/bus or leave it outside of the default folder.
I am not sure from this point how to get this to work.
I also wanted to know how to increase the font size. I am using a large mirror so larger text would be good. And I want to know if it is possible to have both metric and imperial for temp in the weather module. I have tried putting units: “metric, imperial”, but that does not seem to work.
Thanks all!
-
@mclaren said in How to run python module (+change size/C to F) newbie:
I want my local buses to be displayed 2/3 down the mirror, however the script is python.
I think I have put the folder in the correct place. /home/pi/MagicMirror/modules/bus however everything else is in /home/pi/MagicMirror/modules/default so not sure if I should place it in /default so it’s /home/pi/MagicMirror/modules/default/bus or leave it outside of the default folder.Hi mclaren,
this is a bit difficult to understand. First of all, the directory is the right one. The default directory is used for the default modules that are included in the original MM install. All the additional modules are put into /modules
But just putting a python script there is of course not enough (if I got that right from your post). You need 1) a folder containing specific files and 2) the “call-off” of your module, which is usually written in JS, in the config file.If you don’t know what I mean, it may be because I’m not native english or because you need to understand the infrastructure of the mirror. In the latter case you should read a bit more about how the MM works and what is needed for a module to work.
FYI, I think there are very good modules around you can use for your local buses. I dont remember the names at the moment.