Showing posts with label Volumio. Show all posts
Showing posts with label Volumio. Show all posts

8/30/2019

Volumio : ติดตั้งใช้งาน Cronteb ใน Volumion V.2.5

Volumio : ติดตั้งใช้งาน Cronteb ใน Volumion V.2.5
ติดตั้ง
  1. apt-get update && apt-get install -y cron

ใช้งาน
crotab -e

https://forum.volumio.org/crontab-t4986.html

Volumio : Volumio button on off pi

Volumio : Volumio button on off pi
Code python :
https://porpramarn.blogspot.com/2019/08/raspberry-pi.html

Run แล้วจะ Error เนื่องจาก Volumio ยังไม่มี module RPI.GPIO
root@volumio:/home/volumio# python pishutdown.py
Traceback (most recent call last):
File "pishutdown.py", line 4, in <module>
import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO


ต้องติดตั้ง
https://forum.volumio.org/installing-rp ... t3544.html

ดู Version ด้วย เอา Version ล่าสุดมาลง หรือจะ Download .deb มาลงก็ได้
https://sourceforge.net/projects/raspbe ... an-wheezy/
ใช้ ดู Version ของ python ที่เครื่อง Volumio ด้วย
  1. phyton -version

ในตัวนี้ใช้
python-rpi.gpio_0.6.2~wheezy-1_armhf.deb

หรือ wget เอา
wget http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-wheezy/python-rpi.gpio_0.6.2~wheezy-1_armhf.deb

ติดตั้ง
  1. sudo dpkg -i python-rpi.gpio_0.6.2~wheezy-1_armhf.deb

root@volumio:/home/volumio# sudo dpkg -i python-rpi.gpio_0.6.2~wheezy-1_armhf.deb
Selecting previously unselected package python-rpi.gpio.
(Reading database ... 20535 files and directories currently installed.)
Preparing to unpack python-rpi.gpio_0.6.2~wheezy-1_armhf.deb ...
Unpacking python-rpi.gpio (0.6.2~wheezy-1) ...
Setting up python-rpi.gpio (0.6.2~wheezy-1) ...

Test Run คำสั่ง แล้วลอง กดปุ่ม
  1. python pishutdown.py

แล้วทำ Run เป็น Service ต่อ
https://porpramarn.blogspot.com/2019/08/raspberry-pi.html

7/11/2019

Volumio : SSH access on volumio

Volumio : SSH access on volumio
open ssh IP/dev
Click Enable
  1. ssh volumio@192.168.0.XX

logs
  1. nano /var/log/volumio.log

View date time.
  1. date
root@volumio:/var/log# date
Thu Jul 11 08:08:12 +07 2019

https://volumio.github.io/docs/User_Manual/SSH.html