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

    [closed] Micropython Jquery confusion.

    Scheduled Pinned Locked Moved Micropython
    1 Posts 1 Posters 2.6k Views
    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.
    • ajb2k3A Offline
      ajb2k3
      last edited by ajb2k3

      I'm trying to run the following code but I seam to be missing something.

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      
      image0 = M5Img("res/default.png", x=3, y=91, parent=None)
      
      import urequests
      r = urequests.get('https://community.m5stack.com/api/user/ajb2k3')
      r_dict = r.json()
      image0.set_network_img_src(((str('https;//community.m5stack.com') + (r_dict['picture']))))
      

      Nevermind I solved it with

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      
      
      imgrespons = None
      
      
      
      image0 = M5Img("res/default.png", x=3, y=91, parent=None)
      label0 = M5Label('Text', x=35, y=41, color=0x000, font=FONT_MONT_14, parent=None)
      
      
      
      
      import urequests
      r = urequests.get('https://community.m5stack.com/api/user/ajb2k3')
      r_dict = r.json()
      imgrespons = ('https://community.m5stack.com' + r_dict['picture'])
      
      
      label0.set_text(str(imgrespons))
      image0.set_network_img_src(imgrespons)

      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post