After this article read about:
RPi Python devices
Raspberry Pi Video preview
RasbperryPi can be connected to our account similar way as other devices, but adding process is little bit diffrent. Since we are not adding RasbperryPi from our account at app.remoteme.org but from RasbperryPi itself.
It was tested on RasbperryPI zeroW and RasbperryPi 3. But should work with any others RasbperryPi with network access as well
Adding RasbperryPi
Fastest way:
at device tab choose new device
then New RasbperryPi
window appear:
then login with putty or other terminal to your rasbperryPI and paste ( shift+insert in putty) command from first “black section”.
Instalator will make everything for You. Then to run RemoteMe just go to remoteme directory (it’s in location when You run first command) and run remoteme by ./runme.sh
Step by step way:
This step by step way will do excatly the same as “Fastest way” . But here You have more control on what is going on.
First login with putty or other terminal to your rasbperryPI
then in directory when we want instalatino process create remoteme
directory we run
Program will make only changes in remoteme directory and will not change anything else (except installing python libraries )
git clone git://github.com/remoteme/remoteme.git
pro tip 🙂 : to paste in putty use shift+insert
It will clone repository with needed files into remoteme
directory
let’s open this directory
cd remoteme
and run isntallation script
python3.5 install.py
this installation wizard will ask us some questions
isntalation will ask us to isntall this libraries
- installs python library https://pypi.python.org/pypi/psutil
- installs python library https://github.com/adafruit/Adafruit_Python_PCA9685
When system asks us if to install libraries we choose yes [ y Enter ]
Then system attemps to install our credtentials to connect app.remoteme.org
“Provide Token and press enter” at webpage https://app.remoteme.org at Tokens lets copy new created token:
and we paste it (shift+insert for putty)
we provice deviceName (for example Rpi ) , then deviceId (some deivceId which is not used yet (most cases)) (for example 1)
when system will ask us to provide token we copy it from our account from app.remoteme.org from token tab.
at the end we got information about sucess
(if You want to chagne something run instalation process again or manual provide changes into conf.json)
then we run script
./runme.sh
we will got something similar to this:
and our Rpi is connected:
at https://app.remoteme.org/en/#/app/devices we have new created device
green icons: shows that device is connected right now.
Its good to run git pull
command at remoteme directory to donload newest version or program.
What has just happened:
by cloning repository we jsut donloaded files into remoteme
directory
files:
- conf.json – configuration we provide while instalation
- confOrg.json – orginal configuration with some template and default values ( better dont touch )
- install.py – wizard we run to install
- leafDevices – our python devvices – for now it has only python libraries
- LICENCES – licenced needed by softeare I’ve used
- log.conf – logs configuration
- logs – logs itself
- media_config.conf, webrtc_streamer.conf – when You want to conenct camera here are some settings + setting for webRTC protocol more here
- README.md – there will be some descriptions
- remoteme – its main program it connect app.remoteme.org, serving videos, sending messages, manage python devices
- remoteme_manager.py – python utils to proper run remoteme program, and manage it
- runme.sh – runs remoteMe
Its not recomended to edit any of this files except media_config.conf, webrtc_streamer.conf
these files arefor video live preview more here