Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 4e96020 commit 4fd4d01dee25d15a3bae7a8a20191c8eaa867204 @stahlstift committed Feb 3, 2013
Showing with 24 additions and 0 deletions.
  1. +24 −0 README.md
View
@@ -44,6 +44,30 @@ Webbox.http(ip, function (err, webbox) {
console.log(bla);
});
});
+
+// Importer Example
+var importer = webbox.importer('192.168.178.23', 'installer', 'secret');
+
+importer.on('row', function (data) {
+ //{
+ // 'utcTimestamp'
+ // 'totalProduction', // kWh
+ // 'totalOperationTime' // hours
+ // 'totalFeedTime' // hours
+ // 'currentProduction' // Watt
+ //}
+ console.log(data);
+});
+
+importer.on('end', function () {
+ console.log('import finished');
+});
+
+importer.on('error', function () {
+ console.log('oh oh');
+});
+
+importer.parseAllCsvFiles();
```
## Release History

0 comments on commit 4fd4d01

Please sign in to comment.