Software for the NavCoffee Twitch livestream, running on a Raspberry Pi + NavCoffee discord bot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
NavCoffeeBot.py
README.md Spelling and grammar Jan 22, 2019
bot.txt Added support for a discord notification bot Jan 23, 2019
breadboard_example.jpg Breadboard wiring example Jan 17, 2019
coffees_donated.txt Coffees donated data Jan 17, 2019
coffees_donated2.txt Added redundancies against unexpected crashes Jan 23, 2019
controller.py Added redundancies against unexpected crashes Jan 23, 2019
donations.txt Donations data Jan 17, 2019
donations2.txt Added support for a discord notification bot Jan 23, 2019
nav_qr.png Placeholder payment request png Jan 17, 2019
query_wallet.py
query_wallet.sh Fixed division bug causing crashes Feb 6, 2019
redemptions.txt Redemptions data Jan 17, 2019
redemptions2.txt Added redundancies against unexpected crashes Jan 23, 2019
stop_stream.sh Stop stream bash script Jan 17, 2019
stream.sh Stream stability improvements and added bot functionality Jan 24, 2019
txn_history.txt Added donation history log Jan 21, 2019

README.md

NavCoffee

Software for the NavCoffee Twitch livestream, running on a Raspberry Pi

The livestream can be found at twitch.tv/navcoffee

This project was created by the NavCoin Core summer interns of 2018/19 to engage with the community

This repo has been created to allow community members to recreate the livestream themselves

To recreate this project you will need:

  • A raspberry pi (Raspberry Pi 3 Model B was used) with Raspbian
  • A usb webcam
  • A breadboard and components to create a controller (If not wanting to control through software)
  • A Twitch account
  • A NavCoin wallet

To run your own crypto-coffee livestream (or similar), follow the instructions below:

  • Clone this repo into the /home/pi/Documents/ directory of your Pi
  • Open query_wallet.sh in your text editor of choice
    • On line 6 enter the address you wish to receive NavCoin donations at, into the URL
  • Open stream.sh in your text editor of choice
    • On line 10 enter your stream key for twitch, be sure not to show this on stream or to anyone you don't trust
  • Replace nav_qr.png with a picture of a payment request to your address, name it nav_qr.png also
  • Wire up a breadboard with buttons and LEDs if you plan to use hardware to control your stream (example picture given as breadboard_example.jpg)
  • Be sure to wire the start button to GPIO pin 17, stop to 27 and redeem coffee to 22, the start LED to 6 and coffee available LED to 13
  • To activate the stream run "sudo python3 controller.py" in the Documents directory and press your physical start button
  • Alternatively, run "./stream.sh" and "./stop_stream.sh" to control via the terminal (controller.py is not necessary for software control, but is necessary to get up to date wallet information)

In the event of a power cut, simply rerun "sudo python3 controller.py" to activate your control board