Comments (4)
Is this the complete log? I mean: I would've expect to see at least a number of scans for BLE devices and the BS440 not to show up before stepping on the scale. The error shows a timeout after the scale has been connected to and the program registers to the notifications which should arrive. Therefore i would expect to see more logging before the exception.
Are you sure you got the right MAC address of the scale (so you're not trying to connect to some other device). Is it a BS440 you're trying? Did you stick with the (meanwhile quite old) version of PyGatt? I know there have been some fixes to that lately, maybe they broke something. BTW i'm thinking of moving to the better supported bleak library if time permits.
from bs440.
First of all thank you for the reply! I think pygatt was the problem after all.... Now it seems to work. But my quest continues :-) the data does not pop-up in the broker yet, on the the intialised message(suspect i did wrong in the config ;-) ):
2021-02-25 11:03:42,979 INFO Loading plugin: BS440mqtt
2021-02-25 11:03:43,232 INFO All plugins loaded.
2021-02-25 11:03:43,237 INFO BS440 Started
2021-02-25 11:03:43,354 INFO init_ble_mode hci0 Set Low Energy complete, settings: powered bondable ssp br/edr le secure-conn
2021-02-25 11:04:10,058 INFO processIndication {'gender': 'male', 'age': 37, 'person': 1, 'valid': True, 'activity': 'normal', 'size': 180}
2021-02-25 11:04:10,073 INFO Waiting for notifications for another 30 seconds
2021-02-25 11:04:10,077 INFO processIndication {'timestamp': 1614176741, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:10,094 INFO processIndication {'timestamp': 1614176741, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:10,108 INFO processIndication {'timestamp': 1614181695, 'valid': True, 'weight': 81.8, 'person': 1}
2021-02-25 11:04:10,127 INFO processIndication {'timestamp': 1614181695, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.8, 'muscle': 40.3, 'kcal': 1841, 'bone': 3.4}
2021-02-25 11:04:10,147 INFO processIndication {'timestamp': 1614181799, 'valid': True, 'weight': 81.2, 'person': 1}
2021-02-25 11:04:10,167 INFO processIndication {'timestamp': 1614181799, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.5, 'muscle': 40.4, 'kcal': 1832, 'bone': 3.4}
2021-02-25 11:04:10,186 INFO processIndication {'timestamp': 1614182431, 'valid': True, 'weight': 81.3, 'person': 1}
2021-02-25 11:04:10,206 INFO processIndication {'timestamp': 1614182431, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.6, 'muscle': 40.4, 'kcal': 1834, 'bone': 3.4}
2021-02-25 11:04:10,226 INFO processIndication {'timestamp': 1614191767, 'valid': True, 'weight': 82.7, 'person': 1}
2021-02-25 11:04:10,246 INFO processIndication {'timestamp': 1614191767, 'tbw': 60.3, 'person': 1, 'valid': True, 'fat': 20.1, 'muscle': 40.1, 'kcal': 1853, 'bone': 3.5}
2021-02-25 11:04:10,266 INFO processIndication {'timestamp': 1614192023, 'valid': True, 'weight': 82.8, 'person': 1}
2021-02-25 11:04:10,286 INFO processIndication {'timestamp': 1614192023, 'tbw': 60.3, 'person': 1, 'valid': True, 'fat': 20.2, 'muscle': 40.1, 'kcal': 1854, 'bone': 3.5}
2021-02-25 11:04:10,306 INFO processIndication {'timestamp': 1614193292, 'valid': True, 'weight': 82.7, 'person': 1}
2021-02-25 11:04:10,326 INFO processIndication {'timestamp': 1614193292, 'tbw': 60.3, 'person': 1, 'valid': True, 'fat': 20.2, 'muscle': 40.1, 'kcal': 1853, 'bone': 3.5}
2021-02-25 11:04:10,346 INFO processIndication {'timestamp': 1614193396, 'valid': True, 'weight': 82.1, 'person': 1}
2021-02-25 11:04:10,366 INFO processIndication {'timestamp': 1614193396, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.8, 'muscle': 40.3, 'kcal': 1845, 'bone': 3.4}
2021-02-25 11:04:10,386 INFO processIndication {'timestamp': 1614193867, 'valid': True, 'weight': 81.9, 'person': 1}
2021-02-25 11:04:10,406 INFO processIndication {'timestamp': 1614193867, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.8, 'muscle': 40.3, 'kcal': 1842, 'bone': 3.4}
2021-02-25 11:04:10,426 INFO processIndication {'timestamp': 1614194153, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:10,446 INFO processIndication {'timestamp': 1614194153, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:10,466 INFO processIndication {'timestamp': 1614194307, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:10,486 INFO processIndication {'timestamp': 1614194307, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:10,506 INFO processIndication {'timestamp': 1614194844, 'valid': True, 'weight': 81.4, 'person': 1}
2021-02-25 11:04:10,526 INFO processIndication {'timestamp': 1614194844, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.6, 'muscle': 40.4, 'kcal': 1835, 'bone': 3.4}
2021-02-25 11:04:10,546 INFO processIndication {'timestamp': 1614195066, 'valid': True, 'weight': 81.7, 'person': 1}
2021-02-25 11:04:10,566 INFO processIndication {'timestamp': 1614195066, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1839, 'bone': 3.4}
2021-02-25 11:04:10,586 INFO processIndication {'timestamp': 1614195412, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:10,606 INFO processIndication {'timestamp': 1614195412, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:10,626 INFO processIndication {'timestamp': 1614196026, 'valid': True, 'weight': 81.3, 'person': 1}
2021-02-25 11:04:10,646 INFO processIndication {'timestamp': 1614196026, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.6, 'muscle': 40.4, 'kcal': 1834, 'bone': 3.4}
2021-02-25 11:04:10,666 INFO processIndication {'timestamp': 1614196116, 'valid': True, 'weight': 81.3, 'person': 1}
2021-02-25 11:04:10,686 INFO processIndication {'timestamp': 1614196116, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.6, 'muscle': 40.4, 'kcal': 1834, 'bone': 3.4}
2021-02-25 11:04:10,706 INFO processIndication {'timestamp': 1614196308, 'valid': True, 'weight': 81.3, 'person': 1}
2021-02-25 11:04:10,726 INFO processIndication {'timestamp': 1614196308, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.5, 'muscle': 40.5, 'kcal': 1834, 'bone': 3.4}
2021-02-25 11:04:10,746 INFO processIndication {'timestamp': 1614196465, 'valid': True, 'weight': 81.5, 'person': 1}
2021-02-25 11:04:10,766 INFO processIndication {'timestamp': 1614196465, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1837, 'bone': 3.4}
2021-02-25 11:04:10,786 INFO processIndication {'timestamp': 1614196543, 'valid': True, 'weight': 81.2, 'person': 1}
2021-02-25 11:04:10,816 INFO processIndication {'timestamp': 1614196543, 'tbw': 60.8, 'person': 1, 'valid': True, 'fat': 19.5, 'muscle': 40.4, 'kcal': 1832, 'bone': 3.4}
2021-02-25 11:04:10,836 INFO processIndication {'timestamp': 1614196671, 'valid': True, 'weight': 81.5, 'person': 1}
2021-02-25 11:04:10,856 INFO processIndication {'timestamp': 1614196671, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1837, 'bone': 3.4}
2021-02-25 11:04:10,876 INFO processIndication {'timestamp': 1614197026, 'valid': True, 'weight': 81.8, 'person': 1}
2021-02-25 11:04:10,896 INFO processIndication {'timestamp': 1614197026, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.8, 'muscle': 40.3, 'kcal': 1841, 'bone': 3.4}
2021-02-25 11:04:10,916 INFO processIndication {'timestamp': 1614197123, 'valid': True, 'weight': 81.8, 'person': 1}
2021-02-25 11:04:10,936 INFO processIndication {'timestamp': 1614197123, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.3, 'kcal': 1841, 'bone': 3.4}
2021-02-25 11:04:10,956 INFO processIndication {'timestamp': 1614197258, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:10,976 INFO processIndication {'timestamp': 1614197258, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.3, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:10,996 INFO processIndication {'timestamp': 1614197398, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:11,016 INFO processIndication {'timestamp': 1614197398, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:11,036 INFO processIndication {'timestamp': 1614197487, 'valid': True, 'weight': 81.6, 'person': 1}
2021-02-25 11:04:11,056 INFO processIndication {'timestamp': 1614197487, 'tbw': 60.6, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.3, 'kcal': 1838, 'bone': 3.4}
2021-02-25 11:04:11,076 INFO processIndication {'timestamp': 1614198495, 'valid': True, 'weight': 82.6, 'person': 1}
2021-02-25 11:04:11,096 INFO processIndication {'timestamp': 1614198495, 'tbw': 60.4, 'person': 1, 'valid': True, 'fat': 20.1, 'muscle': 40.1, 'kcal': 1852, 'bone': 3.5}
2021-02-25 11:04:11,116 INFO processIndication {'timestamp': 1614205474, 'valid': True, 'weight': 82.8, 'person': 1}
2021-02-25 11:04:11,136 INFO processIndication {'timestamp': 1614205474, 'tbw': 60.2, 'person': 1, 'valid': True, 'fat': 20.3, 'muscle': 40.1, 'kcal': 1854, 'bone': 3.5}
2021-02-25 11:04:11,156 INFO processIndication {'timestamp': 1614248760, 'valid': True, 'weight': 81.3, 'person': 1}
2021-02-25 11:04:11,186 INFO processIndication {'timestamp': 1614248760, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.6, 'muscle': 40.4, 'kcal': 1834, 'bone': 3.4}
2021-02-25 11:04:11,206 INFO processIndication {'timestamp': 1614248863, 'valid': True, 'weight': 82.0, 'person': 1}
2021-02-25 11:04:11,226 INFO processIndication {'timestamp': 1614248863, 'tbw': 60.5, 'person': 1, 'valid': True, 'fat': 19.9, 'muscle': 40.2, 'kcal': 1843, 'bone': 3.4}
2021-02-25 11:04:11,246 INFO processIndication {'timestamp': 1614251035, 'valid': True, 'weight': 81.4, 'person': 1}
2021-02-25 11:04:11,266 INFO processIndication {'timestamp': 1614251035, 'tbw': 60.7, 'person': 1, 'valid': True, 'fat': 19.7, 'muscle': 40.4, 'kcal': 1835, 'bone': 3.4}
2021-02-25 11:04:40,094 INFO Could not disconnect...
2021-02-25 11:04:40,098 INFO Done receiving data from scale
from bs440.
I never used the MQTT plugin myself. But you should at least see the plugin starting when proper data is received as per line 316 "if persondata and weightdata and bodydata:" (BS440.py) Maybe throw in some debugging loggings...
from bs440.
@modular1, in case this is still relevant: i got MQTT working like a charm. Let me know if I can help.
from bs440.
Related Issues (20)
- InfluxDB Plugin: AttributeError: 'module' object has no attribute 'timezone' HOT 1
- The "create" items url HOT 1
- Division by zero in BS440csv.py HOT 3
- New Scale Medisana BS A45 HOT 1
- Bring BS440 into a Docker container
- Service stops randomly at some point with "Error getting handles" "Continue Comms: False"
- blueman-applet crash solved HOT 2
- Question: What is necessary to modify your python script to work with a Beurer BF 700? HOT 2
- Example csv file for the node-red flow? HOT 1
- Mail is not sent sometimes HOT 2
- ModuleNotFoundError: No module named 'ConfigParser' HOT 1
- Compatibility with BS414? HOT 1
- Can't connect BS444 bluetooth HOT 20
- Cannot connect to BS444 HOT 5
- Google fit addon can not sent data HOT 4
- Upcoming change to the Google Fit API's
- Scanning just stops working suddenly without any reason. HOT 7
- get timeouts when trying to connect HOT 5
- Python 3 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bs440.