@aunrea
What is happening is that npm can’t find config:check in /home/pi/
You have to move into the Magicmirror folder before running
npm run config:check
South Texas Chick who likes to drink margaritas, float on the river, ride horses, ranch (yes I can work cattle), leave my Christmas lights up all year, adopt tech early before it's barely out of beta, build things, make things, 3d print things, laser cut and etch things, tinker with things, hack things, solder things, weave, sew, knit (only on machines) and more. If all that makes me a Maker then that is what I am. Oh, and I like refurbing 100+ year old circular sock knitting machines. And making socks, lots of socks.
@aunrea
What is happening is that npm can’t find config:check in /home/pi/
You have to move into the Magicmirror folder before running
npm run config:check
@karsten13 that is exactly what I did. I like having it outside the config.js so the config.js doesn’t grow to be a huge file. And so if I mess up when I add to the compliments.json, I won’t break the entire mirror.
I’m adding a whole lot of birthdays and lots of family specific dates. I like having the remoteFile setting so I can keep this data out of config.js.
Thank you for all you have done! I am a newbie to MagicMirror (two months since I started playing with it and figuring it out) and I have installed several of your modules. I’m learning so much about node.js and javascript by tweaking their configurations and I’m impressed. I just found this note from you saying you were going to move on to new things as life has been changing so much for you.
I found MM and your modules because I was creating change in my life. Good LUCK and may you find interesting challenges and satisfaction whatever you end up doing.
And… Thank you!
p.s. I hope you do lurk from time to time and check in on us. You will be missed for sure.
@Manu85 I do not understand what you wrote. I think you want to change the size of the content you are grabbing from a different website.
MMM-SmartWebDisplay creates an iframe and shows a webpage inside that iframe.
Because you are displaying the contents of your link inside an iframe, you are stuck with whatever is coded in that frame. You can’t change what is in it. The web page you chose contents are set to a fixed size by the html code that creates that page.
The width and height in the config.js only affect the size of the iframe that you created with the module. Those values can not affect what is inside the iframe that are hosted on a different server.
Perhaps you can find a different source for your content? If you found something that isn’t set to a fixed size then it may display relative to the size of the iframe you build locally with the module.
This is by design of the www. It prevents hijacking content. If you want to read about it, it’s called same-domain policy.
Sam,
Thank you for this MMM-PythonPrint. More than the sample module this really helped me follow how to wrap my head around how the script.js node_helper and anything else work together. The way you worded the variables and the input and output text really made sense and made it easy to follow what is happening. I am learning a lot. Again, Thank you.
Kelly
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
@Manu85 Youtube allows you to form the url requesting the video in a way that tells YouTube what size you want the YouTube player to be. The YouTube developers do that purposely as they make money from ads they show you.
Unfortunately the isstracker.spaceflight.esa.int website doesn’t allow you to do that.
Every website developer makes choices for their own website. We may not like what they choose.
@JohnGalt
I see you got your module choice working.
jclarke0000 is the one I’m using.
@Mykle1 Yes you are a F****** genius! Way to go Pops!
I haven’t coded in python since my first attempt at a magic mirror. In the past couple of months I’ve built 2, a working one for my Dad and now another for me. First I decided that I needed to rewrite the MMM-Flick module because it was crashing my mirror. So, I dove into that. I abandoned the Flick because it really isn’t very reliable and am replacing that with buttons that turn the mirror display on and off and a small adafruit gesture sensor for changing screens. Python was a must. I made a mess but a working mess at that.
Last week, I decided I liked all of Erik Flowers weather icons and that the default weather just didn’t use enough of them. Thus I needed to change the default weather module so it uses the openweathermap weather.id instead of the weather.icon. I’ve been working intermittently for a week and being super frustrated. Today I got the brilliant idea (DUH!) to use a syntax checker on it. Python syntax check… BOOM! DUH! I was putting python in a javascript. DUH! It doesn’t work. DUH!
Just had to share that. 'Cause I laughed so hard my soda squirted through my nose. So now I have a mess of code to clean up and a wet puddle on my desk.
I’m getting a cleaning rag after I hug myself in sympathy pains and pat myself on the back for figuring it out. If I could only figure out how to get 7 evenings of my life back now…
@Hanimani Why not take the keyboard from your pc and plug it into your raspbery pi? use the mouse too.
The Pi5 has new GPIO hardware. It is not compatible with software written for earlier Pi models.
So look at what gpio library is being called by the modules you are wanting to use.
I’ve been rewriting my own code to use gpiozero .
gpiozero works and isrecommend by raspberry pi foundation and works on older pis too.
Lgpio works on rpi5
Gpiod works on rpi5
Pigpio WILL NOT WORK
RPi.GIPO WILL NOT WORK
I haven’t tried rpi-lgpio which supposed to be a drop in replacement for rpi.gpio.
If you use YouTube, it is possible.
If you use isstracker.spaceflight.esa.int, it is not possible.
@Manu85 Youtube allows you to form the url requesting the video in a way that tells YouTube what size you want the YouTube player to be. The YouTube developers do that purposely as they make money from ads they show you.
Unfortunately the isstracker.spaceflight.esa.int website doesn’t allow you to do that.
Every website developer makes choices for their own website. We may not like what they choose.
@Manu85 I do not understand what you wrote. I think you want to change the size of the content you are grabbing from a different website.
MMM-SmartWebDisplay creates an iframe and shows a webpage inside that iframe.
Because you are displaying the contents of your link inside an iframe, you are stuck with whatever is coded in that frame. You can’t change what is in it. The web page you chose contents are set to a fixed size by the html code that creates that page.
The width and height in the config.js only affect the size of the iframe that you created with the module. Those values can not affect what is inside the iframe that are hosted on a different server.
Perhaps you can find a different source for your content? If you found something that isn’t set to a fixed size then it may display relative to the size of the iframe you build locally with the module.
This is by design of the www. It prevents hijacking content. If you want to read about it, it’s called same-domain policy.
@ludoRaspberry said in changement couleur d'une lettre d'un title:
bonjour a tous ; je suis débutant dans la programmation js
j’aimerais changer la couleur d’une lettre sur le “title cNews”
le c en noir et News en rouge
comment puis je faire??
CSS controls the colors and format of the text. It is not the same as js. CSS is a very large topic but the best way to learn is to play with it. You will use the file custom.css to enter your changes. It will override any other css setup by the default MagicMirror.
This post has a lot of information: https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works?_=1708249746950
@JohnGalt
I see you got your module choice working.
jclarke0000 is the one I’m using.
@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.
@uok825 Is it the default newsfeed module that is causing this or a different third party newsfeed module?
@JohnGalt have you tried MMM-OpenWeatherForecast instead? It seems to work better for me adn it uses the OpenWeather Map api too.