@angeliKITTYx I had a little trouble with the google calender stuff because at first I didn’t realize I had to get a google developer account and then I could setup the api’s. Every once in a while, especially if my mirror has been unplugged for 24 hours, I have to do the authorize again. Also I have to first delete the token file that gets created. The authorize script won’t over write the token. Maybe look at the instructions for the MMM-GoogleCalendar might help you? The two modules seem very similar.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-GoogleTasks errors out randomly
-
RE: Black Screen when news doesnt fetch
@uok825 Is it the default newsfeed module that is causing this or a different third party newsfeed module?
-
RE: MMM-OpenWeatherMapForecast Doesn't display imperial units
@JohnGalt have you tried MMM-OpenWeatherForecast instead? It seems to work better for me adn it uses the OpenWeather Map api too.
-
RE: MMM-Pir relay
@grssll is your relay already wired to your pi? And does it already work when you use the command line to change the state of the GPIO pin?
-
RE: bluetooth audio meta data
@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.
-
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.
-
RE: Using serial (RS232) connection to control TV
@rubberduck that should be totally doable with python. And the mirror and python can be done. There are several module that use python scripts. Are you wanting to just turn the tv on and off?
your tv will need to be able to restart on the same hdmi port you have your video from your pi feeding into. just a thought.
If you want to just keep the tv on, but blacken the screen, your tv might have a screen saver or something … some do.
-
RE: MMM-OneButton one button two defineable actions
@BKeyport If you want to spin your own, take a look at Sams MMM-PythonPrint example he has posted in these forums. It can run any python script with little tweaking. It sure helped me get off the ground with this.
I’m going to flesh my OneButtons out to do many actions with just one button (or many actions with several buttons) and add the tv cec or lcd commands to sleep and wake up. And shutdown and Reboot. It can send any notification that is useful to the Mirror or modules running. I am thinking of having it do something fun like if double clicked fast… pop up a screaming halloween face… My brother likes to try to “Break” thinks. I want to give him a surprise.
I think it’s possible to do one button with maybe 6 or seven different actions. I’ve got four working so far and when I get it where I think it’s stable, I’ll put it out on git hub for some feedback.
-
MMM-OneButton one button two defineable actions
This is my first working module. I wanted to make one button do more than one thing. This module uses a python script to poll the button state. The button can be pressed and released or it can be held down for a long period of approx 4 seconds.
I am currently using MMM-OneButton with the MMM-Pages module to PAGE_INCREMENT the pages upon a button press.
And to ARTICLE_NEXT for the default news module when the button is held.I have to give Sam kudo for all his examples he has posted on this forum. He’s really helped me a lot.
I plan on making it even more useful by adding in the obligatory screen on/off. reboot pi, etc. But I am excited that I’m finally figuring this stuff out enough to actually make a working module.
If you want to try it out and give me some feedback, it’s located at
https://github.com/Kayakbabe/MMM-OneButton -
RE: FireTV or Android TV as MM client
@OldSunGuy Thats really cool! I’ll have to check that device out.
-
RE: MMM-PythonPrint customisation
@sdetweil I’m looking at the configuration variable repetative and trying to figure out what it is for.
is this correct logic for true and false?
repetative: true
if your python script runs in a loop forever by itself so the spawn in node helper will just keep its connection to the python script openrepetative: false
if your python script runs one time, and you need node_helper to keep spawning over and over so you can get the info from the python script over and over -
RE: FireTV or Android TV as MM client
@OldSunGuy That’s because the browser software itself built into older TV’s and (even firestick, chromecast, appletv if they aren’t ever updated by their owners ) etc might not be compliant with the full newer html spec.
You also can find the situation where a web browser app on one of those older devices might have newer software insdie the app so it can display a website, that the builtin browser of the tv itself can’t display.
If that old TV/app/computer is running a really old browser software, it isn’t going to be able to execute the newer javascript versions.
So using the built in browser on older equipment is a crap shoot at best - especially with older televisions and old hardware that can’t be updated.
In those cases “casting” the output from the hardware running the serverside and clientside software over to the television is the only way to get it on the tv. The quality of the “casting” device is going to matter a LOT. Hardwiring with direct cables is always going to be the best.
But screen casting is really good now days. That said if you device only casts 720 and you have a 4k computer output and a 4k monitor it will look like crap. The screencast device can’t push the 4k info through it and will downgrade the signal to 720.
If you get a casting setup that matches the computer and monitor, it will look a lot better.My old screen cast device looked horrible on my new 4k tv. So I gave it away and got a newer J5create screencast device that matches the output display on my pi and the capabilities of my best tv.
I can cast anything I want to the tv and it looks good.many Chromecast /roku/hulu type devices are capable of recieving… but you might need a dongle added to your computer to send to it. I don’t use chromecast,firestick, etc.
Becuase I run the same software locally on my laptop and I just use the J5create to send the screen to my tv.