MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to run python module (+change size/C to F) newbie

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mclaren
      last edited by

      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!

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @mclaren
        last edited by lavolp3

        @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.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy