Page 1 of 1
Repository problem Raspberry PI
Posted: Saturday 07 March 2020 20:17
by krizzz
Hi,
I have Raspian Stretch installed on which Domoticz is running very nicely. But following the (first) steps within the wiki for Mi Flora Sensors (
https://www.domoticz.com/wiki/Mi_Flora_Bluetooth_LE) the following command is needed:
Code: Select all
sudo apt-get install libglib2.0-dev libdbus-1-dev libical-dev libreadline-dev libudev-dev
This gives the following output
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libglib2.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libglib2.0-dev' has no installation candidate
E: Unable to locate package libical-dev
E: Unable to locate package libreadline-dev
I have searched the web, and it seems a repository problem. I have the following in my
Code: Select all
deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
What am I doing wrong?
Re: Repository problem Raspberry PI
Posted: Saturday 07 March 2020 20:36
by sancla
Try to follow this guide and let me know that worked for you:
https://sancla.com/domoticz/how-to-domo ... nt-sensor/
Re: Repository problem Raspberry PI
Posted: Saturday 07 March 2020 22:18
by krizzz
So I started actually updating from stretch to buster with one of your howto's. I must say, worked really well and the howto was written in a way it was really ease to follow.
So then I used the how to for the Mi Flore sensor and I was quite sceptical in the beginning. I had done some automation on the sensor but I never have made it work. Using your how to was, again very simple, super and I managed to get it al working.
Now only to find our what the CB means for the irrigation. In the Mi Home app it's a %.
Re: Repository problem Raspberry PI
Posted: Sunday 08 March 2020 0:39
by sancla
Great to read, thanks for the feedback!
I never asked myself what CB stands for, until now

. After some digging, I think it stands for centi bars:
https://www.irrometer.com/basics.html
Re: Repository problem Raspberry PI
Posted: Sunday 08 March 2020 14:07
by krizzz
sancla wrote:Great to read, thanks for the feedback!
I never asked myself what CB stands for, until now

. After some digging, I think it stands for centi bars:
https://www.irrometer.com/basics.html
Another question, I renamed the 4 devices the plugin makes. Now I see that the plugin is failing.
Code: Select all
2020-03-08 12:00:39.210 Error: PP-Manager hardware (20) thread seems to have ended unexpectedly
2020-03-08 12:00:39.210 Error: PP-Mi Flower Mate hardware (21) thread seems to have ended unexpectedly
2020-03-08 12:00:50.020 Error: (PP-Mi Flower Mate) 'onHeartbeat' failed 'KeyError'.
2020-03-08 12:00:50.020 Error: (PP-Mi Flower Mate) ----> Line 756 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-03-08 12:00:50.020 Error: (PP-Mi Flower Mate) ----> Line 424 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-03-08 12:00:50.020 Error: (PP-Mi Flower Mate) ----> Line 548 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-03-08 12:00:50.021 Error: (PP-Manager) 'onHeartbeat' failed 'KeyError'.
2020-03-08 12:00:50.021 Error: (PP-Manager) ----> Line 756 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-03-08 12:00:50.021 Error: (PP-Manager) ----> Line 424 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-03-08 12:00:50.021 Error: (PP-Manager) ----> Line 548 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
Does the renaming have done this?
Verzonden vanaf mijn iPhone met Tapatalk
Re: Repository problem Raspberry PI
Posted: Sunday 08 March 2020 23:19
by sancla
krizzz wrote:
Another question, I renamed the 4 devices the plugin makes. Now I see that the plugin is failing.
Not really sure but could be yes. However, I would expect that plugin to work with the ID of the sensor and not the name.
What you could do is to ask this question on the GitHub page of the developer, he knows more about the inner workings of this plugin.
https://github.com/flatsiedatsie/Mi_Flower_mate_plugin
https://github.com/Tristan79/miflora
Re: Repository problem Raspberry PI
Posted: Friday 01 May 2020 7:39
by tonbor
krizzz wrote: ↑Saturday 07 March 2020 22:18
So I started actually updating from stretch to buster with one of your howto's. I must say, worked really well and the howto was written in a way it was really ease to follow.
So then I used the how to for the Mi Flore sensor and I was quite sceptical in the beginning. I had done some automation on the sensor but I never have made it work. Using your how to was, again very simple, super and I managed to get it al working.
Now only to find our what the CB means for the irrigation. In the Mi Home app it's a %.
Change In plugin.py this line
Domoticz.Device(Name=sensorName, Unit=sensorNumber, TypeName="Soil Moisture", Used=1).Create()
In
Domoticz.Device(Name=sensorName, Unit=sensorNumber, TypeName="Temperature", Used=1).Create()
And the readings are correct in %