Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Asmodev
    • Continue chat with Asmodev
    • Start new chat with Asmodev
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Asmodev

    @Asmodev

    Just a wanderer

    1
    Reputation
    42
    Posts
    966
    Profile views
    1
    Followers
    2
    Following
    Joined Last Online
    Location United Kingdom

    Asmodev Follow

    Posts made by Asmodev

    • RE: How to access JSON data from UnitV2 AI Camera?

      SOLVED IT!
      Here, You can use this, hope it helps out!
      UNITV2 WEB RESULT RESPONSE

      posted in SOFTWARE
      Asmodev
    • UNIT V2 RESULT PAGE WORKING!

      Hello lonely UnitV2 Users

      I figured out how to get the RESULTS!

      anyway, here is the code for 'server_core.py'

      @app.route('/other/', methods=['GET'])
      def func_result2():
           def genFuncResult2():
                  item = pipe_result_rx_queue.get()
                  pipe_result_rx_queue.task_done()
                  item += bytes('|'.encode('ascii'))
                  yield item
      return Response(genFuncResult2(), mimetype='application/json; boundary=func_result')**
      
      • PUT THAT CODE BELLOW THE @app.route('/') return response NOT INSIDE IT!
      • Remember after updating server_core.py, login to ssh and type 'reboot' and then wait! IMPORTANT THAT YOU WAIT!
        Once done, navigating to http://10.254.239.1/other/ will give you live information of the result every time you refresh the page.

      0_1630526307447_LOVE.jpg
      Also, this might help if you want more than 10 classes.

      1: SSH YOUR UNITV2
      2: NAV TO: /home/m5stack/payload/static/js/bin/
      EDIT 'online_classifier.js'
      change
      var classifier_online_type_count_limit = 10;
      to
      var classifier_online_type_count_limit = 41;
      #job done

      WANNA SEE THE GOD DAMN SCROLL BAR?
      1: SSH YOUR UNITV2
      2: NAV TO: /home/m5stack/payload/templates/
      change
      <div id="dynamic_func_area">
      to
      <div id="dynamic_func_area" style="overflow-y: scroll;">
      #job done

      Now you can see all your classes in the list!

      THANKS AND YOU'RE WELCOME M5 STACK

      posted in SOFTWARE
      Asmodev
    • RE: unitV2 do not want to connect

      @aminekh no, you can run the server manually through ssh python server_core.py

      posted in Units
      Asmodev
    • RE: Require root Password

      @aminekh Indeed, M5Stack team should supply the pre-compiled original install of linux

      posted in Units
      Asmodev
    • RE: unitV2 do not want to connect

      have you tried ssh with root to fix what you altered?

      posted in Units
      Asmodev
    • RE: Require root Password

      How did i even miss that!

      posted in Units
      Asmodev
    • Require root Password

      This password should be in the documentation but it's not, can someone supply this info or a way to alter core server files under the m5stack user? or do i have to end up using python to hack my way to editing files? I do not want to be limited to jupyter when using the terminal to edit files and testing it!

      posted in Units
      Asmodev