Raspberry Pi로 집에 걸려온 전화를 밖에서도 확인할 수 있도록 해 보았다(전편)
시도한 것
집에 걸려온 전화의 정보를 밖에서도 확인하고 싶다. 외부에서 확인하기 때문에 어디서나 클라우드에서 웹 서비스를 만들어 액세스할 수 있도록 하자.
그래서 다음과 같은 구성으로 해 보았습니다.

하는 것에 비해 대규모가 되고 있는 생각이 듭니다만, 이하를 공부해 보려고 생각했기 때문에, 도로가 되고 있습니다. 참고하시는 분은 적당히 단단히 하십시오.
Google Cloud Platform 준비
Google Cloud Platform에 로그인하여 프로젝트를 만듭니다.

만들기를 클릭하면 프로젝트가 만들어지고 대시보드가 표시됩니다.

왼쪽 상단의 탐색 메뉴에서 AppEngine을 선택합니다. 먼저 응용 프로그램을 만드는 화면이 나타납니다.

"응용 프로그램 만들기"를 클릭하면 지역을 선택하는 화면이 표시됩니다. 어디서나 좋다고 생각합니다.

"앱 만들기"를 클릭하면 언어를 선택하는 화면이 표시됩니다. 이번에는 Java로 Spring REST 서비스의 구축도 해보고 싶었기 때문에 언어는 Java입니다. 「Environment」의 곳은, 「표준」으로 충분하므로, 그대로.

다음을 누르면 애플리케이션이 생성되었습니다.

Google Cloud SDK 준비
먼저 Python을 설치해 봅시다. 이번, Python3계의 최신을 인스톨 했습니다.
파이. 오 rg
설치가 끝나면 시스템 환경 변수를 설정합니다. Python이 경로를 통과하더라도 아래 환경 변수를 설정하지 않으면 설치가 실패합니다.
- 변수: CLOUDSDK_PYTHON
- 값: (Python 바이너리 경로)

다음을 참고하여 Cloud SDK를 설치합니다. 환경은 Windows10 64bit입니다.
「 Google Cloud SDK 설치 프로그램 사용 」

설치 프로그램의 지시에 따라 설치합니다.

설치가 완료되면 명령 프롬프트가 시작되고 "gcloud init"명령이 자동으로 실행됩니다. 도중에 GoogleCloudPlatform에 로그인을 확인하고 로그인이 성공하면 내 프로젝트가 선택에 나타날 것입니다.
이 근처의 페이지를 참고로 진행했습니다.
「 GCP gcloud 명령의 설치와 첫 번째 인증까지 초보자를 위해 자세히 설명 」
마지막으로 gcloud app Java Extensions를 설치합니다.
C:\Program Files (x86)\Google\Cloud SDK>gcloud components install app-engine-java
Your current Cloud SDK version is: 291.0.0
Installing components from version: 291.0.0
┌───────────────────────────────────────────────────┐
│ These components will be installed. │
├──────────────────────────────┬─────────┬──────────┤
│ Name │ Version │ Size │
├──────────────────────────────┼─────────┼──────────┤
│ Cloud Datastore Emulator │ 2.1.0 │ 18.4 MiB │
│ gRPC python library │ 1.20.0 │ 1.5 MiB │
│ gRPC python library │ │ │
│ gcloud app Java Extensions │ 1.9.80 │ 62.4 MiB │
│ gcloud app Python Extensions │ 1.9.90 │ 6.1 MiB │
└──────────────────────────────┴─────────┴──────────┘
For the latest full release notes, please visit:
https://cloud.google.com/sdk/release_notes
Do you want to continue (Y/n)?
╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Datastore Emulator ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud app Java Extensions ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud app Python Extensions ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Creating backup and activating new installation ═╣
╚════════════════════════════════════════════════════════════╝
Performing post processing steps...done.
Update done!
드디어 환경이 생겼을 정도입니다만, 길어져 왔으므로, 일단 여기까지.
중편에 이어
먼저 Python을 설치해 봅시다. 이번, Python3계의 최신을 인스톨 했습니다.
파이. 오 rg
설치가 끝나면 시스템 환경 변수를 설정합니다. Python이 경로를 통과하더라도 아래 환경 변수를 설정하지 않으면 설치가 실패합니다.
- 변수: CLOUDSDK_PYTHON
- 값: (Python 바이너리 경로)

다음을 참고하여 Cloud SDK를 설치합니다. 환경은 Windows10 64bit입니다.
「 Google Cloud SDK 설치 프로그램 사용 」

설치 프로그램의 지시에 따라 설치합니다.

설치가 완료되면 명령 프롬프트가 시작되고 "gcloud init"명령이 자동으로 실행됩니다. 도중에 GoogleCloudPlatform에 로그인을 확인하고 로그인이 성공하면 내 프로젝트가 선택에 나타날 것입니다.
이 근처의 페이지를 참고로 진행했습니다.
「 GCP gcloud 명령의 설치와 첫 번째 인증까지 초보자를 위해 자세히 설명 」
마지막으로 gcloud app Java Extensions를 설치합니다.
C:\Program Files (x86)\Google\Cloud SDK>gcloud components install app-engine-java
Your current Cloud SDK version is: 291.0.0
Installing components from version: 291.0.0
┌───────────────────────────────────────────────────┐
│ These components will be installed. │
├──────────────────────────────┬─────────┬──────────┤
│ Name │ Version │ Size │
├──────────────────────────────┼─────────┼──────────┤
│ Cloud Datastore Emulator │ 2.1.0 │ 18.4 MiB │
│ gRPC python library │ 1.20.0 │ 1.5 MiB │
│ gRPC python library │ │ │
│ gcloud app Java Extensions │ 1.9.80 │ 62.4 MiB │
│ gcloud app Python Extensions │ 1.9.90 │ 6.1 MiB │
└──────────────────────────────┴─────────┴──────────┘
For the latest full release notes, please visit:
https://cloud.google.com/sdk/release_notes
Do you want to continue (Y/n)?
╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Datastore Emulator ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud app Java Extensions ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud app Python Extensions ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Creating backup and activating new installation ═╣
╚════════════════════════════════════════════════════════════╝
Performing post processing steps...done.
Update done!
드디어 환경이 생겼을 정도입니다만, 길어져 왔으므로, 일단 여기까지.
중편에 이어
Reference
이 문제에 관하여(Raspberry Pi로 집에 걸려온 전화를 밖에서도 확인할 수 있도록 해 보았다(전편)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/haradaj/items/bd66361ccfe4ba7ac65f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)