Anybody tried this? Would cut down the number of Raspberry Pi Zero W’s I would need and I gather Monitor consumes far less resources than Presence…?
WTF is AndrewJFreyer’s monitor?
It’s post 340ish here…
sorry, fella, thought it was quite well known here.
I haven’t tried running it with HA because I use hass.io so mine is on an old rpi 1 (with a BTLE dongle installed) I’ve had no trouble running it on that for the last month or so.
Hi @Keith666 I am using Hass too - are you saying it’s very unlikely or impossible that Monitor and Hass.io can coexist on one Pi?
Someone probably needs to make an addon for hassio. Running using hassbian or raspbian it shouldn’t be a problem to add the required packages.
While you guys are here…sorry slightly going off topic…any ideas how to “view” the output of the script as it’s running? I’ve tried cat
and I’ve tried tail -f
but neither are formatted in the same “nice” way as when yuo call the script for the first time from the command prompt. I’m a hass.io and Linux newbie.
I’ve asked in the main thread about presence and monitor but it’s such a huge thread it’s not really working for specific technical problems or enquiries.
If I want to monitor it I just run it from the command prompt, you have to remember to restart the service afterwards tho’.
There appears to be some logging in the script. Is that giving you what you want?
Well, possibly, but I can’t work out how to open the log files main_pipe and log_pipe! And when I try to start the script with bash I get
> stopping other instances of 'monitor.sh'
Error: Connection timed out
But this
sudo pkill -f monitor.sh
and/or
sudo systemctl stop monitor.service`
seems to have helped
type more log_pipe when in the monitor dir.
Hmmm while doing sudo pkill and sudo systemctl stop helps…I still get timeouts
no idea why!
I’m also getting
0.1.482 11:07:44 am [REJECT] Arrive scan request denied. Hardware busy.
so it’s as if the monitor SERVICE is still somehow active maybe?!
try
sudo systemctl status monitor.service
You will get the hardware busy if something else is using the BT hardware