Friday, 13 November 2015

Ubiquiti mFi mini mPower wifi - ssh connection Raspberry Pi

How to connect to mFi mini mPower through command line:

1. You must know your mPower IP address. Let's say is (like my is..)

2. Open terminal window on Raspberry Pi:

3. Switch to root user:
> sudo su

4. Enter ssh command to connect with your mPower device, and specify the username of the mPower device
> ssh -l sorin
then set the password of the mPower device

5. Now you should be connected to your mPower device, see your settings:
> cd cfg
> cat config_file

6. Change switch relay to on (0 - off, 1 - on):
> cd /proc/power/
> echo 1 > relay1

7. See that your switch has changed state:
> cat relay1
> 1 --- you should see this value

No comments:

Post a Comment