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

    Blynk on M5Stack via uiFlow and block-maker

    PROJECTS
    5
    32
    128.2k
    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.
    • K
      kmo
      last edited by

      Very cool! Can't wait to try it out!

      1 Reply Last reply Reply Quote 0
      • world101W
        world101
        last edited by

        I just noticed the Blynk developers released a new version 0.2.0 of blynk-library-python on git hub. I seems to have some additional advanced features like

        • debug logging
        • custom server
        • changing heartbeat
        • connected/disconnected events
        • generic virtual pin events
        • BlynkTimer

        I have not tried this out yet, but plan to in the next week or so. In case you wanted to try the older version of the library, here is the commit:
        https://github.com/vshymanskyy/blynk-library-python/commit/4cbf641fade72a11e797436a8656ebf28f239801

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

          @world101 I managed to build a private server on Saturday but having auto startup issues.
          I’ve tried the guide but still have to manually start the server

          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!

          world101W 1 Reply Last reply Reply Quote 0
          • world101W
            world101 @ajb2k3
            last edited by

            @ajb2k3 said in Blynk on M5Stack via uiFlow and block-maker:

            @world101 I managed to build a private server on Saturday but having auto startup issues.
            I’ve tried the guide but still have to manually start the server

            What platform did you build the local server on (Linux, RPi, etc)?

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

              @world101 RPI 2B

              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!

              world101W 1 Reply Last reply Reply Quote 0
              • world101W
                world101 @ajb2k3
                last edited by

                @ajb2k3

                Try the following:

                edit the crontab

                pi@raspberrypi:~ $ crontab -e
                no crontab for pi - using an empty one

                Select an editor. To change later, run 'select-editor'.

                1. /bin/ed
                2. /bin/nano <---- easiest
                3. /usr/bin/vim.tiny

                Choose 1-3 [2]: 2
                Go to the end of the file and add the following command. Do not forget to modify the path to match your installation directory.

                @reboot java -jar /home/pi/server-0.23.0.jar -dataFolder /home/pi/Blynk &

                Source: https://diyprojects.io/blynk-how-to-install-a-private-local-server-on-raspberry-pi-3-unlimited-energy-test-wemos-dht22/#.XGvrGqROmEc

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

                  That’s the one I followed and still not auto loading. Will have another go tonight

                  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
                  • K
                    kmo
                    last edited by

                    @world101 Got everything working using UiFlow V1.2!

                    1 Reply Last reply Reply Quote 0
                    • A
                      akshaypatil
                      last edited by akshaypatil

                      Hi! I'm a complete beginner learning to use stickC, I managed to figure out Blynk with Arduino, but now, I'd like to do it with uiflow.
                      Since I have the latest versions of both (blynk.py - 0.2.6 & uiflow - 1.4.5.1), I wanted to know if the procedure is still the same. Also, if there are other reference links/good material to learn about esp32 with python, then do share!
                      I'm an industrial design student trying to make a battery-powered heated lunchbox for my thesis, which I'd like to control with the phone and also show nice graphics using stickC.
                      Any help appreciated!
                      Thank you :)

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        akshaypatil @akshaypatil
                        last edited by akshaypatil

                        @akshaypatil said in Blynk on M5Stack via uiFlow and block-maker:

                        Hi! I'm a complete beginner learning to use stickC, I managed to figure out Blynk with Arduino, but now, I'd like to do it with uiflow.
                        Since I have the latest versions of both (blynk.py - 0.2.6 & uiflow - 1.4.5.1), I wanted to know if the procedure is still the same. Also, if there are other reference links/good material to learn about esp32 with python, then do share!
                        I'm an industrial design student trying to make a battery-powered heated lunchbox for my thesis, which I'd like to control with the phone and also show nice graphics using stickC.
                        Any help appreciated!
                        Thank you :)

                        Alright!
                        I figured how to upload and run the BlynkLib 0.2.0 on uiflow - 1.4.5. :D
                        The device is successfully detected and shown running on the android app.
                        Now, I only need to figure how to control/toggle GPIO pins through uiflow with Blynk. :)

                        Any tips? :P

                        P.S.
                        The push notification is not working. Is this limited to M5Stack only? Or also possible on my device...

                        0_1586982302153_b86f4476-65ee-4135-bce2-b761c18b4e98-image.png

                        world101W 1 Reply Last reply Reply Quote 0
                        • world101W
                          world101 @akshaypatil
                          last edited by

                          @akshaypatil

                          I haven’t worked with Blynk in a while, so I can’t comment on gpio control. If you end up getting something working, please share it.

                          I’ll see if I can find time to test push notifications on the m5stickC.

                          A 2 Replies Last reply Reply Quote 0
                          • A
                            akshaypatil @world101
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • A
                              akshaypatil @world101
                              last edited by akshaypatil

                              @world101 Sure will!

                              0_1587112370233_8d4fd9f2-8ad2-4cb8-9577-97318370cf43-image.png

                              I was thinking if it was possible to insert the received virtual value from Blynk button here (orange block), one could toggle the GPIO pin.

                              P.S. The push notifications work perfectly! Didn't add the notification widget. (silly me!)

                              Now I just need to figure out to toggle GPIO through virtual values from the button.

                              1 Reply Last reply Reply Quote 0
                              • A
                                akshaypatil
                                last edited by akshaypatil

                                Done! :D

                                from m5ui import *
                                from uiflow import *
                                from easyIO import *
                                
                                setScreenColor(0x111111)
                                
                                circle0 = M5Circle(40, 40, 25, 0xffffff, 0xffffff)
                                
                                
                                import BlynkLib
                                BLYNK_AUTH = 'Your Authentication KEY '
                                blynk = BlynkLib.Blynk(BLYNK_AUTH)
                                
                                      
                                @blynk.VIRTUAL_WRITE(4) # Button Widget on V4
                                def my_write_handler(value):
                                  toggleIO(26)
                                  
                                
                                while True:
                                  blynk.run()
                                  wait_ms(2)
                                A 1 Reply Last reply Reply Quote 1
                                • A
                                  akshaypatil @akshaypatil
                                  last edited by

                                  @akshaypatil

                                  Here are the blocks for uiflow,
                                  http://s000.tinyupload.com/index.php?file_id=08084396321658982238

                                  and don't forget to use it together with the one uploaded by @world101 (https://www.dropbox.com/s/xosetw0qzin722l/Blynk.m5b?dl=0)

                                  Cheers! :)

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