Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Posted: Thursday 16 March 2017 8:11
So why didn't you change the wiki after finding the mistake in it?
Open source Home Automation System
https://forum.domoticz.com/
Oh, can i ? I didnt knew i can edit themblauwebuis wrote:So why didn't you change the wiki after finding the mistake in it?
Code: Select all
sudo python3 domoticz.py
Code: Select all
/bin/sh: 1: /usr/bin/gatttool: not found
Code: Select all
Requirement already satisfied (use --upgrade to upgrade): pygatt in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/local/lib/python3.4/dist-packages (from pygatt)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python3.4/dist-packages (from pygatt)
Cleaning up...
Code: Select all
sudo pip3 install pygatt --upgrade
Requirement already up-to-date: pygatt in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: pyserial in /usr/local/lib/python3.4/dist-packages (from pygatt)
Requirement already up-to-date: enum34 in /usr/local/lib/python3.4/dist-packages (from pygatt)
Cleaning up...
Code: Select all
sudo apt-get purge bluez
Code: Select all
/bin/sh: 1: gatttool: not found
Actually, I reread the Script. It is written, That you should place the miflora folder in the domoticz python folder. So it was my mistake, I placed it in the domoticz scripts folder.tontze wrote:Actually, wiki´s crontab part doesnt correspond to instructions earlier. I had same mistake as user before ..
an extra /python/ in the path, and missing /home from the path startCode: Select all
And then add this line: 0 0,12 * * * python3 /pi/domoticz/scripts/python/miflora/domoticz.py
![]()
-T
How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
It is in the wiki :krizzz wrote:How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
Verzonden vanaf mijn iPhone met Tapatalk
Code: Select all
cd /
sudo mkdir bluez
cd bluez
sudo wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.44.tar.xz
sudo tar -xJf bluez-5.44.tar.xz
cd bluez-5.44
sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-tools --disable-test --disable-systemd
sudo make all
sudo apt-get install python-bluez python-requests
Code: Select all
sudo cp attrib/gatttool /usr/local/bin/ [b]or[/b] sudo cp attrib/gatttool /usr/bin/
Thanks for pointing me into the right direction. I spend my evening trying and compiling again and again the 5.44 Bluez install. And I keept getting the same message, that gattool was not find. And then I noticed 1 small line in the wikitontze wrote:It is in the wiki :krizzz wrote:How do I do this via sources? Thanks!tontze wrote:Did you try installing latest bluez via sources(not apt-get).? At some versions of bluez gatttool isn't installed and it won't be installed via apt-get
Verzonden vanaf mijn iPhone met Tapatalk
Also do (depending where your bins are);Code: Select all
cd / sudo mkdir bluez cd bluez sudo wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.44.tar.xz sudo tar -xJf bluez-5.44.tar.xz cd bluez-5.44 sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-tools --disable-test --disable-systemd sudo make all sudo apt-get install python-bluez python-requests
-TCode: Select all
sudo cp attrib/gatttool /usr/local/bin/ [b]or[/b] sudo cp attrib/gatttool /usr/bin/
Code: Select all
Note: Bluez version 5.44 does not compile gatttool on a Raspberry Pi 3, however version 5.43 does work properly.
Indeed, i missed that part as i had bluez allready installed
Thanks for pointing me into the right direction. I spend my evening trying and compiling again and again the 5.44 Bluez install. And I keept getting the same message, that gattool was not find. And then I noticed 1 small line in the wikiSo I tried compiling Bluez 5.43, and works flawlesslyCode: Select all
Note: Bluez version 5.44 does not compile gatttool on a Raspberry Pi 3, however version 5.43 does work properly.
. So not only does the 5.44 Bluez not install gatttool on a Raspberry Pi3, also not on a Raspberry Pi2 and Pi1.
Now for the next step. How to find out when to water the plants and if the fertility is good
You can safely use phone app, just dont update when it asks you tophysiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.
For all plants?physiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.
In the android app it says about fertilizing :pvm wrote:For all plants?physiker123 wrote:Can anyone post perhaps the values for the different plants? I do not really want to change something now that everything works.
I use 20% as moisture trigger. I defined thus by just feeling the soil at which I normally give water to the plant
The firmware update won't break anything IMHO.physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
The firmware update won't break anything IMHO.physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
You can close it via X on the right upper corner.physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
PPL say that they wont work with flower care app after upgrade, they added regions to it. In domotics it works even after update.LouiS22 wrote:The firmware update won't break anything IMHO.physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.
I know, but you can solve this easily, I've even provided a how-to beforetontze wrote:PPL say that they wont work with flower care app after upgrade, they added regions to it. In domotics it works even after update.LouiS22 wrote:The firmware update won't break anything IMHO.physiker123 wrote:I looked at the app (Flower Care), but when it detects my sensors it wants to make the firmware update. I cannot delete the notification (Nexus 5x with Android 7.1), so I have to restart the app. Therefore, I only have seconds to look at the app
I looked at the FAQ, and it gave as well the values of 500 for the fertility, but 35 for the moisture. I had a look at two different plants, but the values where the same (I hope I looked right, see above).
I will just look, if 35 is too much, and then lower the value.