tvoverbeek wrote: ↑
Tue Sep 12, 2017 6:47 am
Running out of memory??? Pi-Zero-W has 512 MB, RPI3 1 GB
That is certainly a possibility. As asked in another Raspbian thread, I moved my PiZero-W card to my Pi2 with WiPi adapter and the pip install of bluez[ble] appeared to build correctly.
I moved the card back to my PiZero-W but the effort was moot, as none of the BLE python examples seemed to work, no errors, but the scans didn't find my Radius Dot beacons.
So I've moved on, and use a node-red flow to exec a shell script that uses sudo hcitool and hcidump -- raw to dump a lescan into a csv format text file which is then read into the flow, interpreted with a node-red function node and updates the presence/absent status via MQTT. Auto repeating the flow every 10 seconds works great for my needs. Its a kludge, but it seems reliable enough so far, been running for almost a week now.
Using the microwave oven seems to kill the wifi connection between the PiZero-W and the MQTT broker, but it seems to recover and the microwave will not be running when the presence detection becomes important
I'm quite impressed with the PiZero-W so much so I've bought another to play with along with a V2 NoIR camera module. If you've another P2 with wifi dongle or better yet a Pi3 set up your SD card on it and move it to the PiZero-W when finished as all the installs and building of stuff goes a lot faster and if using the GUI its way more pleasant interaction.
Edit: figuring it might be a memory issue initially, I changed the config to boot to a console without auto login and attempted the whole thing over ssh with the same system wedge (or lock-up) result, I didn't mention this initially to keep it brief and to the point.