skyfoundry / haystack-java Goto Github PK
View Code? Open in Web Editor NEWProject-Haystack Java Reference Implementation
Project-Haystack Java Reference Implementation
Can a single instance of HClient support parallel requests?
> Task :test FAILED
Gradle suite > Gradle test > org.projecthaystack.HDateTimeRangeTest > testRange
Gradle suite > Gradle test > org.projecthaystack.HDateTimeRangeTest > testRange
FAILED
java.lang.AssertionError at HDateTimeRangeTest.java:38
The test uses the "New York" time zone. Here being 17-19 hours ahead of New York , HDate.today() is usually the day after today in New York. Changing the time zone string to the local one lets the test pass.
Our haystack integration can make a lot of nav calls in a very short period of time. Is it possible to batch those?
jCenter has been flagged for deprecation for a while and now it seems that the URL https://jcenter.bintray.com/org/projecthaystack/haystack-java/3.0.7/haystack-java-3.0.7.pom is redirecting to maven.org which results in a 404 (See below) Is it possible to get the library published to Maven asap?
> GET /org/projecthaystack/haystack-java/3.0.7/haystack-java-3.0.7.pom HTTP/1.1
> Host: jcenter.bintray.com
> User-Agent: curl/8.6.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Mon, 05 Aug 2024 07:28:48 GMT
< Content-Type: text/html
< Content-Length: 162
< Connection: keep-alive
< Location: https://repo1.maven.org/maven2/org/projecthaystack/haystack-java/3.0.7/haystack-java-3.0.7.pom
Hi,
Is it possible if you can describe the license for this project. From the source code it states AFL3.0.
In order to be publicly used without declaration, is it possible to release it under MIT as well? Cheers
How can I actually run HClient from a linux console.
after running ./gradlew build successfully
I then try to call
java -jar build/libs/haystack-java-3.0.5.jar org.projecthaystack.client.HClient http://127.0.0.1:4337 user pencel
but I just get
no main manifest attribute, in build/libs/haystack-java-3.0.5.jar
I am new to gradle and its been many years since I touched Java. Trying to test against my server implementation.
Thanks
The following is happening in version 3.0.5, against SkySpark 3.0.26. My customer is reporting that one of the tags equals or contains the '^' char. Is this a problem with this lib, or some sort of version incompatibility?
[2020-11-20 15:01:47.452115] 2020-11-20 15:01:47.451 [Thread-4] ERROR org.dsa.iot.haystack.Haystack - read(navName == "SaTemp")
[2020-11-20 15:01:47.452115] org.projecthaystack.ParseException: Unexpected symbol: '^' (0x5e) [line 3]
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HaystackTokenizer.err(HaystackTokenizer.java:469)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HaystackTokenizer.symbol(HaystackTokenizer.java:430)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HaystackTokenizer.next(HaystackTokenizer.java:89)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.consume(HZincReader.java:385)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.consume(HZincReader.java:376)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.parseLiteral(HZincReader.java:218)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.parseVal(HZincReader.java:157)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.parseGrid(HZincReader.java:313)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.readVal(HZincReader.java:76)
[2020-11-20 15:01:47.452115] at org.projecthaystack.io.HZincReader.readGrid(HZincReader.java:92)
[2020-11-20 15:01:47.452115] at org.projecthaystack.client.HClient.postGrid(HClient.java:606)
[2020-11-20 15:01:47.452115] at org.projecthaystack.client.HClient.call(HClient.java:597)
[2020-11-20 15:01:47.452115] at org.projecthaystack.client.HClient.eval(HClient.java:253)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.Haystack$5.handle(Haystack.java:160)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.Haystack$5.handle(Haystack.java:156)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.helpers.ConnectionHelper.connect(ConnectionHelper.java:164)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.helpers.ConnectionHelper.getClient(ConnectionHelper.java:133)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.Haystack.eval(Haystack.java:156)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.actions.Actions$4.handle(Actions.java:290)
[2020-11-20 15:01:47.452115] at org.dsa.iot.haystack.actions.Actions$4.handle(Actions.java:284)
[2020-11-20 15:01:47.452115] at org.dsa.iot.dslink.node.actions.Action.invoke(Action.java:159)
Thanks,
Aaron
Would it be possible to get the full list of time units defined into HNum when calculating duration? You can see from the image below that only a subset of them are defined in the millis function but there are more defined by haystack. At the very least, day should be implemented to keep in line with SkySpark's implementation of Duration which essentially does the same thing as this function but includes day as a valid unit.
FYI - With JCenter closing it's doors soon (and it doesn't seem to be working at the moment), the following works well:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.