Skip to content
/ pyerir Public

Simple fullscreen player for m3u files. It can get the IR code from IR remote control.

License

Notifications You must be signed in to change notification settings

freseco/pyerir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYERIR -> Do not use this branch!, go to: Win_get_IR_codes

About

Simple fullscreen player for m3u files(IPTV:tv:). It works in Raspberry pi 4 with Python3.9. It can get the IR code from (any?) IR remote control.

RaspberryPI+Python+wxpython+VLC+IR_Receiver

This project is a small example of wxpython for the GUI, threading for getting the IR codes, using wraper vlc library, gpio pins and the m3u_parser library for parsing the m3u files and pyttsx3, a text-to-speech conversion library in Python.

It has two types of notifications: wx.adv(OS notification) and popup windows.

Enjoy it and I would like to know if you have used it, thanks.

*Not testing with other python versions.

Features

  • Play channels in fullscreen, doing streaming from url in a m3u file.
  • Changes volumen.
  • Shows list of the channels.
  • Speech some information.
  • Works in raspberry 4.

First step: Installation of dependencies

$ pip install requirements.txt 

Setting IR received(HX1838) in Raspberry pi.

The IR receiver

Start the pigpio daemon

Install the pigpiod libraries

$ sudo pigpiod

pigpiod libraries

Using

$ python[3.9] pyerir.py [-v | --version]  [<m3u_file_name>] [--debug]

Parameters:

  • [-v | --version] shows script version.
  • [m3u_file_name] file to get the channels.
  • [--debug] shows debug information in console.

*by default, it will try to open tdt.m3u

Remote control

Normal mode

Normal mode

List channels mode

List menu channels

Development status:rescue_worker_helmet:

Pyerir is beta software, but it can be used if no error prevents you:roll_eyes:.

¡¡Work on the branch Win_get_IR_codes, is where last source code version is!!

Necessary:

  • Work on raspberry pi.
  • Visual studio code.
  • Python installed.
  • Vlc installed.
  • Pigpiod libraries installed.
  • IR received connected to the raspberry with remote control.

VLC in python

Install vlc if your raspberry does not have:construction_worker_woman:.

sudo apt update && sudo apt install vlc -y

VLC module in Python

TODO:pencil2::

  • Memorize favorite channels.
  • Up⬆️ and down⬇️ buttons to change the volume(Normal mode).
  • Right➡️ and left⬅️ buttons to change the channel(Normal mode).
  • Testing in other platforms.
  • Read configuration file(config.py): favorite channels, url or path of m3u file.(Done)
  • Get channels information from Xtream-Codes IPTV servers.
  • Shows channel's logo if it exists.
  • Option to add IR codes from a new remote cotrol with a parameter in the script..(remoteIR.py->remoteIR.json)
  • Splass screen.
  • Source code refactoring
  • Facilitate the installation of the script. Create an installer?
  • Improve of readme file.
  • Transparencies in windows menu.
  • Create logo of the app.
  • Add opcions of mute and poweroff in remote control when it is in list channel mode.
  • Show menu for list of channels group.
  • Testing script in raspberry pi 3.

⚠️Error list:

  • No exit well when push #
  • Key only when windows channel o volumen are shown.

Debugging:construction_worker:

$ python[3.9] pyerir.py [--debug]

Discussion:speak_no_evil:

Our main forum for discussion is the project's GitHub issue tracker. This is the right place to start a discussion of any of the above or most any other topic concerning the project.

Contributing:sos:

Help in testing, development, documentation and other tasks is highly appreciated and useful to the project.

Support:hearts:

Want to help me out? While donations aren't required, they are greatly appreciated and and speed up the development!

"Buy Me A Coffee"

THANK YOU!

About

Simple fullscreen player for m3u files. It can get the IR code from IR remote control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published