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.

    Just installed magic mirror, now how do I change some things?

    Scheduled Pinned Locked Moved Troubleshooting
    28 Posts 12 Posters 44.1k Views 11 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.
    • H Offline
      hellboyhum @Mykle1
      last edited by

      @Mykle1 I’m so sorry, i don’t know why I can’t past my code here :/
      class News(Frame):
      def init(self, parent, *args, **kwargs):
      Frame.init(self, parent, *args, **kwargs)
      self.config(bg=ā€˜black’)
      self.title = ā€˜Novosti’ # ā€˜News’ is more internationally generic
      self.newsLbl = Label(self, text=self.title, font=(ā€˜Helvetica’, medium_text_size), fg=ā€œwhiteā€, bg=ā€œblackā€)
      self.newsLbl.pack(side=TOP, anchor=W)
      self.headlinesContainer = Frame(self, bg=ā€œblackā€)
      self.headlinesContainer.pack(side=TOP)
      self.get_headlines()

      def get_headlines(self):
          try:
              # remove all children
              for widget in self.headlinesContainer.winfo_children():
                  widget.destroy()
              if news_country_code == None:
                  headlines_url = "http://www.hrt.hr/?id=316&type=100&rss=vijesti"
              else:
                  headlines_url = "http://www.hrt.hr/?id=316&type=100&rss=vijesti" % news_country_code
      
              feed = feedparser.parse(headlines_url)
      
              for post in feed.entries[0:5]:
                  headline = NewsHeadline(self.headlinesContainer, post.title)
                  headline.pack(side=TOP, anchor=W)
          except Exception as e:
              traceback.print_exc()
              print "Error: %s. Cannot get news." % e
      
          self.after(600000, self.get_headlines)
      
      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @hellboyhum
        last edited by

        @hellboyhum

        This forum is for MagicMirror users.

        You’re using smartmirror software.

        Create a working config
        How to add modules

        H 1 Reply Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer
          last edited by

          Looks like Evan Cohen’s magic mirror… that’s a different forum my friend…

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            hellboyhum @Mykle1
            last edited by

            @Mykle1 Oh dammit…I’m so sorry for bothering you. I will install this magic mirror then :D I’m so stupid šŸ˜’šŸ”«

            cowboysdudeC Mykle1M 2 Replies Last reply Reply Quote 0
            • H Offline
              hellboyhum @cowboysdude
              last edited by

              @cowboysdude I see it now šŸ˜‚ I will install this magic mirror then :) tkanks to you both for helping me :)

              1 Reply Last reply Reply Quote 0
              • cowboysdudeC Offline
                cowboysdude Module Developer @hellboyhum
                last edited by

                @hellboyhum No not stupid…easy mistake to make… we won’t shoot you here LOL

                If put MagicMirror in and have questions feel free to ask

                :)

                H 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @hellboyhum
                  last edited by

                  @hellboyhum said in Just installed magic mirror, now how do I change some things?:

                  I’m so stupid šŸ˜’šŸ”«

                  In that case, stay away from smartmirror. :-)

                  Create a working config
                  How to add modules

                  H 1 Reply Last reply Reply Quote 1
                  • H Offline
                    hellboyhum @cowboysdude
                    last edited by

                    @cowboysdude Oh, you are so nice here šŸ˜‚ I will :) thanks! 😳

                    Mykle1M 1 Reply Last reply Reply Quote 1
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @hellboyhum
                      last edited by

                      @hellboyhum said in Just installed magic mirror, now how do I change some things?:

                      @cowboysdude Oh, you are so nice here šŸ˜‚ I will :) thanks! 😳

                      Yeah, @cowboysdude will be happy to help you with any problems you might have. :-)

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • H Offline
                        hellboyhum @Mykle1
                        last edited by

                        @Mykle1 hahaha I will, thanks for tip šŸ˜‚šŸ˜‚šŸ˜‚

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