Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.77 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.77 KB

iGrill

Monitor your iGrill (mini, v2 or v3) (with a Raspberry Pi 1/2/3) - and an forward it to an mqtt-server

What do you need

Hardware

  • An iGrill Device (and at least one probe) - iGrill mini, iGrill v2 or igrill v3
  • A bluetooth enabled computer - preferable a raspberry pi
  • A mqtt server as message receiver

Installation

  1. clone this repo
  2. install required modules (see requirements.txt)
  3. Add at least one device config (see ./exampleconfig/device.yaml) - to find your device MAC just run hcitool lescan
  4. start application ./monitor.py
  5. enjoy

systemd startup-script

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...

Troubleshooting

If your device is stuck on "Authenticating" the following has been reported to work:

  1. within the file /etc/bluetooth/main.conf under [Policy] check the existence of AutoEnable=true
  2. 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"