tzachi-dar / libreallhouse Goto Github PK
View Code? Open in Web Editor NEWUse Raspberry pi devices to have all house coverage using the miaomiao device.
Use Raspberry pi devices to have all house coverage using the miaomiao device.
After migration from MLab sandbox to free MongoDB Atlas database I am having trouble to properly configure db_uri parameter. I am not seeing any uploads have been done.
I have tried with
mongodb+srv://username:[email protected]/dbname?retryWrites=true&w=majority
but unfortunately without sucess.
What is the proper way to configure db_uri ?
Tnx in advance
Hello,
I am using your LibreAllHouse on many pi receivers all over the house. We are thinking of maybe switching to dexcom g6 when it becomes available. Is there an equivalent of your LibreAllHouse program for Dexcom that can run on the same pis or will I have to rebuild new hardware? What would you recommend for an equivalent dexcom setup?
Best
EDIT 27.12.2018.: Dear Reader, if you have found this searching around, I want to inform you that this was NOT LibreAllHouse issue! This was only the hardware issue with RPi Zero W. RPi Zero W is an excellent product (recommend it, I have several of them and I am happy with all) but this one by accident had faulty antenna so the only problem was hardware - antenna. LibreAllHouse worked excellent and now works excellent on my new replaced RPi.
On RPi 3B everything works great, but with my new RPi Zero W it seams that BT connection with miaomiao can not be established.
The setup is the same on both RPis, clean Raspbian installation, latest updates... There is NO interference/collision between devices, that was ensured 100%.
tail -F ~/LibreAllHouse/screen.log on RPi Zero W says:
INFO 2018-12-17 20:24:18,374 cought btle.BTLEException Failed to connect to peripheral XX:XX:XX:XX:XX:XX, addr type: random
2018-12-17 20:24:19.580: event wait ended, ret = False
EDIT: It seams that by default RPi Zero W can not see BLE devices. E.g. through GUI Bluetooth "Add device..." windows only Bluetooth devices NOT using BLE are wisible while BLE connections are NOT visible. In the same time RPi 3B sees all devices.
While doing some research of the other problems, I have noticed one potential issue, so I am opening this new thread regarding that. I have noticed that in one of my old RPIs (Rpi 3B) that served for several years for LibreAllHouse, the file size of the screen.log is 2GB. I have a feeling that this might be a problem? I have renamed the old one and a new one was automatically created with new data being inserted from last couple of months. What is the best practice regarding this file and its size? Should it be regularly deleted, or are there any settings for automatic size limit or...? Tnx in advance!
Dear @tzachi-dar . Several months ago I had opened the issue #2 and you helped me to solve it. The RPi zero W was damaged so after change everything works.
Now I have the issue with RPi 3 model B. Everything worked for a year or so just fine, but last couple of months I can notice that RPI 3 B is not collecting readings from MiaoMiao 1 consistently. After fresh reboot it sometimes collects and then stops for a days although the MM is in its range. I tried to disable all other RPIs and master phone and smartwatch just to test this malfunctioning RPi and nothing. After fresh restart then sometimes it collects again for some limited time but sometimes not at all.
Can you or anyone else please help to track the root of the problem (hardware vs software)?
I will buy soon a new RPi 4 but I am interested what may cause such a strange behavior.
Hi, I tried to setup a mongo db with mlab but was redirected to mongo cloud Atlas . The URI I am given to connect to my db by Mongo cloud is of the form
mongodb+srv://url/db
If I remove the +srv, I get a communication error in screen.log.
If I keep the +srv, I get the following error
caught exception in MongoThread, will soon continueThe "dnspython" module must be installed to use mongodb+srv:// URIsConfigurationError
so I installed dnspython through pip install dnspython but I am still getting the same error message. How may I upload to my mongo?
how hard is it to port this to the ESP32 Boards?
Using Miaomiao 1 with Libre 2 and RPI 3 B for LibreAllHouse. phone has oop2 running for the libre 2
scan.py works and finds MAC address of miaomiao 1 OK,but after running Main.py get errors
INFO 2021-04-22 01:57:08,879 tryAgainAlowed numberOfCrcErrors_ = 2 NumberOfDiscnections_ = 0
2021-04-22 01:57:08.880: event wait ended, ret = True
INFO 2021-04-22 01:57:08,881 We are still allowed to retry
INFO 2021-04-22 01:57:13,887 Sending a request for more data after send failure
INFO 2021-04-22 01:57:15,255 restarting since time from last packet is 6 already acumulated 369
40
50
we have enough data len = 369
checksum_ok1 = False
checksum_ok2 = False
checksum_ok3 = False
INFO 2021-04-22 01:57:18,851 checksum_ok = False
start byte = 40
end byte = 11
len = 369
battery = 100
<class 'str'>
fw version = 39
hw version = 1
sensor serial number 0MH002L4H24
bad end byte 11
2021-04-22 01:57:18.870: event wait ended, ret = True
INFO 2021-04-22 01:57:18,869 tryAgainAlowed numberOfCrcErrors_ = 3 NumberOfDiscnections_ = 0
INFO 2021-04-22 01:57:18,870 We are still allowed to retry
INFO 2021-04-22 01:57:23,876 Sending a request for more data after send failure
INFO 2021-04-22 01:57:25,248 restarting since time from last packet is 6 already acumulated 369
Followed by persistant error:
Connecting...
INFO 2021-04-22 01:58:29,073 cought btle.BTLEException Failed to connect to peripheral fa:03:f7:5f:ed:25, addr type: random
2021-04-22 01:59:28.998: event wait ended, ret = False
Hi there, I'm just wondering if this project allows my phone to be used as the primary connection to the miaomiao, and also use a raspberry pi as a backup?
I'm having issues keeping my phone connected to my miaomiao overnight, but would be interested in setting up a pi next to my bed.
I'm not sure how many connections miaomiao can hold simultaneously and couldn't find anything in the readme or google doc.
Thank you!
I am testing this code but I only get 3 packets (20 bytes each) after connection.
Can you please help me with this?
Thank you very much...
Dear @tzachi-dar , yesterday I have made a switch from MiaoMiao 1 to MiaoMiao 2 and it seams that LibreAllHouse is not collecting data any more. Is it a compatibility issue with MiaoMiao 2 or am I missing something? We are using libreallhouse for at least 3 years and I am afraid that this is a compatibility issue which I was not aware till now. Is there anything I could do to resolve this? THANK YOU very much in advance!
Dear @tzachi-dar ,
After years and years of using this fabulous software with Libre 1 and MM it is time to switch to Libre2, hopefully without MM and with the patched app directly over bluetooth. I have one (probably silly) question: Is there any way to cover all house with this software and RPis but without using MM and directly communicating with Libre2 over Bluetooth? Thank you so so much on any response in advance!
EDIT: For someone who found this searching around: This question is NOT an issue. There is the guide for Configuring Raspberry Pi for Libre 2 made by the author @tzachi-dar and published on the front page of this project, so please enjoy: https://github.com/tzachi-dar/LibreAllHouse/blob/master/LIBRE2.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.