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

    Posts

    Recent Best Controversial
    • RE: stronger Raspberry Pi 3 Alternatives

      Well, adafruit has python sample code. You likely need the node FT232H module to use it from JS.

      https://www.npmjs.com/package/FT232H

      Does it actually work - I have no idea - that board is also apparently out of stock :-)

      Sample python code below

      # Import standard Python time library.
      import time
      
      # Import GPIO and FT232H modules.
      import Adafruit_GPIO as GPIO
      import Adafruit_GPIO.FT232H as FT232H
      
      # Temporarily disable the built-in FTDI serial driver on Mac & Linux platforms.
      FT232H.use_FT232H()
      
      # Create an FT232H object that grabs the first available FT232H device found.
      ft232h = FT232H.FT232H()
      
      # Configure digital inputs and outputs using the setup function.
      # Note that pin numbers 0 to 15 map to pins D0 to D7 then C0 to C7 on the board.
      ft232h.setup(7, GPIO.IN)   # Make pin D7 a digital input.
      ft232h.setup(8, GPIO.OUT)  # Make pin C0 a digital output.
      
      # Loop turning the LED on and off and reading the input state.
      print 'Press Ctrl-C to quit.'
      while True:
      	# Set pin C0 to a high level so the LED turns on.
      	ft232h.output(8, GPIO.HIGH)
      	# Sleep for 1 second.
      	time.sleep(1)
      	# Set pin C0 to a low level so the LED turns off.
      	ft232h.output(8, GPIO.LOW)
      	# Sleep for 1 second.
      	time.sleep(1)
      	# Read the input on pin D7 and print out if it's high or low.
      	level = ft232h.input(7)
      	if level == GPIO.LOW:
      		print 'Pin D7 is LOW!'
      	else:
      		print 'Pin D7 is HIGH!'
      
      posted in Hardware
      emloweE
      emlowe
    • RE: stronger Raspberry Pi 3 Alternatives

      You mean something like this:

      https://www.adafruit.com/product/2264

      I just did a google for “USB GPIO breakout board”

      -Earle

      posted in Hardware
      emloweE
      emlowe
    • RE: MMM-newsfeedtouch - News so hot you wanna touch it

      This module only seems to work properly when used in top_bar or bottom_bar - or something that spans the entire “middle” of the screen.

      The description doesn’t work properly when used in top_right or bottom_right, although the rest of the module does work - the description doesn’t work.

      It’s possible there is some magic css that would make it work properly.

      I’m trying it on a 7" touchscreen, so real estate is limited

      -Earle

      posted in Utilities
      emloweE
      emlowe
    • Enphase PV Module - Direct from Enphase Envoy-C

      There are several other Solar PV Modules, including one that uses the official Enphase API to download data.
      However, I couldn’t get the Enphase API to work because for some reason I’m not considered the owner of the system to enable it.
      So I decided to write a module that takes data directly from the Envoy-C gateway module on your network - so there is no cloud required here for this.
      There is no official API for the old firmware running on my older Envoy-C gateway, so I parse the HTML to provide basic details

      [card:emlowe/MMM-EnphaseEnvoy]

      posted in Utilities
      emloweE
      emlowe
    • RE: JQuery Draggable and UI Touch Punch

      Also, you may find the hack of running node serveronly and then chrome in kiosk mode is ok for your use:

      node servonly
      and later start chromium in kiosk mode.

      chromium --noerrdialogs --kiosk 127.0.0.1:8080

      -Earle

      posted in Development
      emloweE
      emlowe
    • RE: JQuery Draggable and UI Touch Punch

      I don’t know, but electron seems to have some issues with touch

      • https://github.com/electron/electron/issues/8725
      • https://github.com/electron/electron/issues/8125
      • https://stackoverflow.com/questions/40359462/electron-enable-touch-events-for-a-touch-screen

      I was thinking of trying to use the ZingTouch JS library to see it could be used to add some touch support easily

      -Earle

      posted in Development
      emloweE
      emlowe
    • RE: MM is eating all memory and crash!

      Oh, and MM specifically is up for 20days:

      pm2 show mm
       Describing process with id 0 - name mm 
      │ status            │ online                               │
      │ name              │ mm                                   │
      │ restarts          │ 6                                    │
      │ uptime            │ 20D
      
      posted in Troubleshooting
      emloweE
      emlowe
    • RE: MM is eating all memory and crash!
      $ uptime
       21:34:37 up 37 days, 58 min,  3 users,  load average: 0.08, 0.13, 0.09
      
      $ cat /etc/issue
      Raspbian GNU/Linux 8 \n \l
      
      $ uname -a
      Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
      
      $ free -m
                   total       used       free     shared    buffers     cached
      Mem:           923        878         44        149         64        487
      -/+ buffers/cache:        326        596
      Swap:           99         99          0
      
      $ df -k
      Filesystem     1K-blocks    Used Available Use% Mounted on
      /dev/root        5863924 4248140   1294864  77% /
      devtmpfs          468148       0    468148   0% /dev
      tmpfs             472756  147656    325100  32% /dev/shm
      tmpfs             472756   12364    460392   3% /run
      tmpfs               5120       4      5116   1% /run/lock
      tmpfs             472756       0    472756   0% /sys/fs/cgroup
      /dev/mmcblk0p6     66528   21418     45110  33% /boot
      tmpfs              94552       0     94552   0% /run/user/1000
      tmpfs              94552       0     94552   0% /run/user/1001
      /dev/mmcblk0p5     30701     463     27945   2% /media/elowe/SETTINGS
      
       $ npm ls | grep -i magicmirror
      magicmirror@2.1.3 
      
      $ npm ls | grep electron
      ├─┬ electron@1.7.5
      │ ├─┬ electron-download@3.3.0
      │ ├─┬ electron-chromedriver@1.6.0
      │ │ ├── electron-download@3.3.0 deduped
      │ │ │ └── electron-to-chromium@1.3.24
      

      Modules:

      • clock
      • currentweather
      • weatherforecast
      • MMM-MyScoreboard
      • MMM-EnphaseEnvoy
      • MMM-CalenderExt
      • MMM-AirNow
      • MMM-AutelisPentair
      • MMM-Globe
      • MMM-Remote-Control
      • MMM-PIR-Sensor
      posted in Troubleshooting
      emloweE
      emlowe
    • RE: MMM-MyScoreboard

      Sorry for the delay in responding. Yes you fixed the one error and the other error is caused by some interaction with MMM-RemoteControl.

      Feature Request - I’d like it to say “No Games” or “No Games for selected teams” rather than just not showing anything

      Thanks - great module!

      posted in Sport
      emloweE
      emlowe
    • RE: MMM-MyScoreboard

      Getting some errors using the default config

      I’m running node serveronly and I updated to MM 2.1.3

      SyntaxError: Unexpected token function
      at createScript (vm.js:56:10)
      at Object.runInThisContext (vm.js:97:10)
      at Module._compile (module.js:542:28)
      at Object.Module._extensions…js (module.js:579:10)
      at Module.load (/home/elowe/MagicMirror/modules/MMM-MyScoreboard/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
      at tryModuleLoad (module.js:446:12)
      at Function.Module._load (module.js:438:3)
      at Module.require (module.js:497:17)
      at require (internal/module.js:20:19)
      at Class.loadModuleDefaultConfig (/home/elowe/MagicMirror/modules/MMM-Remote-Control/node_helper.js:254:17)
      at /home/elowe/MagicMirror/modules/MMM-Remote-Control/node_helper.js:211:10
      at FSReqWrap.oncomplete (fs.js:123:15)

      And then :

      TypeError: Cannot read property ‘indexOf’ of undefined
      at /home/elowe/MagicMirror/modules/MMM-MyScoreboard/providers/ESPN.js:98:34
      at Array.filter (native)
      at Object.formatScores (/home/elowe/MagicMirror/modules/MMM-MyScoreboard/providers/ESPN.js:97:39)
      at /home/elowe/MagicMirror/modules/MMM-MyScoreboard/providers/ESPN.js:75:27
      at /home/elowe/MagicMirror/modules/MMM-MyScoreboard/node_modules/json-parse-async/index.js:20:14
      at _combinedTickCallback (internal/process/next_tick.js:73:7)
      at process._tickCallback (internal/process/next_tick.js:104:9)

      posted in Sport
      emloweE
      emlowe
    • RE: What the best slim LCD for 24"+ magic mirror? I've been only been able to get components down to 1.5".

      You can get thinner if you go with a laptop LCD panel and source the controller separately, but then you are much smaller than 24" - you’ll be at 17" since that is typically the largest laptop screen you will find readily.

      You could, however, go with dual MM’s - 2 17 inch laptop LCD screens and 2 rpi. You would have to configure them independently though.

      -Earle

      posted in Hardware
      emloweE
      emlowe
    • RE: MMM-MyScoreboard

      @j.e.f.f

      You can use xml2js and convert the XML to JSON for processing. A few other modules do this. As long as the XML isn’t overly complex, you get somewhat reasonable JSON

      -Earle

      posted in Sport
      emloweE
      emlowe
    • RE: NASCAR standings

      The NFL seems to use scoreboard.com which is much less obvious how to fetch their data. There are using some AJAX calls, but when I try to call them directly I get denied - there is likely some cookie involved. I suspect it would be somewhat complicated to fetch.

      -Earle

      posted in Requests
      emloweE
      emlowe
    • RE: NASCAR standings

      http://www.nascar.com/cacher/2017/1/points-feed.json

      I scraped that out of the nascar page. Seems promising but unclear if it will work long term.

      -Earle

      posted in Requests
      emloweE
      emlowe
    • MMM-AutelisPentair

      I wrote a new module MMM-AutelisPentair to display information about the status of my pool system, pulled from my Autelis Pool Control box.

      I really don’t like parsing XML, so I convert the XML to js using xml2js, which you need to install (npm install xml2js)

      In theory you can also control the pool using this interface, but I haven’t done that - this is display only

      Not everything is presented, since I don’t have some of the equipment (like IntelliChlor)

      [card:emlowe/MMM-AutelisPentair]

      -Earle

      posted in Utilities
      emloweE
      emlowe
    • RE: stronger Raspberry Pi 3 Alternatives

      Here is another option:

      ASRock N3150DC-ITX Mini-ITX Motherboard - if you can find one.

      SoC – Intel Celeron N3150 quad core processor @ up to 2.08 GHz with Intel HD Graphics Gen8 @ up to 640 MHz – 6W TDP

      There are some other Celeron SoC boards that take 19v DC power. The Asus Q1900DC-ITX uses the J1900.

      Look for “Thin Mini-ITX” normally that means the DC in.

      -Earle

      posted in Hardware
      emloweE
      emlowe
    • RE: My Mirror-less Info Board

      That is an early look at @Sean 's upcoming module MMM-calendarExtDays.

      He is about to release an updated version under a new name - look on the forum here for MMM-calendarExtDays

      -Earle

      posted in Showcase
      emloweE
      emlowe
    • RE: GPU Memory/Image flicker/blinking

      I realize this is an old thread - but the rpi3 does have an OpenGL driver that you can install via raspi-config under “Advanced”

      It does have a GPU - “Broadcom Video Core”

      -Earle

      posted in Troubleshooting
      emloweE
      emlowe
    • My Mirror-less Info Board

      This is going to be my Family Info Board. Still need to get the actual H/W though :-)

      Pool info is from my in progress AutelisPentair module - almost done.

      0_1501646208522_Screen Shot 2017-08-01 at 8.55.25 PM.png

      posted in Showcase
      emloweE
      emlowe
    • RE: [MMM-calendarExtDays] Alternative days calendar view

      @Sean

      If you add in the attribute to your JS, then you don’t need to prepare any styles for the event titles.

      The user can do so on their own in their css/custom.css.

      .MMM-calendarExtDays .eventContent[title*=“Birthday” i] { color:HotPink; }

      My calendar events follow a pattern (L-- for my son, C-- for my daughter, etc), so I add into my own css/custom.css the attribute matching.

      Anyway, your module I think fills a major gap, so I’m very happy with it

      -Earle

      posted in Utilities
      emloweE
      emlowe
    • 1 / 1