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.

    No Web UI with MMM-FastNotes

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 3 Posters 1.4k Views 3 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 @rvnbrg
      last edited by sdetweil

      @rvnbrg did you chnage the MM configuration to allow outside systems to access MM?

      in config.js

      address:"0.0.0.0",  // this means accept incomming connections on any network
      ipWhitelist:[],   // do not filter the source system requests
      

      by default, MM is built as a mirror on the wall, with NO access from outside

      address:"localhost",  // this means ONLY apps INSIDE the same system can connect
      ipWhitelist:["127.0.0.1"...].
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rvnbrg @sdetweil
        last edited by

        @sdetweil Yes, current setup in config is

        "address": "0.0.0.0",
        "ipWhitelist": [],
        "locale": "en-US",
        "logLevel": [
        	"INFO",
        	"LOG",
        	"WARN",
        	"ERROR"
        ],
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @rvnbrg
          last edited by

          @rvnbrg the module config has this

             host: "192.168.1.1",  // address of raspberry pi in local network, need for access to WEB UI
              port: 5000,           // port on host where UI will be accessible via web browser
          

          I don’t know that that means…

          what url are you using?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 2 Replies Last reply Reply Quote 0
          • R Offline
            rvnbrg @sdetweil
            last edited by

            @sdetweil I have

            host: “192.168.78.30”, // address of raspberry pi in local network, need for access to WEB UI
            port: 5000, // port on host where UI will be accessible via web browser

            Where “192.168.178.30” is the ip adress of my raspberry

            1 Reply Last reply Reply Quote 0
            • R Offline
              rvnbrg @sdetweil
              last edited by

              @sdetweil

              So I try to access the Web UI with: 192.168.178.30:5000

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

                @rvnbrg said in No Web UI with MMM-FastNotes:

                192.168.178.30

                that is an odd home network address…

                if you do
                ip addr

                from a terminal window, is that the address you get?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rvnbrg @sdetweil
                  last edited by

                  @sdetweil This is what I get

                  xavier@raspberrypi:~ $ ip addr
                  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
                  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                  inet 127.0.0.1/8 scope host lo
                  valid_lft forever preferred_lft forever
                  inet6 ::1/128 scope host noprefixroute
                  valid_lft forever preferred_lft forever
                  2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                  link/ether b8:27:eb:69:7b:37 brd ff:ff:ff:ff:ff:ff
                  inet 192.168.178.30/24 brd 192.168.178.255 scope global noprefixroute wlan0
                  valid_lft forever preferred_lft forever
                  inet6 fd48:42be:e531:6cb0:2d2a:6ab4:13e2:1d5a/64 scope global dynamic noprefixroute
                  valid_lft 1624sec preferred_lft 1624sec
                  inet6 fe80::56dd:2b5f:e33f:829e/64 scope link noprefixroute
                  valid_lft forever preferred_lft forever

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

                    @rvnbrg said in No Web UI with MMM-FastNotes:

                    192.168.178.30

                    ok, so you should be able to connect to MM using the port from config.js

                    http://192.168.178.30:8080

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      rvnbrg @sdetweil
                      last edited by

                      @sdetweil Yes that works to see the MM on my desktop web browser.
                      Only the FastNotes WebUI does not load

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

                        @rvnbrg ok, looking at the code, it looks like there is a python script that provides that UI

                        so, in the module folder do

                        python3 FastNotes.py --host 192.168.178.30 --port 5000 --debug

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rvnbrg @sdetweil
                          last edited by

                          @sdetweil That gives me this:

                          xavier@raspberrypi:~/MagicMirror/modules/MMM-FastNotes $ python3 FastNotes.py --host 192.168.178.30 --port 5000 --debug
                          Traceback (most recent call last):
                          File “/home/xavier/MagicMirror/modules/MMM-FastNotes/FastNotes.py”, line 2, in
                          from backend.fast_notes import start
                          File “/home/xavier/MagicMirror/modules/MMM-FastNotes/backend/fast_notes.py”, line 1, in
                          import flask
                          File “/usr/local/lib/python3.11/dist-packages/flask/init.py”, line 14, in
                          from jinja2 import escape
                          ImportError: cannot import name ‘escape’ from ‘jinja2’ (/usr/lib/python3/dist-packages/jinja2/init.py)

                          S mumblebajM 2 Replies Last reply Reply Quote 0
                          • S Offline
                            sdetweil @rvnbrg
                            last edited by

                            @rvnbrg said in No Web UI with MMM-FastNotes:

                            ImportError: cannot import name ‘escape’ from ‘jinja2’ (/usr/lib/python3/dist-packages/jinja2/init.py)

                            that explains the error

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              rvnbrg @sdetweil
                              last edited by

                              @sdetweil how can I resolve that?

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

                                @rvnbrg that I don’t know

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rvnbrg @sdetweil
                                  last edited by

                                  @sdetweil Thank you for your help so far

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

                                    @rvnbrg i would ask the author

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      rvnbrg @sdetweil
                                      last edited by

                                      @sdetweil i did so but no response yet

                                      1 Reply Last reply Reply Quote 0
                                      • mumblebajM Offline
                                        mumblebaj Module Developer @rvnbrg
                                        last edited by

                                        @rvnbrg Jinja is a dependency of Flask and Flask V1.X.X uses the escape module from Jinja, however recently support for the escape module was dropped in newer versions of Jinja

                                        To fix this issue, simply update to the newer version of Flask V2.X.X in your requirements.txt where Flask no longer uses the escape module from Jinja.

                                        I see there is a requirements.txt where the version of Flask is specified. Maybe updating that to 2.1.1, which is the recommended version that no longer has a dependency on escape would resolve this.

                                        This is all just guessing. Was trying to figure out how this module hangs together. 🫣

                                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                        Check my blog-post: https://mumblebaj.xyz/
                                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                        R 1 Reply Last reply Reply Quote 1
                                        • R Offline
                                          rvnbrg @mumblebaj
                                          last edited by

                                          @mumblebaj YES! Got it working! Thank you very very much

                                          1 Reply Last reply Reply Quote 2
                                          • S sdetweil has marked this topic as solved on

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 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