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.

    MagicMirror and adruino over ethernet

    Scheduled Pinned Locked Moved General Discussion
    26 Posts 3 Posters 8.0k 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.
    • B Offline
      BD0G @Kereknjek
      last edited by

      @Kereknjek So in a nutshell. Yes the Arduino can serve a whole webpage of data , but it will take a long time. If one just sends the data from the Arduino to the Raspberry Pi then the Raspberry Pi can display the webpage faster as its processor and potentially memory is faster.

      1 Reply Last reply Reply Quote 0
      • K Offline
        Kereknjek
        last edited by

        Yes. Plus, if I would want to make any modifications to webpage, first I would have to shutdown arduino and whole solar system, pull sd card out, modify page, plug sd card back in and restart sytem.

        If sd card gets damaged in any way or get slow for some reason (had one like that on my 3D printer), whole system running on that arduino gets slow and unuseable.

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

          @Kereknjek cool. You could make a little change and have it return just data.

          If the path is sensor1, send just sensor1’s data. Etc.

          Pretty easy, just a case stmt… you could make it json data pretty easy too…

          The request could ask for a sensor or block of sensors, and send raw data.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            On my Arduino measuring water flow and water volume. I did those in interrupt and timer routines. And sent data in the main path.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              BD0G @Kereknjek
              last edited by BD0G

              @Kereknjek Sounds like you need to backup the entire SD Card of your Arduino and create an image for safe keeping. If you Download Win32 Disk Imager you can create an image of the entire SD card and write it to a hard drive. Then if catastrophe strikes simply remove the SD card and use Win 32 Disk Imager to write the working image back to the SD card.

              It can be downloaded here Win32DiskImager

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

                @BD0G my 8266 has onboard flash ram. No SD card required.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  BD0G @sdetweil
                  last edited by

                  @sdetweil Was referring to @Kereknjek and recommending he backup the SD card on the Arduino that is working for safe keeping.

                  I have an 8266 as well ! Its dedicated to my smartblinds control that I control via smarthings and a custom 3 D printed enclosure for a servo that mounts in the top rail of the blinds. Works splendidly!

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

                    @BD0G I agree, backup is an important strategy. I found out the other day SD cards have a limited life, determined by number of writes…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Kereknjek @sdetweil
                      last edited by

                      @sdetweil said in MagicMirror and adruino over ethernet:

                      @Kereknjek cool. You could make a little change and have it return just data.

                      If the path is sensor1, send just sensor1’s data. Etc.

                      Pretty easy, just a case stmt… you could make it json data pretty easy too…

                      The request could ask for a sensor or block of sensors, and send raw data.

                      Yes! That is what i’m looking for.
                      But discussion went to arduino side.
                      My problem is that I don’t know how to do it at magic mirror side.

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

                        @Kereknjek ok. More later. Grandson on site!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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