Sunday, December 4, 2016
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
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
Subscribe to:
Posts (Atom)