GithubHelp home page GithubHelp logo

soma_fm_pi_radio's Introduction

Soma FM Radio

Demo:

see the file: soma_fm_pi_radio_demo.mp4

Preparation:

  1. Obtain a Raspberry Pi 3B+ and slap on Raspbian. I used Buster.

  2. Install the GFX Hat library:

curl -sS https://get.pimoroni.com/gfxhat | bash
  1. There's a chance the GFX Hat library is out of date. If you get an error running the gfx hat examples, e.g. contrast-scanner.py:
File “contrast-scanner.py”, line 60, in
lcd.contrast(0)
AttributeError: ‘module’ object has no attribute ‘contrast’

This is a (hacky) fix (for python3), which grabs the latest files and uses them instead of what was installed:

cd /usr/local/lib/python3.7/dist-packages
sudo mkdir old
sudo mv gfxhat old
sudo git clone https://github.com/pimoroni/gfx-hat
sudo cp -r gfx-hat/library/gfxhat gfxhat

Pimoroni have been alerted, the thread is here: https://forums.pimoroni.com/t/gfx-hat-contrast-problems/11610

  1. Install the VLC libary
sudo pip3 install python-vlc
    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    Collecting python-vlc
      Downloading https://files.pythonhosted.org/packages/e3/8e/1d0f30c4f8741f09014f961d49c55b1590d546e2199a54f396d288e978dd/python_vlc-3.0.11115-py3-none-any.whl (80kB)
        100% |████████████████████████████████| 81kB 429kB/s 
    Installing collected packages: python-vlc
    Successfully installed python-vlc-3.0.11115
  1. run main.py to start using it. Mappings of commands to buttons are therein.
    There are commands to play channels, play/pause them and shutdown the pi in this file too.

soma_fm_pi_radio's People

Contributors

fr1550n avatar

Watchers

James Cloos avatar  avatar

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.