Comments (4)
Refer to : http://project-haystack.org/forum/topic/401
from pyhaystack.
Possibly related issue below:
print("With descriptive string:")
print(session['project'].his_read_series(points.result[0]['id'], rng="yesterday"))
from datetime import date
dates = slice(date(2016,5,1),date(2016,5,31))
print("With date slice:")
print(session['project'].his_read_series(points.result[0]['id'], rng=dates))
gives:
PS C:\dir\to\code> python .\source.py
With descriptive string:
<HisReadSeriesOperation done: 2016-06-06 00:00:02+10:00 21.190001
2016-06-06 00:15:03+10:00 21.190001
2016-06-06 00:30:03+10:00 21.190001
2016-06-06 00:45:03+10:00 21.190001
2016-06-06 01:00:03+10:00 21.190001
2016-06-06 01:15:04+10:00 21.190001
2016-06-06 01:30:02+10:00 21.190001
2016-06-06 01:45:07+10:00 21.190001
2016-06-06 02:00:08+10:00 21.190001
2016-06-06 02:15:03+10:00 21.190001
2016-06-06 02:30:03+10:00 21.190001
2016-06-06 02:45:03+10:00 21.190001
2016-06-06 03:00:03+10:00 21.190001
2016-06-06 03:15:03+10:00 21.190001
2016-06-06 03:30:05+10:00 21.190001
2016-06-06 03:45:03+10:00 21.190001
2016-06-06 04:00:04+10:00 21.190001
2016-06-06 04:15:03+10:00 21.190001
2016-06-06 04:30:03+10:00 21.190001
2016-06-06 04:45:02+10:00 21.190001
2016-06-06 05:00:04+10:00 21.190001
2016-06-06 05:15:02+10:00 21.190001
2016-06-06 05:30:04+10:00 21.190001
2016-06-06 05:45:05+10:00 21.190001
2016-06-06 06:00:03+10:00 21.190001
2016-06-06 06:15:03+10:00 21.190001
2016-06-06 06:30:03+10:00 21.190001
2016-06-06 06:45:03+10:00 21.190001
2016-06-06 07:00:03+10:00 21.190001
2016-06-06 07:15:03+10:00 21.190001
...
2016-06-06 16:30:03+10:00 21.190001
2016-06-06 16:45:02+10:00 21.190001
2016-06-06 17:00:03+10:00 21.190001
2016-06-06 17:15:03+10:00 21.190001
2016-06-06 17:30:03+10:00 21.190001
2016-06-06 17:45:03+10:00 21.190001
2016-06-06 18:00:03+10:00 21.190001
2016-06-06 18:15:02+10:00 21.190001
2016-06-06 18:30:03+10:00 21.190001
2016-06-06 18:45:03+10:00 21.190001
2016-06-06 19:00:03+10:00 21.190001
2016-06-06 19:15:03+10:00 21.190001
2016-06-06 19:30:03+10:00 21.190001
2016-06-06 19:45:04+10:00 21.190001
2016-06-06 20:00:03+10:00 21.190001
2016-06-06 20:15:03+10:00 21.190001
2016-06-06 20:30:03+10:00 21.190001
2016-06-06 20:45:03+10:00 21.190001
2016-06-06 21:00:03+10:00 21.190001
2016-06-06 21:15:03+10:00 21.190001
2016-06-06 21:30:04+10:00 21.190001
2016-06-06 21:45:03+10:00 21.190001
2016-06-06 22:00:03+10:00 21.190001
2016-06-06 22:15:03+10:00 21.190001
2016-06-06 22:30:03+10:00 21.190001
2016-06-06 22:45:03+10:00 21.190001
2016-06-06 23:00:05+10:00 21.190001
2016-06-06 23:15:07+10:00 21.190001
2016-06-06 23:30:03+10:00 21.190001
2016-06-06 23:45:03+10:00 21.190001
dtype: float64>
With date slice:
<HisReadSeriesOperation failed>
What do you think?
from pyhaystack.
Yep, almost certainly, because pyhaystack
assumes the double-quotes aren't needed or expected.
from pyhaystack.
Based on the answer of Brian Frank (see http://project-haystack.org/forum/topic/401) we need to modify encoding to include double quotes.
from pyhaystack.
Related Issues (20)
- Issue with NaN values HOT 3
- Retrieving point write status was broken in 3.0? HOT 6
- Implement __await__ on operation classes HOT 5
- Breaking change from SkySpark 3.0.27 to 3.0.28 HOT 15
- LDAP login on SkySpark 3.0.28 HOT 6
- Axon eval(hisClear) requires POST, not GET with skyspark HOT 2
- Why was the Haystack read Op split into get_entity and find_entity? HOT 2
- hszinc.zincparser.ZincParseException: Failed to parse: Expected end of text, found '"' (line:6, col:1) HOT 2
- Pint error? HOT 3
- Possible error while fetching data from a Niagara server hosted on HTTPS HOT 2
- NaN value in reading history raises exception HOT 19
- function HayStackSession::_get requests zinc when told to get raw json HOT 3
- SkySpark throws error 405 on any GET request HOT 23
- Authentication issue using domain name HOT 5
- Niagara 4.9 | Possible breaking change for login HOT 2
- SkySpark Authentication HOT 3
- Writing histories to SkySpark HOT 4
- Skyspark needs post requests instead of get requests for his_read HOT 12
- Watch_poll does not use argument refresh HOT 2
- Implementation of ability to add new entities? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyhaystack.