Skip to content

Instantly share code, notes, and snippets.

View ptagell's full-sized avatar

Paul Tagell ptagell

View GitHub Profile
@ptagell
ptagell / makeitrain.rb
Created August 26, 2020 22:35
Make it Rain Raspberry Pi GPIO controlling script
require 'httparty'
require 'json'
require 'dotenv/load'
url = 'https://websiteURLgoesHere'
if ENV['RaspberryPi'] == true
require 'rpi_gpio'
end