neurosity-sdk-python icon indicating copy to clipboard operation
neurosity-sdk-python copied to clipboard

kinesis feature not printing any output

Open eliquinox opened this issue 1 year ago • 3 comments

I have trained a kinesis leftArm via dev console and wanted to access it via the python API. My script:

from neurosity import NeurositySDK
from dotenv import load_dotenv
import os
import time

load_dotenv("my.env")

device_id = os.getenv("NEUROSITY_DEVICE_ID")
neurosity = NeurositySDK({
    "device_id": device_id
})

neurosity.login({
    "email": os.getenv("NEUROSITY_EMAIL"),
    "password": os.getenv("NEUROSITY_PASSWORD")
})

info = neurosity.get_info()

def callback(data):
    print(data)

unsubscribe = neurosity.kinesis("leftArm", callback)

time.sleep(20)
unsubscribe()
print("Done with example.py")

When I run the script, however, I get no output. Not sure where the problem is.

eliquinox avatar Sep 21 '23 22:09 eliquinox