1. avantassel

    avantassel Moderator
    Staff Member

    Joined:
    Jan 5, 2018
    Messages:
    148
    Likes Received:
    90
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Brewer and Software Engineer
    Location:
    Lafayette, CO
    Home Page:
    #1 avantassel, Oct 17, 2018
    Last edited: Oct 17, 2018
    I prefer the raspberry pi over using the phone app since the phone app only sends when you are within bluetooth range of the Tilt in your fermenter. The Tilt communicates over bluetooth to save battery so you can use a Raspberry Pi to communicate with the Tilt and send the data over WiFi to BrewersFriend. Once you have a raspberry pi, here are some steps to set this up.

    Download the Tilt Pi image

    Download Etcher to burn the image to a micro sd card

    Insert the micro sd card and plug in your raspberry pi with a keyboard and monitor to setup WiFi.

    After it's connected to your WiFi, plug it in near your fermenter and open http://tiltpi.local:1880/ui

    Under Logging > Cloud Settings, paste the Cloud URL from your brew session and hit enter to save it.

    The Tilt Pi defaults to sending data every 5 minutes and will now send the gravity and temperature of your fermentation to BrewersFriend.

    To test it right away, you can enter a comment and hit enter to send.

    Screenshot 2018-10-17 10.07.19.png
     
  2. uk_brewer

    uk_brewer Well-Known Member

    Joined:
    Nov 24, 2013
    Messages:
    215
    Likes Received:
    396
    Trophy Points:
    63
    Location:
    West Dundee, IL
    I'll be brewing not this weekend, the next. I'll be using the pi as thats how I have it set up right now.
     
  3. rolandblais

    rolandblais Member

    Joined:
    Aug 10, 2012
    Messages:
    71
    Likes Received:
    53
    Trophy Points:
    18
    Location:
    Fernley, NV
    Is there a way to configure multiple cloud urls for the same Tilt? I haven't messed with TiltPi in ages.

    Right now my pi pushes to 4 services - 2 google sheets, brewstat.us, and BrewersFriend :)
     
  4. uk_brewer

    uk_brewer Well-Known Member

    Joined:
    Nov 24, 2013
    Messages:
    215
    Likes Received:
    396
    Trophy Points:
    63
    Location:
    West Dundee, IL
    I'm not sure about pushing to multiples, would be a nice feature.
     
    rolandblais likes this.
  5. rolandblais

    rolandblais Member

    Joined:
    Aug 10, 2012
    Messages:
    71
    Likes Received:
    53
    Trophy Points:
    18
    Location:
    Fernley, NV
    #5 rolandblais, Oct 19, 2018
    Last edited: Oct 19, 2018
    "If I get a chance to this weekend, I'll see if my script will run in that environment; it should, as it just needs python."

    So... Instead of the above, I leveraged the latest feature and added forwarders as outlined here, and there was no need to augment the TiltPI image in any way. TiltPI sends to BF, then the forwarders push the data to the google sheets I had set up already.
     
  6. Mark Farrall

    Mark Farrall Well-Known Member

    Joined:
    Oct 19, 2017
    Messages:
    1,301
    Likes Received:
    1,422
    Trophy Points:
    113
    Location:
    Melbourne Australia
    Create a second instance of titlpi on another set of ports? I think it's just a node project so should be easy to create a second instance. Challenge will come with getting all the ports for the second environment adjusted. Or get into the logging code and update it. I haven't seen that that it's an open project, so not sure what the status on that approach would be.
     
    rolandblais likes this.
  7. KC

    KC Active Member

    Joined:
    Feb 25, 2015
    Messages:
    323
    Likes Received:
    179
    Trophy Points:
    43
    Location:
    NY Capital
    #7 KC, Oct 25, 2018
    Last edited: Oct 25, 2018
    I picked up a zero W and a SD with the flashed tiltpi image.

    The Tiltpi image has a handy SETUP utility that should do all that configuration on the boot card from a laptop. I like that approach, especially for a headless R-Pi except 1) I don't want to install a new browser simply to use it, and 2) can't paste a BF link to it

    Can anyone post what the wpa_supplicant and cloud_log json files look like when tiltpi creates them?
     
  8. rolandblais

    rolandblais Member

    Joined:
    Aug 10, 2012
    Messages:
    71
    Likes Received:
    53
    Trophy Points:
    18
    Location:
    Fernley, NV
    wpa_supplicant.conf:


    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
    ssid="test"
    psk="test"
    }

    cloud_log.json:
    {"Color":"PURPLE","Comment":"[email protected]","Beer":["Test",true]}

    There's nothing in the setup.html to add the BF Cloud URL. You have to change it after the pi is up & running by browsing to the web interface and clicking the menu in the upper left:
    upload_2018-10-25_9-4-9.png

    If you add an email address, it will log to google sheets even if you specify a CloudURL. I had to leave the email field empty, and then set my BF Cloud URL for it to work.

    You can also ssh to the pi, but you have to turn it on 1st locally using raspi-config.

    Cheers,

    Roland

    PS: fwiw TiltPI on a Zero was painfully slow for me when I was trying to use the web interface. On a PI3 it worked much more quickly. The zero however works great as a headless logging tool; details here and here, if you want to go that route.
     
  9. KC

    KC Active Member

    Joined:
    Feb 25, 2015
    Messages:
    323
    Likes Received:
    179
    Trophy Points:
    43
    Location:
    NY Capital
    Thanks, I'll give that a try. I went with the zero because I'm still limited on power and thought it would manage longer on a phone battery. Also, $10

    Curious where the address ends up stored and if it could be added straight to the SD card
     
  10. rolandblais

    rolandblais Member

    Joined:
    Aug 10, 2012
    Messages:
    71
    Likes Received:
    53
    Trophy Points:
    18
    Location:
    Fernley, NV
    I just realized that I do use a PiHat that adds usb and ethernet ports, so I'm not sure if that overhead is the cause of slowness in my case.

    I'll fire up the Pi 0 and poke around with it and see if I can find where the cloudurl is stored.
     
  11. KC

    KC Active Member

    Joined:
    Feb 25, 2015
    Messages:
    323
    Likes Received:
    179
    Trophy Points:
    43
    Location:
    NY Capital
    This wpa_supplicant.conf worked for me:

    Code:
    country=us
    update_config=1
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
     scan_ssid=1
     ssid="WiFi_ID"
     psk="WiFi_Password"
    }
    Yours should work too, may have been a character issue pasting the " symbol or line breaks. Or the country=GB part. Tiltpi settings so far have been equivalent to standard r-pi settings.

    For anyone else following, there's an alternate approach if you have trouble with avantassel's steps 3 and 4.

    Create the wpa_supplicant.conf file above in the flash drive /boot directory using a unix style text editor (not notepad) after flashing tiltpi, but BEFORE booting the pi. When pi boots from flash, it uses the conf file to setup wifi in its native eth settings, then deletes the conf file. If it's not right the first time, it screws up some keys and you have to re-flash.

    To find the IP address of the tiltpi, log into your wifi router and look at the DHCP connections. The tiltpi is called tiltpi. Then you can go to http://<tiltpi_IP _Address>:1880/ui from a phone or laptop and finish configuration. The "tiltpi.local" naming doesn't always work.
     
  12. avantassel

    avantassel Moderator
    Staff Member

    Joined:
    Jan 5, 2018
    Messages:
    148
    Likes Received:
    90
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Brewer and Software Engineer
    Location:
    Lafayette, CO
    Home Page:

Share This Page

arrow_white