peter279k / green-button-converter Goto Github PK
View Code? Open in Web Editor NEWThis is the Green Button Data Converter with Node.js
This is the Green Button Data Converter with Node.js
After validating the sample Green Button data test.xml, it presents the incorrect validation message.
It's as follows:
Schema validation error: The 'http://naesb.org/espi:start' element is invalid - The value '2019-07-18 17:00:00' is invalid according to its datatype 'http://naesb.org/espi:TimeType' - The string '2019-07-18 17:00:00' is not a valid Int64 value.
at line number:44 position:41
It looks like the start date
should use the int64
type.
That is, the start date should be the timestamp.
As title, I think we can consider using the XML Parser
to validate the Green Button XML data.
We can consider the XML data has the following expected behavior:
entry
tags should have the 3
blocks.content
tags should have the 3
blocks.published
tags should have the 3
blocks.updated
tags should have the 3
blocks.As title, we also consider adding this ElectricPowerUsageSummary
blocks for customers to know their billing of power usage.
According to the Green button data references, it should be the ISO_8601 string in Published
and Updated
tags.
For example, looking at the following code snippets:
> moment().utc().format("YYYY-MM-DD[T]HH:mm:ss[Z]")
'2019-07-21T18:16:20Z'
But the time string is as follows at this moment:
2019-07-19T13:25:14+08:00
@fogdingding. This code snippets should be fixed :).
As title, since the PR #1 is merged, we can consider updating the Green Button XML data in README
.
As title, it seems that the Green Button XML data output is wrong.
Considering this reference and enhance them.
As title. And this number should present on title
tag in Green Button Data response.
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.