title: How to setup a Raspberry Pi to receive webhooks
body: <p>I am currently working on a little project that will have my raspberry pi light up a unicornhat whenever a new order is created on Shopify. I have never worked with webhooks nor web servers, much less Flask or Zappa before, and I was curious as to how I would set this up without exposing the pi to the open internet on my home network.</p>
  
  <p>I had read that this would be simple to do using Amazon's Lambda in conjunction with Flask and something called Zappa, however I am rather lost. This is what I have so far:</p>
  
  <pre><code>from time import sleep
  from flask import Flask, request
  import unicornhat as unicorn
  import light.py
  
  app = Flask(__name__)
  @app.route('/', methods = ['POST'])
  
  def index():
      data = request.get_json()
      if data['orders/create'] == null:
          light.light() //lights uHat on new order creation
      return "Success"
  </code></pre>
  
  <p>Any pointers would be much appreciated, I've been banging my head over this for several weeks (in my spare time) and my inexperience in webdev shows. I'm not even sure if I read Shopify's API information correctly for it to even be listening for the correct webhook.</p>
  
  <p>Thanks again!</p>