You’re missing comma after position: ‘bottom_left’ on MMM-RemoteControl.
Can run the following from your MagicMirror root folder to check your config:
npm run config:check
You’re missing comma after position: ‘bottom_left’ on MMM-RemoteControl.
Can run the following from your MagicMirror root folder to check your config:
npm run config:check
When the news gets boring, spice it up with a little pirate speak. :-) Based off of the MMM-PNews module I found by @cowboysdude , this module translates all the titles and descriptions to pirate speak.
Download :
[card:buzzkc/MMM-PirateSpeakNews]
@cowboysdude
When working in the IDE, remember that there are locations, usually a TestHub and Home, I have an additional smartthings in my shop, so you need to select the correct location before creating new device handlers and smart apps.
I’d start with deviceHandlers. I typically find the code on github for the device I’m looking to implement a handler for, then on the API IDE I’ll create the new handler from code (see: https://www.thesmartesthouse.com/blogs/the-smartest-blog/how-to-install-a-custom-device-handler-in-smartthings). Once you’ve published the handler for yourself, you can either setup a new device or if you want to modify a device (such as changing a door sensor, that has wire contacts, to act as a smoke alarm) you update it’s Type field to be the new handler. In your mobile app. you should see it change from a door sensor to a smoke sensor.
There are handlers that work in conjunction with smart apps also. Typically I copy the code for the new smart app the same way, and publish them to work for myself.
So as far as writing my first MM module, I was looking at this node library (https://github.com/hijha/smartthings-node) to act as the client for getting device data from ST. It requires a key to be generated. That key you will generate from the token generation page here: https://account.smartthings.com/tokens
I was hoping to get this created this weekend and play with it, but life got in the way, so hopefully I’ll get something working this week.
Yup, learning that. I had used someone else’s example and determined that wasn’t the correct way. I figured it’s worth admitting one’s mistakes as well as accomplishments. ;-)
I saw that Marvel has an api and I’m thinking about doing a module to display random comic character information and pics for my grandson.
Just bookmarking for when I have time.
Do you have an entry in your config for dtoverlay?
#Enable the Open GL driver to decrease Electron’s CPU usage
dtoverlay=vc4-fkms-v3d
if so, look in the following file for a rotate entry. It and the rotate added to config.txt may be conflicting.
~/.config/lxsession/LXDE-pi/autostart
#to rotate display, to rotate left, use left.
@xrandr --output HDMI-1 --rotate right
I’m finally starting to make some progress on this. I’ve been doing development in a docker instance and found editing files while the container is running corrupts files. :-)
So I have it connecting and bringing back device information at this point. I still need to parse that info. I’m working through the steps get all the info in the correct order to model it (get device ids>>get device components>>get device capabilities>>statuses etc.)
I do have two hubs and found that it brings back devices for all hubs, so I’ll need to get the hub info too.
I was just finishing up a new module and noticed other modules I had loaded weren’t looking quite right. Turns out my new module had a .title class that was adjusting the font size. Upon inspection in dev console the .title for other modules that had loaded prior to my new module were using my new module’s .title class.
Just thought it was worth mentioning that the custom css for modules can affect other modules in the event someone else is seeing css issues if your using common class names.
This is a module that displays a section to use for capturing touch events to navigate forward/backwards through pages when using MMM-Pages. A home icon navigates back to the first page. I’m using MagicMirror on a small 3.5" touch screen that displays one module at a time and wanted a way to easily change pages without additional sensors.
[card:buzzkc/MMM-TouchSwipe]
Really nice looking mirror! Love the Home automation map.
Run pm2 list to get your instance name
pm2 list
Run pm2 logs instanceNameHere to get your error logs.
pm2 logs mm
Let’s see if there are any out of memory errors or a module throwing an error.
Had that happen just last week, did a backup of the card using win32diskimager after it was restored.
I’m looking at setting up a read-only os to play around with and configure myself… https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79
Try using the GL driver to rotate…
https://github.com/michmich/magicmirror/wiki/configuring-the-raspberry-pi#enable-the-open-gl-driver-to-decrease-electrons-cpu-usage
I’ll post my config.txt and autostart settings tonight, don’t have access to them right now.
I believe it’s the Maps Javascript API>>Directions API
@Doogain
Your config entry should look more like the one in the Readme.md page of the module (https://github.com/jclarke0000/MMM-MyCommute)
Also, be sure you followed all of the installation notes in the readme.
{
module: 'MMM-MyCommute',
position: 'top_left',
config: {
apikey: 'API_KEY_FROM_GOOGLE',
origin: '65 Front St W, Toronto, ON M5J 1E6',
startTime: '00:00',
endTime: '23:59',
hideDays: [0,6],
destinations: [
{
destination: '14 Duncan St Toronto, ON M5H 3G8',
label: 'Air Canada Centre',
mode: 'walking',
color: '#82E5AA'
},
{
destination: '317 Dundas St W, Toronto, ON M5T 1G4',
label: 'Art Gallery of Ontario',
mode: 'transit'
},
{
destination: '55 Mill St, Toronto, ON M5A 3C4',
label: 'Distillery District',
mode: 'bicycling'
},
{
destination: '6301 Silver Dart Dr, Mississauga, ON L5P 1B2',
label: 'Pearson Airport',
avoid: 'tolls'
}
]
}
}
@Doogain Did you add the module into the MagicMirror/config/config.js?
I’m working on that same display. I’m mostly changing all the default module regions to center_middle. I’m running MMM-pages to show only one module at a time in that area. I have a navigation module I wrote for that screen to navigate prev/next and a home button to go to the default (first loaded module in MMM-Page modules config) module. The navigation module is on the bottom_bar region.
Touch Swipe module: https://github.com/buzzkc/MMM-TouchSwipe
My build for the 3.5" screen:
https://forum.magicmirror.builders/topic/11395/bedside-touchscreen/2
@ambujsethi Yes, you need to move it up under the modules folder.