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.

    module that displays a certain text from a website, the text on the website is updated daily

    Scheduled Pinned Locked Moved Requests
    36 Posts 6 Posters 10.2k Views 7 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 @Amoniak
      last edited by

      @Amoniak nah, compliments cant do that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        Amoniak
        last edited by Amoniak

        Yes that is what I thought. is there another module?
        and thank you for your help

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

          @Amoniak look thru the 3rd party.list. not up to date by a mile, but maybe

          https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            Amoniak
            last edited by

            I think I’ve found a similar module (MMM-PoemOfTheDay), but I don’t know how to adapt it to my needs, can someone help me?
            Thanks :)

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              ashishtank Module Developer @Amoniak
              last edited by

              @Amoniak MMM-PoemOfTheDay is perfect to adapt for your need. Instead of poem site you need to get data from WatchTower site and parse the html response to extract the text.

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Amoniak @ashishtank
                last edited by

                @ashishtank said in module that displays a certain text from a website, the text on the website is updated daily:

                MMM-PoemOfTheDay is perfect to adapt for your need. Instead of poem site you need to get data from WatchTower site and parse the html response to extract the text.

                wow, thank you very much for your feedback, I’ll try to see if I can do it.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Amoniak
                  last edited by Amoniak

                  @ashishtank ok, I have installed the module, but it only shows me a black screen

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ashishtank Module Developer @Amoniak
                    last edited by

                    @Amoniak any error in dev console or PM2/terminal ?

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Amoniak @ashishtank
                      last edited by

                      @ashishtank i got it now, i will now try to parse the html response to extract the text, any good tips?

                      A E 2 Replies Last reply Reply Quote 0
                      • A Offline
                        ashishtank Module Developer @Amoniak
                        last edited by

                        @Amoniak yes, I checked the response from watch tower in postman and they give data of last 2-3 days or may be from Sunday to this day, so you will need to select the right node. You can use class tabContent as identifier and today’s date for selection of the node. Also check which html parse is good enough, as HTML is very complex to parse you may want to choose right parser which gives speed and is lightweight. i.e. node-html-parser

                        2021-01-20-18-33-58-Clipboard

                        Other thing you can do is once you have parsed text data from watch tower, you can assign it to poem’s format (title, content and name) and it will just work. later on you can change the UI and text property names if you want.

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