PYERIR -> Do not use this branch!, go to: Win_get_IR_codes
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.
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.
- 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.
$ pip install requirements.txt
$ sudo pigpiod
$ 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
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.
Install vlc if your raspberry does not have:construction_worker_woman:.
sudo apt update && sudo apt install vlc -y
- 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.
- No exit well when push #
- Key only when windows channel o volumen are shown.
$ python[3.9] pyerir.py [--debug]
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.
Help in testing, development, documentation and other tasks is highly appreciated and useful to the project.
Want to help me out? While donations aren't required, they are greatly appreciated and and speed up the development!