Conversation
Set of functions to connect to the Flower Power and retrieve the History Data, based on the documentation https://flowerpowerdev.parrot.com/attachments/download/32/FlowerPower-BL E.pdf
|
+1 |
|
You forgot something i think ;) var CLOCK_SERVICE_UUID = '39e1FD0084a811e2afba0002a5d5c51b';
var CLOCK_CURRENT_TIME_UUID = '39e1FD0184a811e2afba0002a5d5c51b'; |
|
indeed :) |
- fix a problem when the historic packet is too large - add missing CLOCK UUID
|
Fix delivered ! |
I try it but I have this issue:calibrated EC porous = 1.47 dS/m /home/pi/node-flower-power/index.js:462 |
|
@kerautret: I submitted a PR against the forked version, as soon as the @Parrot-Developers folks merges it will work, or you can try my branch: https://github.com/oroce/node-flower-power/tree/history @JeromeBouvard: could you help how could I parse the returned raw data? Or do I have to upload that to parrot cloud? |
FlowerPower.prototype.readData = function(service, uuid, methodeRead, callback) {
this.readDataCharacteristic(service, uuid, function(error, data) {
if (error || !data) callback(error || 'Error: no data');
else callback(error, data[methodeRead](0));
}.bind(this));
};
// and if you want read a characteristics
FlowerPower.prototype.getHistoryNbEntries = function(callback) {
this.readData(HISTORY_SERVICE_UUID, HISTORY_NB_ENTRIES_UUID, "readUInt16LE", callback);
};https://github.com/Parrot-Developers/node-flower-power-cloud/
|
- callback requires two parameters. - adjusted output.
Thanks Gaku. I'm sure that that will make some geek gardeners happy :)
|
Would it be possible to provide the parrot firmware file 2016-09-14_hawaii-2.0.3_hardware-config-MP.bin in order to upgrade a flowerpower which has the first version of the firmware please? The parrot servers are no longer accessible I am very annoyed :). |
Here is a link to the file: |
Were you able to get yours updated? I'm missing something in my steps |
Set of functions to connect to the Flower Power and retrieve the
History Data, based on the documentation
https://flowerpowerdev.parrot.com/attachments/download/32/FlowerPower-BL
E.pdf