Friday, June 9, 2017

mongodb gui for ARM (raspberry pi) device

https://github.com/agirbal/umongo


Take Screenprint in Raspberry pi

Install scrot

sudo apt-get install scrot

To select a frame
$ scrot -s 

Cloud 9 IDE on raspberry pi

ATOM ide doesn't support on ARM devices, so the next choice would be cloud 9.

git clone git://github.com/c9/core.git c9sdk
cd c9sdk
scripts/install-sdk.sh
~/workspace/c9sdk/server.js -l 0.0.0.0 -p 8080 -a : -w /home/pi/workspace/ 


http://localhost:8080/ide.html


Sunday, December 4, 2016

OpenHab running on my Raspberry Pi.

OpenHab running on my Raspberry Pi.


Changing port number on openHAB 2.0

export OPENHAB_HTTP_PORT=8011

The above export was not working, so i added the below property

sudo nano /etc/default/openhab2

OPENHAB_HTTP_PORT=8090
OPENHAB_HTTPS_PORT=8053

Battery Status Linux

upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percentage"

amesh@linux-3ykp:~> upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percent
age"
   state:               charging
   time to full:        58.8 minutes
   percentage:          69%
ramesh@linux-3ykp:~> upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percent
age"
   state:               discharging
   time to empty:       32.0 hours
   percentage:          70%

Saturday, December 3, 2016

Play Youtube in Command line


pip install -U yturl
mpv --no-video "$(yturl <url>)"
mplayer -novideo "$(yturl <url>)"
MPS Youtube
https://github.com/mps-youtube/mps-youtube