MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ninjabreadman
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    N
    Offline
    • Profile
    • Following 0
    • Followers 3
    • Topics 4
    • Posts 201
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Module Developer Challenge - I surrender!

      @Mykle1 It actually might be best to run cat /sys/class/thermal/thermal_zone*/type to see if they’re already populating on your Ubuntu install. If so, you can run cat /sys/class/thermal/thermal_zone*/temp to get all the values, or just cat a specific one. Should be to three decimal places (i.e. 64000 means 64.000°C).

      You might run it a few times to see that the values change, and if they do, then use the same exec() method from MMM-SystemStats with the right command and some math.

      posted in Development
      N
      ninjabreadman
    • RE: Module Developer Challenge - I surrender!

      @Mykle1 Hmm, it may be that vcgencmd is specific to the RPi. You can try these; acpi seems like a contender, as does lm-sensors.

      posted in Development
      N
      ninjabreadman
    • RE: Show a telegram group in Magic mirror

      @fox The only Telegram implementation that I’ve seen is the MMM-TelegramBot, and that receives messages but doesn’t show them. It would provide a point of departure, and maybe @Sean could suggest how easy/hard it would be to capture messages and inject to a scrolling chat window.

      posted in Requests
      N
      ninjabreadman
    • RE: Newbie to Pi looking to start a MM

      Welcome, @torc! You might also check out this thread from @3DPrintedWaffles.

      1. Automatic timed shutdown and boot up (no point it being on at night when nobody is there to benefit).

      This requires added hardware, as the RPi doesn’t have the internal capacity. See this thread on StackExchange. Given you’ll already have the monitor going into standby, you’ll need to determine whether the added cost, work and potential complications are worth the effort.

      1. motion sensor to activate display.

      @cruunnerr is the village expert. Check out this very thorough walkthrough to get started.

      1. small LEDs on back of frame that change with certain outside temperature changes.

      You can start at this post and module. However, there are endless articles on how to connect an RBG LED light strip to an RPi, etc.

      1. map display of selected mobile devices by clicking a button on another device (eg if I want to see where my kids mobiles are, click a button on mine and a map would appear in the mirror with theirs.

      You can trigger displaying modules via a phone/tablet/computer with MMM-Remote-Control, or a button with MMM-Buttons – both by @Jopyth. The harder part will be the map. It’s true that Apple and Google have something like Find My Friends (or Find My Phone for devices connected to your account) but I don’t know of any available APIs for those services. (There are apparently some unofficial Node.js clients.)There is tracking software you can install on Android, but it tends to be insecure garbage.

      posted in General Discussion
      N
      ninjabreadman
    • RE: Module Developer Challenge - I surrender!

      @Mykle1 Depending on the style/implementation you’re using, you may want to read up on Promises in JS.

      Also, see this note here about the lm-sensors package.

      Alternatively, have a look at MMM-SystemStats which uses vcgencmd on the CLI to retrieve the system temp, which would be far easier to integrate into your current module.

      posted in Development
      N
      ninjabreadman
    • RE: Module Developer Challenge - I surrender!

      @Mykle1 It doesn’t seem that pc-stats has all the info you require. You might consider switching to the systeminformation package.

      You can then use si.cpu() for your CPU stats and si.cpuTemperature() to retrieve an object that (if I read the docs right) looks like { main: 0, max: 0, cores: [0, 0] } with your core temps. You can then combine the two responses (or you may be able to have it return all within one request) and return those in a single sendNotification() call.

      posted in Development
      N
      ninjabreadman
    • RE: This Day in History ticker?

      @cowboysdude Agreed, I meant if @xela is looking to find code examples to construct a single module. Sorry if that wasn’t clear; best to keep in a single module.

      posted in Requests
      N
      ninjabreadman
    • RE: This Day in History ticker?

      @donutsoup @cowboysdude That would make a slick module. You could cobble it together from various others, like MMM-json-feed to fetch your data and newsfeed to display it in discrete elements/items.

      posted in Requests
      N
      ninjabreadman
    • RE: Help with the camera

      @xela Read through this issue on GitHub. Given you were trying to make the webcam full screen, is it related?

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Help with the camera

      @xela Regarding rotating the camera, you can physically rotate the camera. If you’re directly connecting it to the RPi, consider using a flex cable instead.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Help with the camera

      @xela It’s not supported natively by webcamjs. See this issue posted here. You can try CSS transforms, but it may be too processor intensive for the RPi.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Display a .png saved on the raspberry pi hard drive

      @snowman @cruunnerr You’re right. It is however baked into MMM-SimpleLogo. There is a time stamp query parameter appended to the image, so that it fetches a new version every time and does not load the cached version. Also, it has a refreshInterval config parameter to set how often it updates (e.g. "5*60*1000" for 5 minutes).

      posted in Development
      N
      ninjabreadman
    • RE: This Day in History ticker?

      @donutsoup I think @cowboysdude’s module should do what you want: https://forum.magicmirror.builders/topic/1803/mmm-history/9

      It’s a TDIH module that cycles through different years and their significance.

      posted in Requests
      N
      ninjabreadman
    • RE: Input field forces restart instead of update

      @joncedimov If it’s the [enter] causing problems, you may need to override/disable the onsubmit event listener for the form. It may be that you’re submitting the form, MM has no idea what to do with that data, and so simply displays (reloads) the same page.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: MMM-Remote-Control show error on start

      @cruunnerr Just from the stack trace and mention of git, I have a suspicion that this where MMM-Remote-Control polls Github for the git status of each installed module (are you running four third-party mods?). If MM is still working, it seems that it fails gracefully and is not causing problems. It appears that its node_helper.js on line 240 has a replace() call that is not receiving a proper string (or regex?).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Help with the camera

      @xela What modules are you using? ¯\_(ツ)_/¯

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Help with the camera

      Have a look at MMM-pages. Install it, and you can then send a PAGE_CHANGED notification either when you send the camera notifications (voicecontrol module) or when you receive and process them (camera module). That should page between the camera and everything else.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: fs.stat SyntaxError: Unexpected token

      It may be included by default in Node.js, but you still need to import it into your script.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Help with the camera

      @xela Which modules are you using? Did you run npm install in both folders? Do you also have the camera module in your config.js?

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: fs.stat SyntaxError: Unexpected token

      @pepebc It may depend on what precedes that snippet (if anything). Try copy/pasting the whole file into JSHint, it may give you a better idea. Also, doesn’t fs.stat() take a path as the first argument?

      posted in Troubleshooting
      N
      ninjabreadman
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 7 / 11