All Projects → ChristianTremblay → pyhaystack

ChristianTremblay / pyhaystack

Licence: Apache-2.0 license
Pyhaystack is a module that allow python programs to connect to a haystack server project-haystack.org. Connection can be established with Niagara Platform running the nhaystack, Skyspark and Widesky. For this to work with Anaconda IPython Notebook in Windows, be sure to use "python setup.py install" using the Anaconda Command Prompt in Windows.…

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pyhaystack

Njsscan
njsscan is a semantic aware SAST tool that can find insecure code patterns in your Node.js applications.
Stars: ✭ 128 (+124.56%)
Mutual labels:  semantic
Scoper
Fuzzy and semantic search for captioned YouTube videos.
Stars: ✭ 225 (+294.74%)
Mutual labels:  semantic
OLGA
an Ontology SDK
Stars: ✭ 36 (-36.84%)
Mutual labels:  semantic
Bootstrap Table
An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
Stars: ✭ 11,068 (+19317.54%)
Mutual labels:  semantic
Dataset loaders
A collection of dataset loaders
Stars: ✭ 187 (+228.07%)
Mutual labels:  semantic
Semantic Ui
Semantic is a UI component framework based around useful principles from natural language.
Stars: ✭ 49,729 (+87143.86%)
Mutual labels:  semantic
Node Semantic Git Commit Cli
A CLI for semantic git commits
Stars: ✭ 114 (+100%)
Mutual labels:  semantic
arcin-infinitas
arcin firmware for beatmania IIDX controllers - native support for Infinitas, LR2, beatoraja
Stars: ✭ 26 (-54.39%)
Mutual labels:  bms
Fomantic Ui
Fomantic-UI is a community fork of Semantic-UI
Stars: ✭ 2,755 (+4733.33%)
Mutual labels:  semantic
HVACScanner
Locates Honeywell/Tridium/Niagara HVAC JACEs/Controllers via HTTP fingerprints/strings. Very handy for vulnerability/pentesting.
Stars: ✭ 26 (-54.39%)
Mutual labels:  niagara
Semver.c
Semantic version library written in ANSI C
Stars: ✭ 147 (+157.89%)
Mutual labels:  semantic
Xdxf makedict
XDXF — a dictionary format, that stores word definitions that are free from representation
Stars: ✭ 177 (+210.53%)
Mutual labels:  semantic
SRB
Code for "Improving Semantic Relevance for Sequence-to-Sequence Learning of Chinese Social Media Text Summarization"
Stars: ✭ 41 (-28.07%)
Mutual labels:  semantic
Sempress
A highly semantic WordPress Theme with HTML5 templates, responsive and seo optimized. SemPress supports most of the new HTML5 tags, the new HTML5 input-types, microformats, microformats v2 and microdata (Schema.org).
Stars: ✭ 132 (+131.58%)
Mutual labels:  semantic
JMantic
Java library for connecting to sc-machine
Stars: ✭ 14 (-75.44%)
Mutual labels:  semantic
Idea Conventional Commit
Context and template-based completion for conventional/semantic commits.
Stars: ✭ 115 (+101.75%)
Mutual labels:  semantic
Tagsistant
Semantic filesystem for Linux, with relation reasoner, autotagging plugins and a deduplication service
Stars: ✭ 244 (+328.07%)
Mutual labels:  semantic
opentrack-cg
Repository for OpenTrack Community Group
Stars: ✭ 21 (-63.16%)
Mutual labels:  semantic
building-data-genome-project-2
Whole building non-residential hourly energy meter data from the Great Energy Predictor III competition
Stars: ✭ 112 (+96.49%)
Mutual labels:  building-automation
diyBMSv4Code
Software for diyBMS v4
Stars: ✭ 128 (+124.56%)
Mutual labels:  bms

pyhaystack Build status Coverage Documentation Gitter

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

Note

Some users reported problems when installing pyhaystack using the Python version provided by their OS (Mac OS users). We recommend to try the virtual environment approach when you are unsure about the python version our modules dependencies.

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

Note

Once you are in your virtual env DO NOT use sudo to pip install. (in fact, this is the part that made me think of permission issue as I read somewhere that we should never sudo pip install anything)

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)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].