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
    • 1 / 1