• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Python in to the magic mirror.

Scheduled Pinned Locked Moved Solved Troubleshooting
43 Posts 4 Posters 20.3k Views 4 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.
  • ? Offline
    A Former User @paulvanderheijden90
    last edited by Jan 30, 2019, 9:33 AM

    @paulvanderheijden90
    I have no idea about Python. I think you’d better reboot once or twice per daily to maintain RPI to be stable. You can do it with cron automatically.
    The better approach would be implementing your job as native nodeJS MagicMirror module instead external python script.

    P 1 Reply Last reply Jan 31, 2019, 1:41 PM Reply Quote 0
    • S Offline
      sdetweil @paulvanderheijden90
      last edited by Jan 30, 2019, 1:23 PM

      @paulvanderheijden90 can u put your project on github and tell me where it is… I will look at it later today (us time)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply Jan 31, 2019, 1:34 PM Reply Quote 0
      • P Offline
        paulvanderheijden90 @sdetweil
        last edited by Jan 31, 2019, 1:34 PM

        @sdetweil
        Hallo Thank you for you’re Replay

        I managed to upload the project on git hub ( new experience for me )
        I uploaded the magic mirror Module ( P2000) I made and the node helper.

        And I added the Python project.

        The python project works fine on it self. But wenn I call ( spawn ) the python. The magic mirror application stops and freezes.

        I think the flush/write fills the buffer and wenn it is it full the application is stoped.

        https://github.com/paulvanderheijden90/MMM-P2000-python-connect

        Here is the link

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by Jan 31, 2019, 1:36 PM

          sorry, the is no PUBLIC repo there

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply Jan 31, 2019, 1:44 PM Reply Quote 0
          • P Offline
            paulvanderheijden90 @Guest
            last edited by Jan 31, 2019, 1:41 PM

            @sean
            Hello Sean,
            The problem is not the python project. But I think the buffer is filling up ore something.

            At this point all the massages are displayed on the mirror and after 15 min the mirror is freeze.

            So im looking in to it.

            1 Reply Last reply Reply Quote 0
            • P Offline
              paulvanderheijden90 @sdetweil
              last edited by Jan 31, 2019, 1:44 PM

              @sdetweil fixed sorry

              S 2 Replies Last reply Jan 31, 2019, 1:50 PM Reply Quote 0
              • S Offline
                sdetweil @paulvanderheijden90
                last edited by sdetweil Jan 31, 2019, 1:52 PM Jan 31, 2019, 1:50 PM

                @paulvanderheijden90 i don’t see the python module

                you can add it to the directory and repo temporarily, then remove it later

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @paulvanderheijden90
                  last edited by Jan 31, 2019, 2:45 PM

                  @paulvanderheijden90 so far I don’t see the same crash error…

                  I did have to make some minor changes…

                  Module name to match the git repo name
                  path to a python script
                  and change the display handling…
                  rule is ONLY content change location is getDom()…
                  other routines should store data and call updateDom(0 to signal that there ARE changes to display

                  I’m gonna let it run for a while…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 1 Reply Last reply Jan 31, 2019, 2:54 PM Reply Quote 0
                  • P Offline
                    paulvanderheijden90 @sdetweil
                    last edited by Jan 31, 2019, 2:54 PM

                    @sdetweil
                    hello ! Thank you for your help so far.

                    The python project is running fine on it selfs.

                    But wenn I use it with the magic mirror the buffer of the magic mirror is filling. And freezes.

                    the python project is made in combination with a Antenna.
                    Setup looks like https://nl.oneguyoneblog.com/2016/08/09/p2000-ontvangen-decoderen-raspberry-pi/#comment-488

                    so you’ll need to have data from the Multimom to get different information to send to the mirror

                    S 1 Reply Last reply Jan 31, 2019, 2:57 PM Reply Quote 0
                    • S Offline
                      sdetweil @paulvanderheijden90
                      last edited by Jan 31, 2019, 2:57 PM

                      @paulvanderheijden90 I wrote a little hello world python script to send data. All that is working as expected so far

                      How big is the data buffer your python script sends?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      P 1 Reply Last reply Jan 31, 2019, 2:58 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        31/43
                        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