Last active
January 12, 2023 09:57
-
-
Save TechnologistAU/ecce6a01ea6a5d6ac4161e20dd47089d to your computer and use it in GitHub Desktop.
mFi Installation Script for Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# | |
# This script automates the installation of the mFi controller software on the | |
# Raspberry Pi. | |
# | |
# http://www.technologist.site/ubnt | |
# | |
################################################################################ | |
apt-get update && apt-get -y upgrade | |
apt-get -y install oracle-java7-jdk jsvc mongodb | |
systemctl stop mongodb | |
systemctl disable mongodb | |
wget http://dl.ubnt.com/mfi/2.1.11/mFi.unix.zip | |
unzip mFi.unix.zip -d /usr/lib | |
wget https://gist.github.com/TechnologistAU/22b0493478c899cc403f6056903422ba/raw -O /usr/lib/mFi/bin/mfi.init | |
chmod +x /usr/lib/mFi/bin/mfi.init | |
ln -fs /usr/lib/mFi/bin/mfi.init /etc/init.d/mfi | |
sudo update-rc.d mfi defaults |
never mind - a reboot fixed it :)
O mFi para de coletar dados depois de 5 dias.
O Java utiliza 100% da CPU
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tried the script on rPI 3 but cannot access the web gui in the browser as the HTTPS connection times out - any idea what could be wrong ?