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

    UiFlow 2.0 discuss(how-to, bug, feature request or sometings)

    UiFlow 2.0
    69
    178
    172.6k
    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.
    • lbuqueL
      lbuque @dsrc12
      last edited by

      @dsrc12 RX: G18/TX: G17

      1 Reply Last reply Reply Quote 0
      • J
        jdbaluch
        last edited by jdbaluch

        Is something wrong with UIFlow2 website right now? I cannot get my CoreS3 or my Atom S3 to utilize any of my sensors. Theyr'e all saying "Unit not defined" in the console as soon as I add any of them to a project.

        J 1 Reply Last reply Reply Quote 0
        • J
          jazztunes @jdbaluch
          last edited by

          @jdbaluch I had the same problem with uiFlow2 + AtomS3. Check the code window and see if any imports are missing, particularly the unit import. Should be something like:

          import os, sys, io
          import M5
          from M5 import *
          from hardware import *
          from unit import *
          

          On mine, the unit import was missing. I tried

          • Switch to various different units
          • Fresh the website completely (F5, clear cookies, close tabs etc.).
          • Re-flash the unit with m5burner

          Somewhere in there, the unit import line decided to show up and then everything started working. ¯\(ツ)/¯

          1 Reply Last reply Reply Quote 0
          • S
            sgu @IAMLIUBO
            last edited by

            @iamliubo

            6 Months later. Just flashed the Core S3 with the newest UiFlow 2.0 Alpha and still the modules are not integrated!
            Do you really want to sell the Core S3 ? without complete software support, the use cases for the Core S3 is very, very limited.

            1 Reply Last reply Reply Quote 2
            • C
              codeblue
              last edited by

              is the UIFlow2.0 desktop edition available now?

              1 Reply Last reply Reply Quote 1
              • L
                li0than
                last edited by

                wlan config misses reading of essid. Could you add this?

                Also would be very cool to have a way, where Block editor keeps working when only minor changes were made to the code.
                (when adjusting one variable cuz its not yet available, it would be awesome, if I could still keep using the block editor)

                0_1705239720587_c717e181-910d-4ccc-a920-5d8bb6b859a2-image.png

                1 Reply Last reply Reply Quote 0
                • felmueF
                  felmue
                  last edited by

                  Hello @li0than

                  you could use the Execute mpy code block for stuff that is not (yet) available.

                  Thanks
                  Felix

                  GPIO translation table M5Stack / M5Core2
                  Information about various M5Stack products.
                  Code examples

                  1 Reply Last reply Reply Quote 0
                  • K
                    kapipema @IAMLIUBO
                    last edited by

                    @iamliubo , When using a m5 dial it would be really nice to center text in a label in an easy fashion.

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomspost
                      last edited by

                      I am building a distributed smart control system for my sail boat using 6 m5Dials one in each cabin. They show all important boat data such as depth and wind speed and heading from an MQTT server running on a raspberry pi the also show alerts and allow control of local lighting.

                      I am having a lot of problems with UI Flow 2.

                      All I have working so far is lighting with dimming using the dial and night lighting (RED lights) working.

                      I need to get RFID working to login crew/family members so the m5Dials alerts them to their watches - I get an error when I put in any RFID blocks except "RFI init built in" I have an "if" in my main loop that calls a function if a new card or RFID phone is detected the function currently only reads the card ID converts it to a string and shows it on a label

                      My other problem is connecting into the MTTQ server this currently always hangs the device and I need to power cycle it to get any responses

                      I have MQTT code working on my m5 coreInk in uiFlow 1 which I am using for remote anchor control

                      I have plans to open source the project and I think it will be very useful for other sailers

                      I also want to do some YouTube system build videos but they will only currently show it not working!

                      I think I am expecting too much from alpha software.

                      Any suggestions or advice are welcome.

                      robskiR 1 Reply Last reply Reply Quote 0
                      • D
                        daojah
                        last edited by

                        Hello,

                        I've installed UiIflow via m5 burner and after that my card computer don't starting at all, only red light on esp32. And I can't install any other soft

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

                          Uiflow is not for the S3 generation of which the card computer is based on, you need UIFLOW2 (please read the information printed in M5Burner first)

                          UIFLow2 does work on the Card computer but the current version is only for the StampS3, the card computer isn't yet configured.

                          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
                          • robskiR
                            robski @tomspost
                            last edited by

                            @tomspost said in UiFlow 2.0 discuss(how-to, bug, feature request or sometings):

                            I am building a distributed smart control system for my sail boat using 6 m5Dials one in each cabin. They show all important boat data such as depth and wind speed and heading from an MQTT server running on a raspberry pi the also show alerts and allow control of local lighting.

                            I am having a lot of problems with UI Flow 2.

                            All I have working so far is lighting with dimming using the dial and night lighting (RED lights) working.

                            I need to get RFID working to login crew/family members so the m5Dials alerts them to their watches - I get an error when I put in any RFID blocks except "RFI init built in" I have an "if" in my main loop that calls a function if a new card or RFID phone is detected the function currently only reads the card ID converts it to a string and shows it on a label

                            My other problem is connecting into the MTTQ server this currently always hangs the device and I need to power cycle it to get any responses

                            I have MQTT code working on my m5 coreInk in uiFlow 1 which I am using for remote anchor control

                            I have plans to open source the project and I think it will be very useful for other sailers

                            I also want to do some YouTube system build videos but they will only currently show it not working!

                            I think I am expecting too much from alpha software.

                            Any suggestions or advice are welcome.

                            re:MQTT for me so far only mqtt config as "execute code" is working while using Uiflow2 - built in mqtt blocks didn't work - im connecting to HiveMQTT btw,

                            re:rfid when I had test M5Dial project installed then i could detect/read any of my rfid tokens but when I've tried to use built in blocks for rfid in Uiflow2 had no success really - I need to try harder

                            M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

                            1 Reply Last reply Reply Quote 0
                            • felmueF
                              felmue
                              last edited by felmue

                              Hello @m5stack

                              UIFlow2.0.1 - M5 Cardputer : when I add Init keyboard and When keyboard was pressed blocks I get the following Python code:

                              def kb_pressed_event(kb):
                                global kb
                                pass
                              
                              def setup():
                                global kb
                                kb.set_callback(kb_pressed_event)
                              
                                M5.begin()
                                kb = MatrixKeyboard()
                              

                              Unfortunately kb.set_callback(kb_pressed_event) is placed before kb = MatrixKeyboard(). E.g. before kb is defined. Resulting in AttributeError: NoneType object has not attribute set_callback.

                              Also in the callback function global kb is added which results in the following SyntaxError: identifier redefined as global.

                              BTW: running code:

                              def kb_pressed_event(kb):
                                pass
                              
                              def setup():
                                global kb
                                M5.begin()
                                kb = MatrixKeyboard()
                                kb.set_callback(kb_pressed_event)
                              

                              Please fix.

                              Thanks
                              Felix

                              GPIO translation table M5Stack / M5Core2
                              Information about various M5Stack products.
                              Code examples

                              1 Reply Last reply Reply Quote 1
                              • felmueF
                                felmue
                                last edited by

                                Hello @m5stack

                                thank you for fixing the first part.

                                However the second part is still wrong. Below code created by the When keyboard was pressed block:

                                def kb_pressed_event(kb):
                                  global kb
                                  pass
                                

                                still returns a SyntaxError: identifier redefined as global.

                                Please fix this too.

                                Thanks
                                Felix

                                GPIO translation table M5Stack / M5Core2
                                Information about various M5Stack products.
                                Code examples

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Waittherack
                                  last edited by

                                  It seems like I can't download my programs anymore, neither in Wifi nor with the USB-C cable. I have a M5Stack Core2. This is what i get both ways : 0_1707839419278_644aa359-ea71-4ef4-a3e3-4ea80718fc6f-image.png 0_1707839440797_7063265d-eb2f-4c59-9f4d-f0b3d6ef1009-image.png

                                  W 1 Reply Last reply Reply Quote 0
                                  • Q
                                    Quakernate
                                    last edited by

                                    Hi All.

                                    New here and quite confused. Got the stickCplus2. Love the device, but writing/blocking some code is a pain in the a.. atm.

                                    Can't seem to recreate the experiment in the docs (https://docs.m5stack.com/en/quick_start/m5stickc_plus2/uiflow); turning on (one of) the LED(s)? In the docs it's blocked with the PIN blocks. Why are those not in the 'built-in hardware' section? The LED's are built-in, right? But also the exact same compilation as in the example does not turn on a LED when run.

                                    Then in the built-in section you can choose RGB, which definetely is not built-in?

                                    Some schematic overview of what button/led is which in the code language would be nice. (Just a picture of the device having the code-name next to where it would be placed in the device. Understand what I'm trying to say?

                                    Is UIflow1 still more stable? Must say, UI2 looks very good. But that's about it for now it seems.

                                    Sorry for such a long comment already. Got a lot more questions, but I will come back with those later. Still a noob in the esp32 anyway, so I'll keep trying to find out stuff by myself as well.

                                    Cheers!

                                    1 Reply Last reply Reply Quote 0
                                    • Q
                                      Quakernate
                                      last edited by

                                      Hi, Quakernate again.

                                      Seems like there just isn't a LED available in UIFlow2.0. (thought it would maybe be named different) Was toying around in the UIFlow1 and there I was able to turn on the LED nd stuff way easier. (especially since there is a LED block at all)

                                      Will code some in UIF1.13 until UIF2.0 is suitable (enough) for play.

                                      If usefull I'm willing to keep fooling around in 2.0 as well just to list more bugs.

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

                                        There is an RGB LED available in UIFLow but you need to use the Micropython code to call it.

                                        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!

                                        teastainT 1 Reply Last reply Reply Quote 0
                                        • B
                                          BritOnTour
                                          last edited by

                                          Is there any option to import or convert a UiFlow 1 Blockly project to UiFlow 2?

                                          1 Reply Last reply Reply Quote 4
                                          • teastainT
                                            teastain @ajb2k3
                                            last edited by

                                            @ajb2k3 I wonder what the difference is between UIFlow ver 1 and ver 2?
                                            Can sketches be ported over from ver to ver 2, but not vice/versa?

                                            Cheers, Terry!

                                            100% M5Stack addict with several drawers full of product!

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