Monitor your iGrill (mini, v2 or v3) (with a Raspberry Pi 1/2/3) - and forward it to a mqtt-server
- An iGrill Device (and at least one probe) - iGrill mini, iGrill 2 or iGrill 3
- A bluetooth enabled computer - preferable a raspberry pi
- A mqtt server as message receiver
- clone this repo
- install required modules (see requirements.txt)
- Add at least one device config (see ./exampleconfig/device.yaml) - to find your device MAC just run
hcitool lescan
- start application
./monitor.py
- enjoy
Place this file into the proper folder - for instance: /lib/systemd/system/igrill.service
[Unit]
Description=igrill MQTT service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=2
ExecStart=/usr/bin/python <path_to_igrill_repo>/monitor.py -c <path_to_config_dir>
[Install]
WantedBy=multi-user.target
Run systemctl daemon-reload && systemctl enable igrill && systemctl start igrill
Next time you reboot, the iGrill service will connect and reconnect if something goes wrong...
If your device is stuck on "Authenticating" the following has been reported to work:
- within the file /etc/bluetooth/main.conf under [Policy] check the existence of AutoEnable=true
- Comment out below line in /lib/udev/rules.d/90-pi-bluetooth.rules by prefixing "#" the line ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/bin/hciconfig %k up"