Skip to main content

What is this ?

Pyhaystack is a module that allow python programs to connect to a haystack server using semantic data model for buildings (project-haystack).

Browse a campus, building, floor… find VAV boxes, AHU units, etc. Then extract history data from them and get the results ready for analysis using pandas or your own database implementation.

Which clients are implemented ?

Actually, connection can be established with :

Connection to Niagara AX or Niagara 4 requires the nHaystack module by J2 Innovations to be installed and properly configured on your Jace. Refer to documentation of nHaystack for details.

How do I install pyhaystack ?

pip install pyhaystack

Or you can also git clone the develop branch and use

python setup.py install

Using virtual env

You can find more information on how to use virtualenv but here is a short way of making it work.

sudo pip install virtualenv
mkdir your project folder
cd project
virtualenv venv
source venv/bin/activate

So now you are in your virtual env (it’s in parenthesis in the console) and you

pip install requests
pip install hszinc
pip install pyhaystack

(note that this time you won’t see any weird message when trying to install pandas and you need xcode to perform the install….) You are now able to

import hszinc
hszinc.MODE_ZINC
from pyhaystack.client.skyspark import SkysparkHaystackSession

What is project-haystack ?

As stated in the web site

“Project Haystack is an open source initiative to streamline working with data from the Internet of Things. We standardize semantic data models and web services with the goal of making it easier to unlock value from the vast quantity of data being generated by the smart devices that permeate our homes, buildings, factories, and cities. Applications include automation, control, energy, HVAC, lighting, and other environmental systems.”

—Project-Haystack

Actual implementation

Pyhaystack is robust and will be ready for asynchronous development.

We have chosen a state machine approach with observer pattern. See the docs for more informations.

This implementation has been mostly supported by Widesky.cloud and Servisys. We are hoping that more people will join us in our effort to build a well working open-source software that will open the door of building data analysis to Python users.

Dependency

Pyhaystack highly depends on hszinc which is a special parser for zinc encoded data. Zinc was created for project-haystack as a CSV replacement.

For analysis, we also suggest using Pint to deal with units. It will bring a lot of possibilities to pyhaystack (ex. unit conversion)

Metadata

Release files for pyhaystack 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhaystack 3.0.0
File Size Uploaded
pyhaystack-3.0.0.tar.gz 341.9 kB Details

Release files / pyhaystack-3.0.0.tar.gz

Download URL pyhaystack-3.0.0.tar.gz
Size 341.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aed17381f422ae320f4045d3c3536ed834e03be1ef5de2c429bbfde367a5ab6a
BLAKE2b-256 checksum
How to use checksums
1c91db993fbd7e2a889f774ee5f4f7cbd60c7c68396ec663c3c5dbcc29313ed3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

Release history Release notifications | RSS feed

This release

3.0.0 This release

1 release file

0.92.11

1 release file

0.92.7

1 release file

0.92.5

1 release file

0.92.1

2 release files

0.92

2 release files

0.91.1

2 release files

0.91

3 release files

0.72

1 release file

0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page