Take off

블로그 이미지
by 안.들
  • Total hit
  • Today hit
  • Yesterday hit

'IoT/라즈베리파이'에 해당되는 글 9건

  1. 2017.04.17
    iotmakers
  2. 2017.03.15
    NodeJS + MongoDB Web Server Raspberry Pi
  3. 2017.03.15
    라즈베리파이+restful API 이용하기
  4. 2017.03.15
    라즈베리파이+모션센서
  5. 2017.03.03
    thingplus dropbox 사진연동 error 확인
  6. 2016.10.06
    PCA9685 Driver (16 채널) 에 대해서
  7. 2016.10.06
    VNC (VIRTUAL NETWORK COMPUTING)
  8. 2016.06.02
    라즈베리파이3 + 카메라 + 모형CCTV => REAL CCTV만들기 2
  9. 2016.05.06
    라즈베리파이3 OS설치
AND


+NodeJS + MongoDB Web Server Raspberry Pi Tutorial


http://raspberrypituts.com/nodejs-mongodb-web-server-raspberry-pi-tutorial/

http://andyfelong.com/2016/03/using-python-with-mongodb-on-raspberry-pi-2/

'IoT > 라즈베리파이' 카테고리의 다른 글

iotmakers  (0) 2017.04.17
라즈베리파이+restful API 이용하기  (0) 2017.03.15
라즈베리파이+모션센서  (0) 2017.03.15
thingplus dropbox 사진연동 error 확인  (0) 2017.03.03
PCA9685 Driver (16 채널) 에 대해서  (0) 2016.10.06
AND



http://www.robert-drummond.com/2013/05/08/how-to-build-a-restful-web-api-on-a-raspberry-pi-in-javascript-2/

'IoT > 라즈베리파이' 카테고리의 다른 글

iotmakers  (0) 2017.04.17
NodeJS + MongoDB Web Server Raspberry Pi  (0) 2017.03.15
라즈베리파이+모션센서  (0) 2017.03.15
thingplus dropbox 사진연동 error 확인  (0) 2017.03.03
PCA9685 Driver (16 채널) 에 대해서  (0) 2016.10.06
AND




https://codefooo.gitbooks.io/raspberry-experiments/content/%EC%8B%A4%ED%97%987-%EB%AA%A8%EC%85%98-%EC%84%BC%EC%84%9C.html


http://blog.naver.com/agapeuni/220275640761



https://diyhacking.com/raspberry-pi-gpio-control/



모션 sensor detect => 사진찍기


AND

root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# ./thingplus_device.sh status

stopped

root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# ./thingplus_device.sh restart

thingplus device started


root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# 

TypeError: Cannot call method 'replace' of undefined

    at Request._callback (/opt/thingplus/openhardware/raspberrypi/camera/dropbox-driect-url.js:14:32)

    at Request.self.callback 

===============================


dropbox-driect-url.js

이 js파일은 무슨용도인가?

url로 바로 업로드된 이미지를 볼수 있는 경로를 리턴하는것 같은데.

리턴해서 어디서 이 값을 받아 쓰는가?


에러의 원인은

var redirectUrl = response.headers.location;

location으로 값을 못가져와서 replace 명령이 오류가 발생한 것..

console.log(JSON.stringify(response.headers)); 로 찍으면 아래처럼 나오는데.

최초작성의도였던 "response.headers.location" 이 값을 가져오려면 어떤 명령어를 쓰면 될까? 


-------------------------------------- 

header:{"server":"nginx","date":"Sat, 04 Mar 2017 13:01:56 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","cache-control":"no-cache","content-security-policy":"script-src 'unsafe-eval' https://www.dropbox.com/static/compiled/js/ https://www.dropbox.com/static/javascript/ https://www.dropbox.com/static/api/ https://cfl.dropboxstatic.com/static/compiled/js/ https://www.dropboxstatic.com/static/compiled/js/ https://cfl.dropboxstatic.com/static/javascript/ https://www.dropboxstatic.com/static/javascript/ https://cfl.dropboxstatic.com/static/api/ https://www.dropboxstatic.com/static/api/ https://www.google.com/recaptcha/api/ 'unsafe-inline' 'nonce-11LVKubJAI8Zmn0pJmmW' ; default-src 'none' ; worker-src blob: ; style-src https://* 'unsafe-inline' 'unsafe-eval' ; connect-src https://* ws://127.0.0.1:*/ws ; child-src https://www.dropbox.com/static/serviceworker/ blob: ; form-action 'self' https://dl-web.dropbox.com/ https://photos.dropbox.com/ https://accounts.google.com/ https://api.login.yahoo.com/ https://login.yahoo.com/ ; base-uri 'self' api-stream.dropbox.com https://showbox-tr.dropbox.com ; report-uri https://www.dropbox.com/log/csp_enforced ; img-src https://* data: blob: ; frame-ancestors 'self' ; frame-src https://* carousel://* dbapi-6://* dbapi-7://* dbapi-8://* itms-apps://* itms-appss://* ; object-src https://cfl.dropboxstatic.com/static/ https://www.dropboxstatic.com/static/ 'self' https://flash.dropboxstatic.com https://swf.dropboxstatic.com https://dbxlocal.dropboxstatic.com ; media-src https://* blob: ; font-src https://* data:","dropbox-streaming":"V=1","pragma":"no-cache","set-cookie":["locale=en; Domain=dropbox.com; expires=Thu, 03 Mar 2022 13:01:56 GMT; Path=/; secure","gvc=MTkxOTI2ODEyODcxNjQ4NzQ1NzM2NzkwNDM4MzY1OTgxODcwOTMz; expires=Thu, 03 Mar 2022 13:01:56 GMT; httponly; Path=/; secure","puc=; expires=Sat, 04 Mar 2017 13:01:56 GMT; httponly; Path=/; secure","seen-sl-signup-modal=VHJ1ZQ%3D%3D; expires=Mon, 03 Apr 2017 13:01:56 GMT; httponly; Path=/; secure","t=CeKHNZPQqaFb8CNrhjGdR-1G; Domain=dropbox.com; expires=Tue, 03 Mar 2020 13:01:56 GMT; httponly; Path=/; secure","__Host-js_csrf=CeKHNZPQqaFb8CNrhjGdR-1G; expires=Tue, 03 Mar 2020 13:01:56 GMT; Path=/; secure"],"x-content-type-options":"nosniff","x-dropbox-http-protocol":"None","x-dropbox-request-id":"1092b42b3f65a203ce9ed233bb62d77a","x-frame-options":"DENY","x-robots-tag":"noindex, nofollow, noimageindex","x-xss-protection":"1; mode=block","strict-transport-security":"max-age=15552000; includeSubDomains"}


result  ==> thingplus로부터  .js 파일받아 진행. update 안된 버전으로 테스트되어 에러 발생했음.

AND


 PCA9685 Driver (16 채널)

사용방법 및 configuration.


참고) https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

AND

VNC is a graphical desktop sharing system that allows you to remotely control the desktop interface of one computer from another computer or mobile device. It transmits the keyboard and mouse, or touch, events from the controller, and receives updates to the screen over the network from the remote host.


You will see the desktop of the Raspberry Pi inside a window on your computer or mobile device. You'll be able to control it as though you were working on the Raspberry Pi itself.

참고) https://www.raspberrypi.org/documentation/remote-access/vnc/


라즈베리파이에 VNC 서버는 default로 깔려있지 않은데. 위 내용은 마치 built in 되어있는것 처럼 얘기하고 있네.

수동으로 설치하면된다.

[서버설치]

install sudo apt-get install tightvncserver

>패스워드 설정

8자리?

재부팅할때마다 vncserver명령어를 수행해서 서버 start 시켜야함.

아래는 안해봤는데 해봐야겠음.

default는 800x600 인듯.

--------------------------------------------------------------
vncserver :1 -geometry 800x600 -depth 24     또는
vncserver :2 -geometry 1024x768 -depth 24  
vncserver :3 -geometry 1280x960 -depth 24  
vncserver :4 -geometry 1280x1024 -depth 24 
--------------------------------------------------------------


윈도우에서 tightvnc viewer 실행

remote host : 아이피::5901 로 해서 connect함.

--------------------------------------------------------------

vncserver 작동확인

sudo netstat -tulpn

0.0.0.0:5901 가 LISTEN 상태이면 정상 작동중임

--------------------------------------------------------------

참고) http://blog.naver.com/itsplay/220332857931



AND

라즈베리파이3 + 카메라 + 모형CCTV => REAL CCTV만들기



고급형 리얼 적외선(IR) 카메라 실버(10,600원)
라즈베리파이 NOIR 적외선 카메라모듈 V2 8Megapixe : 38,500원

라즈베리파이3 + 5V,2.5A 아답터 + 심플 케이스(블랙) + 방열판 세트 : 58,300원
마이크로SD카드(32GB) : 15,000원

Total : 122,400원


라즈베리파이용 카메라
모형CCTV를 분해서서 순갑접착제로 딱하니 붙임


모형CCTV 공간이 작다.

전원선을 꼽기 위해서 구멍을 뚫음


기존 모형CCTV의 깜빡임 등(건전지사용)도 같이 작동하게 해봄.




CCTV도 되면서 라즈베리 파이, 다른 기능도 해보고 싶다.

모니터 연결할 수 있게 HDMI 케이블 위치 뚫어. 
기존 건전지가 있던 위치다. 없어도 되니까.^^



CCTV 웹으로 볼수 있는 프로그램 설치

http://elinux.org/RPi-Cam-Web-Interface#Basic_Installation


집에 한번 설치 해봄. 

실제 CCTV는 얼마인지 모르겠으나.

이렇게 만들면 10만원정도임.



AND



라즈베리파이를 이용해서 CCTV를 만들려고 한다. 

첫 단계로 OS 설치해보자.


1. 마이크로SD 포멧 : sdcard formatter 사용

https://www.sdcard.org/downloads/formatter_4/eula_windows/index.html


2. NOOBS(New Out Of Box Software)를 이용한 Linus Raspbian 설치

https://www.raspberrypi.org/downloads/noobs/


3. 다운로드한 NOOBS_v1_9_0.zip 의 압축을 푼 후 마이크로SD 카드로 복사.

라즈베리파이에 마이크로SD카드 장착후 전원연결

Noobs부팅화면 Raspbian 설치


간단히 설치되었는데..

해결해야 할 것들이 보이네. 

*인터넷을 해보니 한글이 깨짐. 

*인터넷 속도 느림.

*큰 방열판이 조금 뜨거움.

AND

ARTICLE CATEGORY

분류 전체보기 (66)
금융 (0)
관제 (4)
Unix (1)
Android (6)
Windows (2)
Java (4)
oracle (3)
web (3)
English (3)
Physics (1)
Books (6)
요리 (1)
Deep Learning (6)
IoT (21)
라즈베리파이 (9)
아두이노 (8)
to-do list (0)
Music (1)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

ARCHIVE