• 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.

How to detect SBC model?

Scheduled Pinned Locked Moved Development
13 Posts 3 Posters 4.9k 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
    strawberry 3.141 Project Sponsor Module Developer @Guest
    last edited by Aug 28, 2017, 5:28 PM

    @Sean where do you want to detect the device, on a webserver etc.?

    Please create a github issue if you need help, so I can keep track

    ? 1 Reply Last reply Aug 28, 2017, 5:36 PM Reply Quote 0
    • ? Offline
      A Former User @strawberry 3.141
      last edited by A Former User Aug 28, 2017, 5:36 PM Aug 28, 2017, 5:36 PM

      @strawberry-3.141 In module itself.

      S 1 Reply Last reply Aug 28, 2017, 5:38 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @Guest
        last edited by Aug 28, 2017, 5:38 PM

        @Sean can you give a little more details, what are your plans?

        Please create a github issue if you need help, so I can keep track

        ? 2 Replies Last reply Aug 28, 2017, 5:42 PM Reply Quote 0
        • ? Offline
          A Former User @strawberry 3.141
          last edited by Aug 28, 2017, 5:42 PM

          @strawberry-3.141 There is some difference between RPI and ATB. By example, the thermal zone virtual file, default sound configuration, I want to make a module to work conditionally by device. But I don’t know how to detect it programmatically. If my module is running on ATB, do something A, and if running on RPI do something B… etc.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @strawberry 3.141
            last edited by Aug 28, 2017, 5:45 PM

            @strawberry-3.141 Maybe I could check thermal zone file for that purpose. That is only I know. But I believe there is something better… like /proc/hardware/board…

            S 1 Reply Last reply Aug 28, 2017, 5:46 PM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @Guest
              last edited by Aug 28, 2017, 5:46 PM

              @Sean why not make a config option, that would be probably the easiest

              Please create a github issue if you need help, so I can keep track

              ? 1 Reply Last reply Aug 28, 2017, 5:47 PM Reply Quote 0
              • ? Offline
                A Former User @strawberry 3.141
                last edited by Aug 28, 2017, 5:47 PM

                @strawberry-3.141 Maybe. I know that is the easiest way. If I could not find any proper solution, I’ll do it.
                But Just want to know.

                S 1 Reply Last reply Aug 28, 2017, 5:51 PM Reply Quote 0
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer @Guest
                  last edited by Aug 28, 2017, 5:51 PM

                  @Sean If for some reason, after an update, the thermal zone file gets changed and then your detection will fail, but your module isn’t related to the thermal zone fail you want to have a running module. So therefore I would prefer a config option as it doesn’t depend on something else.

                  Please create a github issue if you need help, so I can keep track

                  ? 1 Reply Last reply Aug 28, 2017, 5:53 PM Reply Quote 0
                  • ? Offline
                    A Former User @strawberry 3.141
                    last edited by Aug 28, 2017, 5:53 PM

                    @strawberry-3.141 Okay. thanks for your suggestion.

                    S 1 Reply Last reply Aug 28, 2017, 5:54 PM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @Guest
                      last edited by Aug 28, 2017, 5:54 PM

                      @Sean keep me posted with your work in progress or github

                      Please create a github issue if you need help, so I can keep track

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