@Vauxdvihl openweathermap discontinued their 2.5 api. so the url in the module might be wrong. Check the configuration possibilities for your module and see if you can choose the 3.0 api.
Read the statement by Michael Teeuw here.
kayakbabe
@kayakbabe
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.
Best posts made by kayakbabe
-
RE: MMM-OpenWeatherForecast Error 401
-
RE: Compliments.json absolute or relative and proper path
@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.
-
RE: [WANTED] new ownership of modules.
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.
-
RE: Hello everyone, I have a module resizing problem
@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.
-
RE: Black Screen after installing fonts-noto-color-emoji
@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 -
RE: MMM-PythonPrint customisation
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
-
RE: when to use init , start, loaded of node helper
@sdetweil your explanations helped a lot. I debugged using a timer in the node_helper to fake detecting different types of button press and my module will send magic mirror notifications. (So, if I can detect the actual physical events I’m pretty sure my script will work.
I think it’s the node package I’m trying to use that is the problem.
I even got so far as to figure out that a dependency of the package I want to used wasn’t compiled for Node version 16. which i what I’ve got running on my Mirror pi. I figured out it is c++ and even figured out how to recompile it with node-gyp and make. so now I do not get any errors in the pm2 error log. but now instead of a black screen electron, I don’t get electron opening a window at all. I check the PM2 logs. There are no errors in the mm-error log. It is blank.
However, the pm2 mm-out log is being added to over and over, so electron and MagicMirror are running. and the error keeps being repeated in the mm-out log.The error which i’ve googled and gotten no working result for is:
ERROR Error: Cannot find module 'bindings'.
Yet there is a bindings folder in the node_helper folder.
Is there a way to find out what path is being used to try to find “bindings”.Or maybe the package I’m trying to use just is too much of a mess to keep screwing with. It sure seems like it would be super useful. I wanted to add a few physcial intermittant buttons and be able to assign multiple uses to them. Funny thing is… it works great when I run the test script in the command line using node.
https://github.com/bnielsen1965/rpi-gpio-buttons
By the way, this learning nodejs and module development is not all that easy.
-
RE: Hello everyone, I have a module resizing problem
@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.
-
RE: MMM-OpenWeatherMapForecast Doesn't display imperial units
@JohnGalt
I see you got your module choice working.
jclarke0000 is the one I’m using. -
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
Latest posts made by kayakbabe
-
RE: MMM-OpenWeatherForecast Error 401
@Vauxdvihl openweathermap discontinued their 2.5 api. so the url in the module might be wrong. Check the configuration possibilities for your module and see if you can choose the 3.0 api.
-
RE: UPDATE: Replaced my PIR-Sensor with a Doppler Microwave Sensor.
@Lipax try dialing down the sensitivity, it’s probably picking up dust or something small you can’t see.
-
RE: With Sam's Backup and Restore script I need help
@sdetweil
what was happening is that no matter if i used the full path or just the folder name like this
-b /home/pi/MMbackup2
-b MMbackup2
the script always used it’s own folder name of MM_backup.when i tried to run from your repository,
Illegal option '- ’I tried a local copy pulled a fresh copy from your GitHub and tried again
using -s MagicMirror
and -b MMbackup3bash -c ./mm_backup.sh -p -b MMbackup3 -r MMbackup2 -u Kayakbabe -e user@email.com -m "second backup after build finished "
the backup folder was still created MM_backup and not MMbackup3.
Then I tried removing the -p option and I get this
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_backup.sh)” -b MMbackup2 -r MMbackup2 -u Kayakbabe -e email@mydomain.com -m “first backup after build finished (or whatever)”
environment: line 155: [: too many arguments
checking for backup folder MMbackup2
folder doesn’t exist, creating backup folder /home/kelly/MMbackup2
backup folder is /home/kelly/MMbackup2
username specified with -u temp doesn’t match the user in the github repo MMbackup2, abortingNote i used my correct email, just don’t want it out here to get scraped. And the name and email DO match my github.
I run git remote-v in the folder it created (MM_backup) and there is no git . -
RE: Round MagicMirror
I have to tell you that I am awed! And really considering making a round MM now. It is fabulous!
-
RE: With Sam's Backup and Restore script I need help
I’ll put this in my own words to see if I’m understanding what I am to do.
Depending on how I create my repository on github will determine my next step.
- Create respository on GitHub (private is most preferable since I might have private info in my magic mirror config file and I don’t want that public via GitHub).
Note: This process is easier if you create an empty GitHub Repository.
-
If I created an empty GitHub Repsitory:
2.a.Run the backupscript using the flags on the backup script for repository name, source folder, backup destination folder, github userid, etc.
2.b. from the backup desitnation folder run the command
git push -
if I created GitHub repository with a readme:
then I’ve made a big mess and shouldn’t have done that. So delete the local folder and github repository and start over.
Results
I ran thisbash -c ./mm_backup.sh -s /home/pi/MagicMirror -b /home/pi/MMbackup2 -r https://github.com/Kayakbabe/MMbackup2.git -u Kayakbabe -e email@mydomain.com -m 5thTry
And got this:
folder created with name /home/MM_backup
files created inside /home/MM_backup
no folder named MMbackup2I also tried with -b /home/pi/MMbackup2
and still get home/pi/MM_backup createdi don’t have a folder named MMbackup2 on my pi at all.
I then manually created /home/pi/MMbackup2
ran my command again and still no files were placed in MMbackup2. i tried both =b /home/pi/MMbackup2 and -b MMbackup2 to no avail.I noticed .git was created in the MM_backup folder along with the files the script created.
I ran git remote -v and get no output. (Just to make sure, i went to a diff local git folder and ran git remote -v and it shows the origins for fetch and pull.) so I think the .git being created in the MM_backup folder isn’t correct.
My questions are:
What is wrong with my flags that my backup folder isn’t being create with the folder name I chose?
Was the backup script supposed to do all the git stuff for me, like the git remote add origin and add files and set the branch and message?
So that, all I am supposed to have to run git push?Or, am i supposed to now do all the following stuff?
git remote add origin https://github.com/<USER>/<repo>.git git branch -M main git push -u origin main
-
RE: Where have I seen this??
@ankonaskiff17 I have to agree that DAKBOARD is super lame. I read about MM a long time ago and found DAKBOARD becuase of my MM research. I actually looked at it for about a hour and thought it was lame too. MagicMirror is so customizable and I am a tinkerer. I like to change up things. I like to fix things and not wait on someone else to update when some api changes. So, I decided to tackle MagicMirror. I’ve learned a lot and this is a great community.
-
With Sam's Backup and Restore script I need help
I’ve read through this topic and several others about backing up magic mirror especially this one
Re: So I have a question about backupI’m trying to use Sam’s backup and restore scripts.
I actually have it making files into a folder named MM_backup. But now I think my problem is that I don’t understand how git works all that well yet. I’ve only used it in a very simplistic way until now.Should my repository on GitHub have the same name as my local MM_backup folder? I ask because what is happening is that when I try to connect my local folder to the repository I made on GitHub, I get error messages about a repository inside a repository.
I made a repository on GitHub then went to my local MM_backup and git cloned that repository into MM_backup.
Then I ran the backup script making sure I specified the correct repository name. Then i try to git add the new files. GitHub is having none of it. says i have a repository inside a repository.SOOO. I thought aHA! i will change the backup folder path in the bash script. I deleted all the folders i made.
Created a folder at /home/reponame
Ran the script using the flag -b /home/reponamebut the script doesn’t put the files in /home/reponame. The script creates a folder MM_backup and puts the files it made in there.
So perhaps that is a bug?I don’t understand what is happening.
And i can’t push the files the script made to the repository because i somehow made a repository inside a repository.I manually added the files to my repository on Github in the hopes that they’ll be useful at some point.
I’d really like to make this work. But I need help.
-
RE: Where have I seen this??
@ankonaskiff17 I think that is very cool. Vilros has a Magic Mirror kit too. This one looks more complete. Waveshare has some nice displays. I think the more people getting into and using the MagicMirror software the longer it will continue. This is a good thing for all of us. They are linking to our MagicMirror repository and giving good instructions for setting it up and modules too.
Drawing people here will help us all and ensure MM goes into the future.
-
RE: Refresh Magic Mirror after custom css changes
@Hanimani Why not take the keyboard from your pc and plug it into your raspbery pi? use the mouse too.