#617 pyhaystack 0.92.7 released / Now support BQL requests

Christian Tremblay Fri 8 Jun 2018

Glad to announce that pyhaystack now supports BQL requests as an addition to tags. This opens opportunities of analytics (like browsing the alarm database).

We also included Skyspark eval expressions

This version is officially supporting Niagara 4 and Skyspark SCRAM authentication schemes.

just pip install pyhaystack

and happy analytics !

ref : http://pyhaystack.readthedocs.io/en/latest/

Cory Mosiman Thu 12 Jul 2018

Hey Christian,

This is sweet. Just wanted to let you know - as I was going through the documentation, it seems the SkysparkHaystackSession(...params...) method doesn't work, but the pyhaystack.connect(implementation="skyspark"...) has been successful.

The error being thrown is a HTTPError: 404 Client Error: Not Found for url:

import pyhaystack
from pyhaystack.client.skyspark import SkysparkHaystackSession
import logging
import json
import os

logging.getLogger().setLevel(logging.INFO) 

# Read in params
path = 'myPath'
with open(path, 'r') as f:
    ssParams = json.load(f)
    
'WORKING'
session1 = pyhaystack.connect(implementation = 'skyspark',
                             uri= ssParams['uri'],
                             username = ssParams['username'],
                             password = ssParams['password'],
                             project = ssParams['project'],
                             pint = True)
' NOT WORKING '
session2 = SkysparkHaystackSession(uri= ssParams['uri'],
                             username = ssParams['username'],
                             password = ssParams['password'],
                             project = ssParams['project'],
                             pint = True)

op = session.about()
op.wait()
nav = op.result
print(nav)

Login or Signup to reply.