Just following the instructions here: http://automatedhome.party/2017/12/18/modify-the-xiaomi-xiaofang-camera-to-work-with-home-assistant-and-other-video-recording-software/
I finally did it! I bought a Tevo Tarantula 😀
If you’re trying to run the FPGA Editor on Ubuntu 16.04.03 then you’ll encounter these errors, and how to fix them.
/opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/_fpga_editor: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory
Navigate to https://launchpad.net/ubuntu/xenial/amd64/libmotif4/2.3.4-8ubuntu1 and download the .deb file.
sudo dpkg -i libmotif4_2.3.4-8ubuntu1_amd64.deb
During this process it will complain abot not having libmrm4, libuil4, and libxm4 in that order.
Now simply run the following command to fix the unmet dependencies:
sudo apt-get -f install
sudo apt-get install libXp
/opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/_fpga_editor: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
Navigate to https://packages.ubuntu.com/trusty/amd64/libxp6/download and download the .deb file.
sudo dpkg -i libxp6_1.0.2-1ubuntu1_amd64.deb
sudo apt-get install libstdc++5
Wind/U Error (193): X-Resource: DefaultGUIFontSpec (-*-helvetica-medium-r-normal-*-14-*) does not fully specify a font set for this locale
sudo apt-get install xfonts-100dpi xfonts-75dpi
reboot your computer
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (registryProg, registryVers, tcp)
Wind/U Error (248): Failed to connect to the registry on server ise-VirtualBox
sudo apt-get install rpcbind portmap
I recently bought the Xiaomi Xiaofang Smart Camera and here’s how I set it up:
1. Make sure your phone is connected to the internet and GPS is turned on (it asks for location services to be enabled which includes GPS)
2. Download the Mi Home app from your phone’s app store
3. Accept the terms and conditions for the app
4. Select the first locale (or server) in Chinese, which I believe is Mainland China. If you select the US server then it will not connect properly.
5. You need to sign in with your Mi Account.
Create a Mi account or sign in with your existing Mi account.
NOTE: Other sites are saying that you need to create a Mi account without connecting it to any social media network.
6. Tap on My Devices and then tap on Add Camera Products. Tap the highlighted icon,
7. Press the Setup button on the camera and wait the camera light to flash yellow and say something in Chinese. After you hear it, tap on “Wait until you hear a prompt” and then tap Next.
8. Tap on Tap to select Wi-Fi and you will see a list of Wifi access points your phone can see. Select the Wifi access point you wish to connected it.
NOTE: it will only work with 2.4 Ghz access points
9. Enter the username and password for the Wifi access point.
10. Hold the camera and point it to the QR displayed on your phone. If it works the camera will say something else in Chinese and then the camera light will flash blue.
11. It will now connect to the camera.
12. If it all works then you should see this.
13. Tap on a device location and tap Next.
14. On the main screen of the app you should see your new camera.
15. Tap the camera icon and you should see this.
16. Voila! 🙂
It’s so easy to set up a Raspberry Pi Camera Server because of RPi-Cam-Web-Interface. I’m using these materials;
- Raspberry Pi Zero W with Jessie Lite
- Raspberry Pi NoIR Camera Board, Version 2
- Raspberry Pi Zero Camera Adapter (this is required because the camera port on the Raspberry Pi Zero is smaller compared to the camera port on the Raspberry Pi 2 or 3)
Here are the steps:
- Prepare a new Raspberry Pi with Raspbian
- Make sure it’s connected to a network and you can ping it from your computer
- Confirm that the camera is working, run this command you should see the live video for 6 seconds. If this works then proceed to the next step. Otherwise fix this first.
raspistill -v -f -vf -t 6000
- Run these commands to install the RPi-Cam-Web-Interface:
sudo apt-get update git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.gitcd RPi_Cam_Web_Interface chmod u+x *.sh ./install.sh
- From your computer, go to http://192.168.0.10/html/ (IP is your Raspberry Pi’s IP)
I have a Dell XPS laptop and it came with Windows 10 Home installed. I had a Windows 10 Professional license tied to my Microsoft account. I wanted to upgrade my Home installation to a Professional installation, here’s how I did it:
UPDATE: The following steps did not work as I had hoped. It didn’t not accept my other Microsoft account’s Windows 10 Pro license. I ended up buying the Windows 10 Pro license from Play-Asia for very cheap. I still went through steps 1-5 and then I entered the new Windows 10 Pro key. And it didn’t work! I ended up calling Microsoft and activated it over the phone. And done! 🙂
- Open Windows 10 Settings and go to activation
- Click on Product Key and use this one VK7JG-NPHTM-C97JM-9MPGT-3V66T. (This is a generic Windows 10 Professional key, it will simply allow you to perform the upgrade)
- Perform the upgrade
- After restart, Windows will ask for activation
- Open Windows 10 Settings and go to activation
Click on Troubleshoot Click on “I recently changed hardware on this device” and select the license from the Microsoft account Sign in to your Microsoft account (the one with the Windows 10 Professional license) and voila!
Here are the instructions to (re)installing SDL2 on Raspbian by compiling from source.
sudo apt-get remove --purge libsdl2-dev sudo apt-get autoremove sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile1-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake sudo apt-get install libraspberrypi-dev raspberrypi-kernel-headers mkdir build && cd build wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz cd SDL2-2.0.5 ./configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl make sudo make install sudo ldconfig
Hooray! SDL performance is much much faster! 🙂
SOURCE 1: https://solarianprogrammer.com/2015/01/22/raspberry-pi-raspbian-getting-started-sdl-2/
SOURCE 2: http://choccyhobnob.com/tutorials/sdl2-2-0-5-on-raspberry-pi/