🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Image+ problem

    UIFlow
    4
    7
    3.1k
    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.
    • Matej's WorkshopM
      Matej's Workshop
      last edited by Matej's Workshop

      Hello, I have a M5StickC Plus and I'm programming it in UIFlow. The problem is that the M5StickC Plus freezes when trying to retrieve the image. The image format is JPG.
      Here is the code:

      from m5stack import *
      from m5ui import *
      from uiflow import *
      from libs.image_plus import *
      from machine import WDT
      
      
      setScreenColor(0x111111)
      
      
      
      
      
      
      imageplus0 = M5ImagePlus(0, 0, url='*PRIVATE IMAGE SENDING IP*/mjpeg/1', timer=True, interval=500)
      
      @timerSch.event('timer1')
      def ttimer1():
        global wdt
        wdt.feed()
        pass
      
      
      timerSch.run('timer1', 1000, 0x00)
      wdt = WDT(timeout=2000)
      
      R 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        It's not freezing, It's just very slow to retrieve the image. I have test (and written a guide on getting the image from the forum) and my experience it that it is very slow to retrieve images, sometimes taking up to several minutes.
        Also you haven't specified a wifi network to connect to.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • Matej's WorkshopM
          Matej's Workshop
          last edited by

          Ohh ok thank you

          1 Reply Last reply Reply Quote 0
          • R
            RoseCliver @Matej's Workshop
            last edited by

            @matejtech said in Image+ problem:

            I have a M5StickC Plus and I'm programming it in UIFlow. The problem is that the M5StickC Plus freezes when trying to retrieve the image. The image format is JPG.
            Here is the code:
            from m5stack import *
            from m5ui import *
            from uiflow import *
            from libs.image_plus import *
            from machine import WDT

            setScreenColor(0x111111)

            imageplus0 = M5ImagePlus(0, 0, url='PRIVATE IMAGE SENDING IP/mjpeg/1', timer=True, interval=500)

            @timerSch.event('timer1')
            def ttimer1():
            global wdt
            wdt.feed()
            pass

            timerSch.run('timer1', 1000, 0x00)
            wdt = WDT(timeout=2000)

            Experiencing freezing issues on M5StickC Plus when retrieving a JPG image in UIFlow. Code includes WDT implementation. Seeking assistance for troubleshooting and resolution.

            1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3
              last edited by

              Images need to be JPG/BMP and of a specific formatting.

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              S 1 Reply Last reply Reply Quote 0
              • S
                stanislav.drca @ajb2k3
                last edited by

                @ajb2k3 Hey Ajb, could you share a tool, software and setting on how you format the image to display them? I am also having difficulties displaying custom images on my M5Dial. Been thinkering with it for hours but with no luck.

                Thanks!
                <3

                ajb2k3A 1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3 @stanislav.drca
                  last edited by

                  @stanislav-drca I use the image Editor G.I.M.P from gimp.org. as to the image formatting. the setting are on the forum somewhere.

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post