@jedilkeme Are you playing audio on your mirror? Or just including it as an output source as if it were a player along with other speakers and wanting it to display? If you are just playing to the mirror with a speaker in it, maybe switch hardware to something like this… ScoutMakes FM Radio Board - STEMMA QT / Qwiic? there is lots of example code. And the data can be obtained over i2c . The you can use a notifications module like wishmaster270 suggests.
Read the statement by Michael Teeuw here.
Posts
-
RE: bluetooth audio meta data
-
RE: MMM-Pir relay
@grssll Does your led strip have it’s own remote control? is it rf or blue tooth? or wi-fi? Could you emulate that in your pi on the command line? It is possible to have the module in the pi execute a command line script , like the monitor on and off command.
Depending on how your led strip is controlled, Maybe you could use IFTTT. Lots of led light brands will work with it, if the lights are wi-fi based.
Just suggesting some ideas.
-
RE: bluetooth audio meta data
@jedilkeme maybe looking for RDS or RBDS decoding will help. One standard is used in North America (don’t remember which the other is European).
There are some fm receiver projects for the pi that discuss getting the meta data. https://hackaday.com/2021/09/07/an-inexpensive-fm-receiver-for-the-raspberry-pi/ could maybe lead you to info you need. Though I am not sure if bluetooth audio is encoded into the audio stream in the same way as FM. It likely is. But again, maybe not. -
RE: MMM-Pir Issue
@Feedy88 said in MMM-Pir Issue:
localhost to 0.0.0.0
localhost is normally the same as 127.0.0.1 for most computers. Why are you wanting it to be 0.0.0.0?
-
MMM-Pinfo problem on Rpi5
I got the Vilros V4 mirror so I didn’t have to source stuff. And I want to know the impact of the construction and venting limitations on the new RaspberryPi 5 that I have. I have installed MMM-Pinfo and having problems. I think that the rpi5 is too fast for async to get the data before the pi trying to use it. Or something like that. I tried out some of the other cpu stats modules and they all have problems. But they are pretty old too. MMM-Pinfo works on my rpi4. And all my other modules are displaying fine. I’ve disabled the other modules to make sure they weren’t a problem and I think it comes down to the node_helper.js in the MMM-Pinfo. Or the package systeminformation being updated broke something. But then I think the error would be different. For sure nothing is coming back from systeminfomation. I only see the loading messages.
here is what is in my pm2 logs:
at new Promise (<anonymous>:null:null) 0|MagicMir | at Class.getCPUInfo (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:167:16) 0|MagicMir | at Class.collectDynamicInfo (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:82:20) 0|MagicMir | at Class.scheduler (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:69:9) 0|MagicMir | 0|MagicMir | (Use `electron --trace-warnings ...` to show where the warning was created) 0|MagicMir | [25.01.2024 23:15.36.946] [ERROR] (node:7179) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
And this forum topic made me think my pi is too fast and so maybe Pinfo needs working over maybe sothe script can wait on the answer from the systeminformation?
https://forum.magicmirror.builders/topic/15539/async-functions-inside-node_helper-js/5
i’m not sure quite how to start, but I will try if you all think that is what is probably going on. I’m not quite a newbie but haven’t touched this since last year and I’m definitely no expert.
-
RE: Two color font?
@ember1205 look at the css for text . You want Shadow . It can help with this problem a lot. Won’t make it go away. But help a lot.
-
RE: FireTV or Android TV as MM client
@korey_sed Another css tip is not to use “fixed” sizes for things like fonts and widths of div containers or images.
I prefer to use units which are relative in size like em and vh and vw which are relative size units. so 1em on a phone versus 1em on a high rez computer screen will be different sizes relative to the media display. better than pixels which are a fixed size and do not scale with the display.
For instance, I use vw and vh for images, because i actually move my pi around to different size monitors. vw is view height and vh is view width. So for my module that shows an random image (that can change from portrait or landscaped and size everyday), I set the css up for max-width: 50vw which translates to 50% of the view port size and 30vh. (vh is view height.) That way an image in that module will never be bigger than 50% of the width or 30% height of the screen. I find relative sizing really useful for websites that have to support a lot of different devices looking at it. No beans about it, MagicMirror is definitely a website.
You might want to google about relative css units. here is a links to get you started if you want to try it.
-
RE: Using serial (RS232) connection to control TV
@sdetweil even better! Then it’ll run on many more operating systems!
-
RE: Using serial (RS232) connection to control TV
@kayakbabe if you can get it working with python, I’m thinking maybe the python package pyserial would be enought.