-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Problem
Example Code:
Code 1
- Prompt
from pyhaystack.client.niagara import Niagara4HaystackSession
from pyhaystack.client.http.auth import BasicAuthenticationCredentials
import hszinc
URI = "server endpoint"
USERNAME = "username"
PASSWORD = "password"
authenticator = BasicAuthenticationCredentials(
USERNAME,
PASSWORD
)
json = hszinc.MODE_JSON
session = Niagara4HaystackSession(
uri = URI,
username = authenticator.username,
password = authenticator.password,
pint = True,
grid_format= json
)
session
- Output
<pyhaystack.client.niagara.Niagara4HaystackSession at 0x12d8aa110>
Code 2
- Prompt
session.sites
- Output
HaystackError: java.lang.ClassCastException: org.projecthaystack.HStr cannot be cast to org.projecthaystack.HRef
Code 3
- Prompt
floor_2 = session.get_entity(
ids= "S.Floor_2"
)
floor_2.wait()
floor_2.result
- Output
<@S.Floor_2: {area=0.0, axSlotPath='slot:/HS_Ontology/Floor_2', axType='nhaystack:HSite', dis='Floor_2', geoAddr='', geoCity='', geoCoord......, navName='Floor_2', site, tz='Bangkok'}>
Question
I can get entity by get_entity function but can not find_entity
- Picture for tagging and ontology
- Picture for Resource Unit
- Picture for number of entity

Metadata
Metadata
Assignees
Labels
No labels