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.

    Ideas Needed

    Scheduled Pinned Locked Moved General Discussion
    17 Posts 5 Posters 3.6k Views 5 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.
    • S Offline
      sdetweil @MilkShake
      last edited by sdetweil

      @MilkShake the actions run locally on the mirror, they are TRIGGERED from the module… not as callbacks I don’t think
      (i haven’t done that myself, but it seemed logical before) the old recipe stuff

      you just create a little script in maybe the new A2D but old assistant had it to to trigger events…

      here is fiddling with the radio on the mirror

      https://github.com/bugsounet/MMM-Assistant2Display/wiki/Radio_help

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • BKeyportB Online
        BKeyport Module Developer
        last edited by BKeyport

        How I do URL calls in python is through urllib.request - import that library then:

        urllib.request.urlopen("http://pi.hole:60001/remote?action=MONITORTOGGLE")
        

        Depends on how far outside you wanna go outside the MM ecosystem.

        edit: reminds me, I gotta re-write that for the new config, pi-hole and the mirror being two different units now.

        The "E" in "Javascript" stands for "Easy"

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          sdetweil @BKeyport
          last edited by

          @BKeyport but u have to use a helper to launch the python code…
          way overhead for a fetch or post

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          BKeyportB 1 Reply Last reply Reply Quote 0
          • BKeyportB Online
            BKeyport Module Developer @sdetweil
            last edited by

            @sdetweil True, if you’re staying in the MM ecosystem - in my case, I couldn’t get the modules I wanted to work the way I wanted, so I wrote up a python script to cover it, and it runs independently of MM

            He wanted a python method, so I gave him options.

            The "E" in "Javascript" stands for "Easy"

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              maybe by using traits (google actions)
              example of recipes there

              this doc can help to make it

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MilkShake
                last edited by

                I went the way of dataplicity.io/wormhole, NGINX, IFTTT and MMM-NotificationTrigger. That way I should be able to use a webhook to execute the python script.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MilkShake @Guest
                  last edited by

                  @Bugsounet Thanks Bugs! I will look into that when I have time for it.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  • 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