Navigation

    M5Stack Community

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

    Best posts made by bjone6

    • How to access JSON data from UnitV2 AI Camera?

      I'm using normal Python to access the UnitV2 camera and it works but I can't get the JSON data from any of the modules. Here's where I'm at so far.

      import requests
      from lxml import html

      r = requests.get('http://10.254.239.1')
      status = r.status_code
      tree = html.fromstring(r.content)
      *** When I inspect the page, this is where the JSON data is stored but I don't get anything from this.***
      json = tree.xpath('//*[@id="func-result-pre"]')
      print(json)

      posted in SOFTWARE
      bjone6