Git Product home page Git Product logo

amazingpi's Introduction

AmazingPi

This is our ESPRG present to Allan, the best manager that Microsoft office in Prague has ever seen.

This project serves as a proof of Allan's bestness - he managed to create such a great team that they not just bought some random goodbye booze for him but gathered to create this hardware present - online, in the times of coronavirus. Ain't this amazing?

We prepared for you something to remember us and made it open source, so everyone can use it!

Project

Use Raspberry Pi as machine which plays on button press one random file from samples/questions directory and random samples/answer. Belive me, its fun. You just need to connect button between GPIO 2 (pin 2) and any ground pin. And for sure you need to connect repro to 3.5mm jack. Without that, you won't hear it :)

Clone repository

Into Raspberry Pi home by running following commands.

cd /home/pi && git clone https://github.com/austy81/AmazingPi.git

Start it after boot

sudo systemctl edit --force --full amazingPi.service

Enter in following content:

[Unit]
Description=AmazingPi Service
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi
ExecStart=sh /home/pi/AmazingPi/start.sh

[Install]
WantedBy=multi-user.target

And run following commands to start service:

systemctl status amazingPi.service
sudo systemctl enable amazingPi.service
sudo systemctl start amazingPi.service

Edit the unit-file

You can edit the unit-file and show it. After editing you must restart the service to take effect.

systemctl status amazingPi.service
sudo systemctl edit --full amazingPi.service
sudo systemctl restart amazingPi.service

Wait for network

Raspberian does not wait for network connection during boot sequence, as a result GIT Pull fails.

To fix it raspi-config change is needed:

sudo raspi-config

Select option

  • '4 Wait for network at boot'
    • Slow Wait for network connection before completing boot
  • confirm OK

Update repo manually

To update code to latest version in Raspberry run:

cd /home/pi/AmazingPi && git reset --hard && git pull

Alternatively use crontab to shcedule

sudo crontab -e
@reboot sh /home/pi/AmazingPi/start.sh

amazingpi's People

Contributors

0101 avatar austy81 avatar psfinaki avatar vantonatou avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amazingpi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.