Permalink
Browse files

Init

  • Loading branch information...
0 parents commit 724ef5c4635583c0f4851f01311b7a20dcb6c27e @stahlstift committed Jan 12, 2013
Showing with 18,853 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +1 −0 .npmignore
  3. +6 −0 .travis.yml
  4. +22 −0 LICENSE-MIT
  5. +93 −0 README.md
  6. +45 −0 doc/api/api.js
  7. BIN doc/api/assets/css/external-small.png
  8. BIN doc/api/assets/css/logo.png
  9. +782 −0 doc/api/assets/css/main.css
  10. BIN doc/api/assets/favicon.png
  11. BIN doc/api/assets/img/spinner.gif
  12. +10 −0 doc/api/assets/index.html
  13. +52 −0 doc/api/assets/js/api-filter.js
  14. +251 −0 doc/api/assets/js/api-list.js
  15. +98 −0 doc/api/assets/js/api-search.js
  16. +365 −0 doc/api/assets/js/apidocs.js
  17. +17 −0 doc/api/assets/js/yui-prettify.js
  18. +130 −0 doc/api/assets/vendor/prettify/CHANGES.html
  19. +202 −0 doc/api/assets/vendor/prettify/COPYING
  20. +203 −0 doc/api/assets/vendor/prettify/README.html
  21. +1 −0 doc/api/assets/vendor/prettify/prettify-min.css
  22. +1 −0 doc/api/assets/vendor/prettify/prettify-min.js
  23. +500 −0 doc/api/classes/Device.html
  24. +491 −0 doc/api/classes/DevicesRequest.html
  25. +355 −0 doc/api/classes/DevicesResponse.html
  26. +522 −0 doc/api/classes/Http.html
  27. +491 −0 doc/api/classes/PlantOverviewRequest.html
  28. +559 −0 doc/api/classes/PlantOverviewResponse.html
  29. +577 −0 doc/api/classes/ProcessDataChannelsRequest.html
  30. +355 −0 doc/api/classes/ProcessDataChannelsResponse.html
  31. +651 −0 doc/api/classes/ProcessDataRequest.html
  32. +355 −0 doc/api/classes/ProcessDataResponse.html
  33. +416 −0 doc/api/classes/Provider.html
  34. +761 −0 doc/api/classes/Request.html
  35. +625 −0 doc/api/classes/RequestFactory.html
  36. +670 −0 doc/api/classes/ResponseFactory.html
  37. +1,727 −0 doc/api/classes/Webbox.html
  38. +10 −0 doc/api/classes/index.html
  39. +1,410 −0 doc/api/data.json
  40. +10 −0 doc/api/files/index.html
  41. +184 −0 doc/api/files/src_lib_device.js.html
  42. +224 −0 doc/api/files/src_lib_provider_http.js.html
  43. +174 −0 doc/api/files/src_lib_provider_provider.js.html
  44. +243 −0 doc/api/files/src_lib_requestFactory.js.html
  45. +168 −0 doc/api/files/src_lib_request_devices.js.html
  46. +168 −0 doc/api/files/src_lib_request_plantOverview.js.html
  47. +184 −0 doc/api/files/src_lib_request_procedures.js.html
  48. +201 −0 doc/api/files/src_lib_request_processData.js.html
  49. +189 −0 doc/api/files/src_lib_request_processDataChannels.js.html
  50. +245 −0 doc/api/files/src_lib_request_request.js.html
  51. +216 −0 doc/api/files/src_lib_responseFactory.js.html
  52. +190 −0 doc/api/files/src_lib_response_devices.js.html
  53. +205 −0 doc/api/files/src_lib_response_plantOverview.js.html
  54. +179 −0 doc/api/files/src_lib_response_processData.js.html
  55. +177 −0 doc/api/files/src_lib_response_processDataChannels.js.html
  56. +369 −0 doc/api/files/src_lib_webbox.js.html
  57. +156 −0 doc/api/files/src_node-webbox.js.html
  58. +158 −0 doc/api/index.html
  59. +199 −0 doc/api/modules/Main.html
  60. +187 −0 doc/api/modules/Provider.html
  61. +205 −0 doc/api/modules/Request.html
  62. +199 −0 doc/api/modules/Response.html
  63. +10 −0 doc/api/modules/index.html
  64. +25 −0 example/simpleUsage.js
  65. +62 −0 grunt.js
  66. +42 −0 package.json
  67. +40 −0 src/lib/device.js
  68. +80 −0 src/lib/provider/http.js
  69. +31 −0 src/lib/provider/provider.js
  70. +24 −0 src/lib/request/devices.js
  71. +46 −0 src/lib/request/getParameter.todo
  72. +53 −0 src/lib/request/parameterChannels.todo
  73. +24 −0 src/lib/request/plantOverview.js
  74. +40 −0 src/lib/request/procedures.js
  75. +57 −0 src/lib/request/processData.js
  76. +45 −0 src/lib/request/processDataChannels.js
  77. +102 −0 src/lib/request/request.js
  78. +46 −0 src/lib/request/setParameter.todo
  79. +100 −0 src/lib/requestFactory.js
  80. +46 −0 src/lib/response/devices.js
  81. +35 −0 src/lib/response/parameterChannels.todo
  82. +61 −0 src/lib/response/plantOverview.js
  83. +35 −0 src/lib/response/processData.js
  84. +33 −0 src/lib/response/processDataChannels.js
  85. +72 −0 src/lib/responseFactory.js
  86. +225 −0 src/lib/webbox.js
  87. +12 −0 src/node-webbox.js
  88. +95 −0 test/response/devicesTest.js
  89. +48 −0 test/response/parameterChannelsTest.todo
  90. +64 −0 test/response/plantOverviewTest.js
  91. +46 −0 test/response/processDataChannelsTest.js
  92. +53 −0 test/response/processDataTest.js
@@ -0,0 +1,17 @@
+.idea
+build/*
+lib-cov
+*.seed
+*.log
+*.csv
+*.dat
+*.out
+*.pid
+*.gz
+
+pids
+logs
+results
+
+node_modules
+npm-debug.log
@@ -0,0 +1 @@
+/node_modules/
@@ -0,0 +1,6 @@
+language: node_js
+
+node_js:
+ - 0.6
+ - 0.8
+ - 0.9
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Markus Lanz (stahlstift)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,93 @@
+# node-webbox [![Build Status](https://travis-ci.org/stahlstift/node-webbox.png?branch=master)](https://travis-ci.org/stahlstift/node-webbox)
+
+> Implementation of the [SMA Sunny Webbox RPC (1.3)](http://files.sma.de/dl/2585/SWebBoxRPC-BDE092713.pdf "SMA Sunny Webbox RPC (1.3)")
+
+
+## Documentation
+see doc/api
+
+
+## Getting Started
+```shell
+npm install node-webbox --save
+```
+
+```js
+var ip = '192.168.178.23';
+var Webbox = require('node-webbox');
+
+Webbox.http(ip, function (err, webbox) {
+ var device = webbox.devices[0];
+
+ webbox.getPlantOverview(function (err, data) {
+ console.log(data);
+ });
+
+ webbox.getTotalOperatingTime(device, function (err, bla) {
+ console.log(bla);
+ });
+
+ webbox.getTotalFeedTime(device, function (err, bla) {
+ console.log(bla);
+ });
+
+ webbox.getTotalProduced(device, function (err, bla) {
+ console.log(bla);
+ });
+});
+```
+
+
+## Status
+* The most basic protocol stuff is implemented and the rest should just be a diligent but routine piece of work
+* Some "Process-Commands" are implemented (h-On, h-Total, E-Total)
+
+
+## TODO ##
+* Better Documentation
+* More UnitTests
+* Process-Commands needs to get implemented (Ipv, Upv-Ist, ...)
+* RPC_GET_PARAMETER_CHANNELS (not supported by my device)
+* RPC_GET_PARAMETER (not supported by my device)
+* RPC_SET_PARAMETER (not supported by my device)
+* UDP Provider (UDP seams to be also not supported by my device...)
+
+
+## Release History
+ * 2013-01-12   v0.4.0   Initial release
+
+
+## How to contribute?
+- npm install -g grunt-cli
+- grunt (grunt.cmd on windows)
+- open a pull request and wait =)
+
+
+## Contributors
+- [Markus Lanz aka `stahlstift`](https://github.com/stahlstift)
+
+
+## License - "MIT License
+Copyright (c) 2013 Markus Lanz (aka stahlstift)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
@@ -0,0 +1,45 @@
+YUI.add("yuidoc-meta", function(Y) {
+ Y.YUIDoc = { meta: {
+ "classes": [
+ "Device",
+ "DevicesRequest",
+ "DevicesResponse",
+ "Http",
+ "PlantOverviewRequest",
+ "PlantOverviewResponse",
+ "ProcessDataChannelsRequest",
+ "ProcessDataChannelsResponse",
+ "ProcessDataRequest",
+ "ProcessDataResponse",
+ "Provider",
+ "Request",
+ "RequestFactory",
+ "ResponseFactory",
+ "Webbox"
+ ],
+ "modules": [
+ "Main",
+ "Provider",
+ "Request",
+ "Response"
+ ],
+ "allModules": [
+ {
+ "displayName": "Main",
+ "name": "Main"
+ },
+ {
+ "displayName": "Provider",
+ "name": "Provider"
+ },
+ {
+ "displayName": "Request",
+ "name": "Request"
+ },
+ {
+ "displayName": "Response",
+ "name": "Response"
+ }
+ ]
+} };
+});
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong. Retry.

0 comments on commit 724ef5c

Please sign in to comment.