I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.
Here is a list of requirements, taken directly from the MOC README:
import os | |
import sys | |
import paho.mqtt.client as mqtt | |
import RPi.GPIO as GPIO | |
import time | |
import Adafruit_DHT | |
import threading | |
pid = str(os.getpid()) | |
pidfile = "/tmp/3dprinter.pid" |
%%%---------------------------------------------------------------------------- | |
%%% $ erl -noshell -s fibs main 40 | |
%%% TRANSLATED ARRAY: 102334155 0.001755 seconds | |
%%% TRANSLATED LIST: 102334155 0.000048 seconds | |
%%% REVERSE ORDER LIST: 102334155 0.000004 seconds | |
%%% MINIMAL ARITHMETIC: 102334155 0.000001 seconds | |
%%% NAIVE RECURSIVE: 102334155 8.383385 seconds | |
%%%---------------------------------------------------------------------------- | |