Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-MPlayer
@myfingersarecold said in MMM-MPlayer:
I don’t feel like actually uploading it to github, but here is the source code, and an example config.
I took the liberty to take the provided code, make changes to it and make it available as a public repository:
https://github.com/evroom/MMM-MPlayer
My own main purpose for using it, is to setup a new Raspberry Pi (Raspberry Pi 4 Model B), with Debian 12 (bookworm) and the latest MM version (2.30.0).
Replacing a Pi 3b 32-bit Debian 10 buster setup where OMXPlayer is still working.
I will be using a single window with a single RTSP stream (for an Axis Network Camera).
Nothing fancy.Best regards,
E.J.
-
RE: MMM-MPlayer
@evroom said in MMM-MPlayer:
Here two questions:
1/ What does
streamIntervaldo ?2/ Is it possible to rotate the output ?
I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.To answer my own questions:
1/ Cycles the streams defined in window1 and/or window2 after the provided interval (in milliseconds).
Where applicable, the streams will start from the beginning again (for example for mp4 videos).2/ Yes, this is possible using the
-vf rotate=[0-3]option and adjusting thewindowPositionvalues. -
RE: MMM-MPlayer
@myfingersarecold Nice! It would be cool if you maybe reconsidered and uploaded it to GitHub 👩💻
In order to encourage and to help you a bit, here a README.md:
# MMM-MPlayer A MagicMirror module that uses MPlayer to display rtsp streams ## Project Status This module is working, but still under development. ## Installation of mplayer ### Verify if mplayer is already installed ```shell $ which mplayer /usr/bin/mplayerInstall mplayer (when not installed yet)
$ sudo apt install -y mplayerInstallation of the MM module
-
In your terminal, change to your Magic Mirror module directory
cd ~/MagicMirror/modules -
Clone this repository
git clone https://github.com/myfingersarecold/MMM-MPlayer -
Make changes to your
config.jsfile.
Config Example
Edit the file
~/MagicMirror/config/config.jsto add or modify the module.{ module: 'MMM-MPlayer', disabled: false, position: "top_left", header: "MPlayer", config: { useTwoWindows: true, layout: 'row', windowSize: { width: 525, height: 295 }, windowPosition: { x: 12, y: 575 }, streamInterval: 30000, streams: { window1: [ 'something_else.mp4', 'something.mp4' ], window2: [ 'rtsp://foo', 'rtsp://bar', ] } } },Configuration Options
Option Description Default useTwoWindowsUse two windows true layoutCan be ‘row’ or ‘column’ row windowSizeWindow size for both windows { width: 525, height: 295 } windowPositionPosition of the first window (window1)
[window2 is either 5px below or to the right of this window, depending on layout]{ x: 12, y: 575 } streamInterval30000 streamswindow1 and / or window2 streams [ mp4 , rtsp ] Test environment
This procedure has been tested on:
- Raspberry Pi 4 Model B Rev 1.5
- Debian GNU/Linux 12 (bookworm)
- Magic Mirror version: 2.30.0
Contributions
Code provided by user ‘myfingersarecold’.
https://forum.magicmirror.builders/user/myfingersarecold -
-
RE: MMM-MPlayer
Here two questions:
1/ What does
streamIntervaldo ?2/ Is it possible to rotate the output ?
I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.Thanks in advance.
-
RE: MMM-MPlayer
Hi there !
This is most probably the module I was most anticipating for and that will enable me to finally go from ‘buster’ to ‘bookworm’.
Finally a worthy and easy follow-up for OMXPlayer.I am still testing, but it looks very promising.
Thanks a lot !
E.J.
PS I will have a few question later on.
-
MMM-PublicTransportHafas - Loading - undefined
Hi,
Besides the calendar module, this module is the most used module in our household. Especially my wife has become quite dependent on it.
Thank you to the developer and the maintainer.But, since a couple weeks I get this “Loading - undefined” message, which is quite annoying.
It ‘restores’ itself automatically, so that is a good thing.I opened an issue for it:
https://github.com/KristjanESPERANTO/MMM-PublicTransportHafas/issues/185My used end-point is db (Deutsche Bahn).
What I would like to know is, if there are more users of this module and if they experience the same ??
Thanks in advance,
E.J.
-
RE: MMM-Hoymiles-Wifi
Just FYI, I declare(d) more parameters than really necessary and actually used, in order to allow for more counters to display.
For example a gauge for each panel; more details on the energy production of each panel; etc.
I will make a remark about this in the code. -
RE: MMM-Hoymiles-Wifi
First of all, those are details I need to have a look at now that the basis is there.
Perhaps there are other values and queries that make sense and that I can use. Like dtu_power and dtu_daily_energy.
Also saving some data to not have counters showing 0 when the invertor is inactive needs to be implemented.
During testing I found out that the pv_data for port 1 and 2 were different sometimes and that is why I needed to add those checks.
And they can never hurt. Better to be safe than sorry.
Furthermore, when you have only 1 panel connected, it is needed anyway. -
RE: MMM-Hoymiles-Wifi
Christian,
This is on the TODO list:
change pv_data to dtu date for combined output of inverterBut I do not really understand what you mean by it.
Do you mean combined output of 2 panels iso just 1 ?Please elaborate.
E.J.