-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[items] ItemPersistence: Add support for persisting TimeSeries (#341)
This adds support for persisting a TimeSeries. It adds a new JS TimeSeries class, which implements the same functionality as the Java TimeSeries, but in pure JS. When this JS TimeSeries is passed to `ItemPersistence#persist`, a Java TimeSeries is created from it by iterating over the timestamp -> state pairs and using `org.openhab.core.types.TypeParser` to parse Java `States` from the JS types. The helpers have been extended with a isInstant and isTimeSeries method and for all isXXX methods, a check whether the passed in type is an object has been added. --------- Signed-off-by: Florian Hotze <[email protected]>
- Loading branch information
1 parent
076def1
commit 2791284
Showing
11 changed files
with
399 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.