-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No data when executing on raspberry pi #8
Comments
Ops, same discussion here #5, |
Afaik deviceId is generated by the client (which means your mac/pi which runs the script) so it's highly possible to see different deviceId in different devices. If you'd like to do sth with device specific id, maybe it'd be better to broadcast the mac address in the payload along with deviceId. I'll put it in the enhancement list. |
@demirhanaydin Oh sorry, I thinked that deviceId was the id of the sensor.. btw have you idea why on my mac work properly and on the rpi I had to change the |
I couldn't reproduced it with my devices. It'd be helpful if someone shares the raw data just before tranformation of the human readable version. Run the script with 'DEBUG=miflora' flag and it will print raw data to the console. Share it here and I'll try to understand why it's happening when I have a time. |
This is what I see on my Macbook (the working app)
These are the raw data that I see on my rpi.
This is what I get reverting the change to Seems the buffer contains bad data. |
First of all my sensor idk why is called
Flower care
and notFlower mate
so I had to change it in the index.js file.Second when I run the code on my Mac i see right data, this is my output after changing the Flower care string:
But if I run the same code on my raspberry pi 0w I see wrong data.
The deviceId is different and similar to device macaddress.
Temperature, lux, moisture and fertility are random datas, here's my output on raspberry:
My node versions are both 7.9.0 on Mac and Raspberry.
The text was updated successfully, but these errors were encountered: