f 터진수박 (Burst Watermelon) :: 'telegram' 태그의 글 목록
반응형

텔레그램 메신저를 이용하여 아파트,단독주택,오피스텔의

매매,전세,월세 실거래가를 알림으로 받는 방법

 

 

▶ 손으로 일일이 찾아보는 수고를 덜어주다

  • 요즘은 아파트 실거래가를 보여주는 스마트폰 어플이 넘쳐난다. 하지만, 단지 개별적으로만 등록할 수 있게 되어있어 전체적으로 보고싶을 때에는 단지 하나하나 일일이 지정해줘야 실거래가를 실시간으로 받아 볼 수 있습니다.
  • 텔레그램 메신저를 이용하여, 이 기능을 추가하면 각각의 단지뿐만 아니라 동별, 구별로 전부 볼 수 있습니다.
  • 매일 아침 시계 알림처럼 전체적으로 부동산 흐름이 어떻게 흘러가는지 파악할 수 있으며, 본인이 소유하고 있는 특정 단지의 실거래가 어느 정도인지 매일 매일 쉽게 알 수 있도록 해줍니다.

 

▶ 기본적인 사용 방법

 

 

  • 텔레그램 메신저를 설치 후 아래 봇들 중 알림을 받고자하는 봇들의 링크를 클릭하여 추가시켜 줍니다. (여기서 봇이란? : 쉽게 이해하면 애드온 플러그인이라 생각하시면 됩니다. 스마트폰에 추가적으로 설치되는것은 없지만, 텔레그램 메신저에서 특정 기능을 실행하는 프로그램을 지칭합니다.)

 

  • 사용법은 봇에게 아무 말이나 시키면 다음과 같이 사용방법이 나옵니다.
  • 명령어 사용법:
    • /howmuch 지역코드 년월 필터 : 해당 지역의 월 거래를 확인하며, 필터를 포함하는 정보를 조회합니다.(년월이 생략되면 현재 월로 설정되며, 필터가 생략되면 전체 구/군의 정보가 나옵니다.)
    • ex. /howmuch 11710 201603
    • ex. /howmuch 11710
    • ex. /howmuch 11710 201603 잠실

 

  • /loc 지역명 : 지역코드 검색.
    • 예시 : "/loc 송파" 라고 입력하면, 받아보고자하는 지역의 코드를 알려줍니다.
    • 위와 같이 입력하면 송파구 코드인 "11710"이라고 알려줍니다.
    • 이 코드를 가지고, 아래와 같이 알림받고자하는 지역을 추가시켜 줍니다.
  • 알림받고자하는 지역 추가 방법 : /noti add (지역코드)
  • /noti add 지역코드 필터 : 지역코드 다음에 필터를 적어놓으면 해당구에서도 필터 단어가 들어간곳만 보여줍니다.
    • 예시 :  "/noti add 11710 잠실" 이라고 설정해놓으면, 송파구에서도 잠실동에 관한 자료만 보여줍니다. 아래의 경우 서초구에서도 "서초" 단어만 있는 실거래만 보기위해 설정해 놓고있습니다.

 

  • /noti list : 알림 지정해 놓은 리스트 조회.
    • 아래와 같이 현재 본인이 지정해 놓은 리스트가 나타납니다.

 

  • /noti remove 아이디 : 알림 삭제.

 

  • 위와 같이 다 설정하였으면, 매일 아침 아래와 같이 국토부 실거래가에 거래된 내역이 반영되어 메시지를 받아 볼 수 있습니다.

 

 

▶ 기타 사항들

  • 명령어는 3가지 입니다.
  • /howmuch 명령어를 이용해서 조회를 해볼 수 있습니다.
  • 파라미터로는 지역코드, 년월, 필터를 받는데 순서를 꼭 지켜주시지 않으면 에러메시지를 답하게됩니다.
  • /loc 명령어는 위 /howmuch 명령어의 첫번째 파라미터인 지역코드를 얻기 위해서 존재합니다. 동단위가 아니라 구/군의 이름으로 검색을 해야 합니다.
  • 이렇게 해서 /howmuch 명령어를 실행하면 구/군단위로는 너무 결과가 많을 경우가 있기 때문에 /howmuch 마지막 파라미터인 필터가 있습니다. 필터는 선택옵션이긴 한데, 주게되면 결과 중에 해당 필터 단어를 포함하는 값만 화면에 뿌려줍니다.
  • 이렇게 해서 원하는 지역을 조회보고, 새로운 정보가 있을 경우 매일 아침에 정보를 받아보고 싶으시면 /noti 명령어를 쓰면 됩니다.
  • /noti add 명령어를 통해서 /howmuch와 동일한 정보를 받아 볼 수 있습니다.
  • 주의할 점은 /noti add 시에는 년월을 주지 않아도 된다는 점입니다. 최신 데이터를 검색하므로 현재월과 전월을 자동으로 넣어서 조회해 보거든요.
  • /noti list는 현재 자신이 등록한 노티들을 체크하는 명령어이며, 쓸데없는게 등록되어 있거나 실수한 명령어들은 /noti remove로 제거하면 됩니다.

 

 

업데이트 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형
  • 텔레그램 테마 : 텔레그램 메신저도 이제 사용자가 마음껏 원하는 색상, 모양으로 겉모습을 변경할 수 있게되었습니다. "설정-테마" 메뉴로 들어가면, 메신저의 세세한 부분까지 변경할 수 있게 되었습니다.
  • 아래의 테마들은 지금까지 텔레그램 사용자들이 제작한 테마들입니다. 샘플 그림과 함께 원하는 테마를 추가하여 사용하시면 됩니다.

 

  • Telegram Themes : Telegram Messenger now also allows users to change their appearance to any color or shape they desire. When you go into the "Settings - Themes" menu, you can change the details of Messenger.
  • The following themes have been created by telegram users. You can add your favorite theme with sample picture.

 

  • 텔레그램 데스크탑용 테마 소개글도 따로 있으니 참고하시기 바랍니다.
  • There is also a theme introduction for Telegram Desktop.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 텔레그램 테마 채팅방에 들어오시면 새로운 테마를 보실 수 있습니다. (@AndroidThemes)
  • Check out the @AndroidThemes and Desktop Themes channels for more new themes made by Telegram users.

 

업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com

반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형
  • 홈페이지나 블로그를 운영할 경우, 방문자들이 좋은글이나 유용한글을 본인 소셜미디어 계정으로 복사해가거나, 프린트하기, 전달하기 등을 이용할 수 있도록 만들어주는 플러그인입니다.
  • 요즘같이 다양한 소셜미디어가 사용되는 시대에, 각국마다 인기있는 여러가지 소셜미디어들이 사용되는데 일일이 찾아다니는 번거로움을 줄여주고 한번에 다양한 소셜미디어 공유하기 버튼을 만들어 줍니다.
  • 먼저 애드디스 사이트에 가입해서 계정을 만듭니다. (https://www.addthis.com/)
  • 그리고 Add Profile 버튼을 클릭하여 사이트에 부착할 새로운 공유버튼 플러그인을 만듭니다.

 

  • Profile 이름을 입력합니다.

 

  • 방문자에게 보여줄 소셜미디어 공유버튼을 만듭니다.

  • 여러가지 방식 중 제일 많이 사용하는 공유하기 버튼 부착형인 첫번째 아이콘을 클릭합니다.

 

  • 사이드바 방식, 글 중간 삽입방식, 확장형 등 여러가지 방식들 중 원하는 타입을 선택합니다.

 

  • 워드프레스의 경우 따로 워드프레스 플러그인을 메뉴에서 설치하시면 됩니다. 그 외에 사이트에는 아래와 같이 </body>가 끝나는 부분에 직접 HTML 소스코드에 Addthis 스크립트를 삽입하는 방식으로 설치합니다.

 

  • 구글 블로거 (GoogleBlogger)의 경우 아래 소스코드처럼 본문밑이나 라벨윗부분 또는 기존 공유버튼을 삭제하고 그 자리에 삽입할 수 있습니다.


  • 다음 티스토리의(Tistory)의 경우 아래와 같이 본문이 삽입되는 소스코드 바로 밑에 삽입하기도 합니다. (티스토리 태터데스크를 사용할 경우 Addthis 플러그인이 작동하지 않습니다. 따라서 태터티스크를 사용하지 않아야 이 플러그인이 정상적으로 보입니다.)

 

  • 정상적으로 설치하였으면, 아래와 같이 각각 설치한 플러그인이 보입니다.

 

업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com

반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형

먼저 텔레그램 봇 생성부터 합니다.
텔레그렘을 실행 – @BotFather 검색 – 시작


시작할 때 봇에 관한 명령어가 나오는 데 우리가 필요한 부분은 /newbot 입니다.
/newbot 입력

@BotFather: Alright, a new bot. How are we going to call it? Please choose a name for your bot.
나는 봇! (채팅방에서 보일 이름)

@BotFather: Good. Now let’s choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.
xxxxx_BOT (봇을 부를 때 이름 @xxxxx_BOT , 주의: 영어로만 작성 가능, 마지막에 BOT이라는 단어는 꼭 들어가야 함)

@BotFather: Use this token to access the HTTP API
111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA (이 값은 유출되면 안 됩니다.) #


이제 만든 봇을 검색합니다.
아니면 위에 사진처럼 telegram.me/XXXXX_BOT 이라 적힌 주소로 가도 됩니다.


시작



시작이 됐다면 아무 반응이 없습니다.


아무 단어나 적어 꼭 한번 말을 걸어주는 작업이 꼭 필요합니다.




이제 웹 브라우저 크롬, IE, 파폭 아무거나 키신 뒤 주소창에 자신이 위에서 발급받은 봇토큰 값을 넣고 접속합니다.
https://api.telegram.org/bot봇토큰/getUpdates
https://api.telegram.org/bot111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/getUpdates
주의 – 잘못된 링크 예) https://api.telegram.org/111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/getUpdates
https://api.telegram.org/ 뒤에 bot이라는 단어가 지워짐

chat_id 값이 필요한데 저 부분이 chat_id에 대한 값입니다. (혹시 값이 안나오는 분들은 봇에게 다시 한번 말을 걸어보세요.)

{“ok”:true,”result”:[{“update_id”:939819607,
“message”:{“message_id”:82,”from”:{“id”:#여기값이필요,”first_name”:”Joe”,”last_name”:”Bloggs”,”username”:”jbloggs”},”chat”:
{“id”:1234567,”first_name”:”Joe”,”last_name”:”Bloggs”,”username”:”jbloggs”},”date”:1436104512,”text”:”\/off 1″}}]}

이번에는 주소창에 밑에 값을 입력해서 봇에게 메시지 전달이 성공적으로 가능한가 확인을 해야합니다.
https://api.telegram.org/bot봇토큰/sendMessage?chat_id=챗아이디&text=Hello
https://api.telegram.org/bot111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/sendMessage?chat_id=123456789&text=Hello


성공했다면 봇이 나에게 Hello라는 말을 걸어옵니다.


이제 봇에 대한 준비는 끝났고 본격적으로 DSM 웹 스테이션 + 알림 SMS 연동이 남았습니다.

Telegram.php <- 먼저 php 파일을 받습니다.

SynologySMStelegram09

웹 스테이션에 위에서 받은 파일을 넣습니다. 잘 모른다면 -> Synology Web Station 웹 서비스 활성화하기
제어판 – 알림 – SMS
SMS 알림 활성화 – 체크

SMS 제공업체 추가 – 클릭


공급자 설명
공급자 이름: 원하는 이름 (ex: DSM Notice)
SMS: URL: http://localhost/telegram.php?user=1&pass=1&phone=010&body=Hello World&bot_token=봇토큰&chat_id=챗아이디
예) http://localhost/telegram.php?user=1&pass=1&phone=010&body=Hello World&bot_token=111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&chat_id=123456789

다음


사진과 동일하게 옵션 설정 후 적용


SMS 서비스 제공업체: 위에서 만든 공급자 이름
사용자 이름: 1
패스워드: 1
패스워드 확인: 1
기본 전화 번호: 010 – 1

적용

SynologySMStelegram13
테스트 SMS 메시지 전송 – 확인


알림이 왔다면 끝났습니다.

SynologySMStelegram15
고급탭에서 SMS에 대한 알림 설정을 만질 수 있습니다.
예) IP 주소 차단을 받고 싶다면 체크 후 저장

SynologySMStelegram16

원글 출처 : https://nas.moe/archives/879



업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com


반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형

telegram-bot-weatherman
Weatherman Bot will tell you the weather in your city. Supports several languages, gives weather for today, tomorrow and 5 days. You can set weather notifications too | @weatherman_bot

telegram-bot-store
Store Bot helps you discover the best bots available on Telegram, rate and review them |@storeBot


telegram-bot-many
Many Bot lets you create your own bots, send messages to your subscribers, create custom commands, create custom menus and submenus, autopost from RSS, Twitter, VK and YouTube | @manyBot
 



 
telegram-bot-pronunciation
Pronunciation Botallows you to convert text into speech in 84 languages. You can also use this bot in groups, simply open this bot’s profile and press “Add to group” |@pronunciationbot


telegram-bot-osm
OpenStreetMap Botfinds any location in the world from the Nominatim OSM database
-The bot can send links and maps (jpeg, png or pdf) from OSM
-Data for all the world (cities and towns, shops -with phone number, email…-, Wikipedia links, etc)
-OSMbot is multilingual and speaks in english |@osmBot


telegram-bot-savevideo
SaveVideo Bot allows you to download your favorite video from YouTube and more other video sharing websites |@savevideoBot


telegram-bot-translator
Translator Bottranslates your messages to any language you choose, and magically translates in multi language groups. Talk to new people from all over the world! |@ytranslatebot


업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com


반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형
채널은 단방향으로 뉴스나 커뮤니트 주소를 등록해 놓으면 새로운 글을 정기적으로 전송해 주는 거입니다. 봇은 양방향으로 사용자들의 요청을 분석하여 알맞는 답변을 보내주는 기능입니다.
 
* (공통) 채널 OR 봇 추가하기
-  '채팅방' 탭 위 검색창에 추가하고 싶은 채널 명을 입력한다. ( 예) @mainnews )
- 봇에서는 입력창에 "/" 를 입력하면 해당 봇에서 입력 가능한 명령어가 나옵니다.
 
  

■ 유용한 텔레그램 채널 및 봇 정리

1. 주요 신문 헤드라인 채널

- 주소 : https://telegram.me/mainnews

- 기능 : 한겨레 경향신문 조선일보 중앙일보 동아일보 국민일보 등 다양한 신문사의 메인 뉴스를 올려 줌

 
2. 네이버, 다음 웹툰 알람 봇 

- 주소 : https://telegram.me/webtoon_bot

- 기능 : 네이버나, 다음에 지정된 웹툰이 등록될때 마다 자동으로(최대 30분 주기 모니터링) 알림

- 알람 등록 : /알람 [웹툰URL] 명령어로 원하는 웹툰을 등록가능

ex) 네이버 마음의 소리

/알람 http://comic.naver.com/webtoon/list.nhn?titleId=20853

/알람 http://comic.naver.com/webtoon/detail.nhn?titleId=20853&no=997&weekday=tue

ex) 다음 미생

/알람 http://webtoon.daum.net/webtoon/view/miseng

/알람 http://webtoon.daum.net/webtoon/viewer/34111


- 알람 취소

ex) 다음 미생 알람 취소

/취소 daum:miseng

ex) 네이버 마음의 소리 알람 취소

/취소 naver:20853

 

3. 토랜토 검색 봇

- 주소 : https://telegram.me/jinsyu_torrent_bot

- 기능 : 토랜토 명을 검색하면 시드를 검색해서 바로 받을 수 있게 해줌

4. 클리앙 봇 

- 알뜰구매 : https://telegram.me/ClienNotiBot

- 댓글알림 : https://telegram.me/clien_bot

5. 지름뽐뿌 채널

- 주소 : https://telegram.me/jirum

- 기능 : 해뽐, 뽐뿌 는 추천 10개 이상. 알구게는 댓글 10개 이상 글 모음

6. 중고나라 가격 검색 https://telegram.me/jinsyu_joonggonara_bot

- 중고나라 카페에서 최신순이 아니라 정확도 순으로 정렬 결과

7. 뉴스 채널 및 봇

오마이Tv 채널 : https://telegram.me/OhmyNewsTV 

뉴스타파 채널 : https://telegram.me/newstapa 

국민tv 채널 : https://telegram.me/kukmintv

한겨레 정치bar 채널 : https://telegram.me/polibar99

뉴스프로 채널 : https://telegram.me/newspro

BBC 국제뉴스봇 : https://telegram.me/BBCNewsBot

시사 뉴스 클리핑 : https://telegram.me/Journal_List 

 
 
 

9. 이것저것링크 채널 https://telegram.me/ththlink

- IT 관련된 관심 거리들을 모아서 보여줍니다.

10. 구글 analytics 결과 봇 : https://telegram.me/metricsbot

- 블로그 관리자들을 위한 봇

11. 나무위키 봇 : https://telegram.me/namuwikiBot

12. GIF 모음 : 

https://telegram.me/topgif 

https://telegram.me/GIFsChannel

- 여자 연예인 사진 모음 : https://telegram.me/Girlsphoto

  

13. 뮤직

데일리뮤직 채널 : https://telegram.me/Best_Music_Channel

노래 앨범 모음 채널 : https://telegram.me/FullAlbums


14. 기타

딴지일보 물뚝심송 채널 : https://telegram.me/multukss

스타워즈 제다이 채널 : https://telegram.me/xedyknights 

팟캐스트 아부나이니홍고 채널 : https://telegram.me/abunaikids 

황야의 이리 채널 : https://telegram.me/dewolfcraft 

만화가 이종범(네이버 웹툰 '닥터 프로스트') 개인 채널 : https://telegram.me/jbjblee

공부하는가족 채널 : https://telegram.me/homemag 

축구 소식 및 일정 :

https://telegram.me/FootballChannel 

https://telegram.me/FootyNews


15. 부동산 실거래가

https://telegram.me/apart_bot

사용법은 봇에게 아무 말이나 시키면 다음과 같이 help가 뜹니다.

명령어 사용법:
/howmuch 지역코드 년월 필터 : 해당 지역의 월 거래를 확인하며, 필터를 포함하는 정보를 조회합니다.
(년월이 생략되면 현재 월로 설정되며, 필터가 생략되면 전체 구/군의 정보가 나옵니다.)
ex. /howmuch 11710 201603
ex. /howmuch 11710
ex. /howmuch 11710 201603 잠실
/loc 지역명 : 지역코드 검색.
ex. /loc 송파
/noti add 지역코드 필터 : 노티 등록. howmuch의 사용법과 유사하며, 해당 결과가 있을 경우 매일 아침에 전송함(필터생략가능. 첫 노티는 전월 데이터도 전송됩니다).
ex. /noti add 11710 잠실
/noti list : 노티 리스트 조회.
/noti remove 아이디 : 노티 제거.
명령어는 3가지 입니다.
/howmuch 명령어를 이용해서 조회를 해볼 수 있습니다.
파라미터로는 지역코드, 년월, 필터를 받는데 순서를 꼭 지켜주시지 않으면 에러메시지를 답하게됩니다.

/loc 명령어는 위 /howmuch 명령어의 첫번째 파라미터인 지역코드를 얻기 위해서 존재합니다.
동단위가 아니라 구/군의 이름으로 검색을 해야 합니다.

이렇게 해서 /howmuch 명령어를 실행하면 구/군단위로는 너무 결과가 많을 경우가 있기 때문에 /howmuch 마지막 파라미터인 필터가 있습니다. 필터는 선택옵션이긴 한데, 주게되면 결과 중에 해당 필터 단어를 포함하는 값만 화면에 뿌려줍니다.

이렇게 해서 원하는 지역을 조회보고, 새로운 정보가 있을 경우 매일 아침에 정보를 받아보고 싶으시면 /noti 명령어를 쓰면 됩니다.
/noti add 명령어를 통해서 /howmuch와 동일한 정보를 받아 볼 수 있습니다.
주의할 점은 /noti add 시에는 년월을 주지 않아도 된다는 점입니다. 최신 데이터를 검색하므로 현재월과 전월을 자동으로 넣어서 조회해 보거든요.
/noti list는 현재 자신이 등록한 노티들을 체크하는 명령어이며, 쓸데없는게 등록되어 있거나 실수한 명령어들은 /noti remove로 제거하면 됩니다.


업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com


반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형

DSM 6.0 이상 버전에서 xpebot (https://github.com/acidpop/xpebot) 을 적용하게 되면 다운로드 완료 시점에서 상태 정보가 "에러" 로 표시된다.

DSM 6.0부터는 각 Application 별로 계정이 따로 존재하고, postgresql DB 에서도 계정별로 권한이 주어져 있기때문에 기존 Trigger 와 sql function 이 내부적으로 permission denied 오류가 발생하게 된다.

DSM 6.0 에서는 xpebot 만 git으로 받고 실행 한다고 해서 알림을 받을수는 없다.

1. Download Staion 설치 및 설정.
DSM 6.0 이후 버젼에 Download Station 이 설치되어 있어야 한다.
DownloadStation 을 설치 하고 다운로드 받을 대상 폴더와 감시 폴더를 각각 설정한다.

synology6_smstelegram01
주의 : 다른 시스템의 디스크를 Mount 한 디렉토리는 감시 폴더 작동이 제대로 안된다.


2. GitServer 설치.
패키지 센터를 열고 GitServer 를 설치 한다.

synology6_smstelegram02


3. Python 설치.
패키지 센터를 열고 개발자 도구 메뉴를 클릭한 다음 Python3 와 Python Module 을 설치 한다.

synology6_smstelegram03


4. 사용자 설정.
제어판 -> 사용자 메뉴를 클릭한 다음
고급 탭으로 이동한다.
그후 스크롤을 가장 아래로 내려보면 사용자 홈 서비스 활성화 버튼이 있는데 해당 부분을 체크 하고 확인 버튼을 누른다.

synology6_smstelegram04


5. SSH 서비스 활성화.
제어판 -> 터미널 및 SNMP 메뉴를 클릭한 다음
SSH 서비스 활성화 버튼을 체크하고 "적용" 버튼을 클릭한다.

synology6_smstelegram05


6. SSH 접속.
SSH 에 접속 할 수 있는 툴을 실행한다.

  1. Putty : Putty download
  2. XShell : Xshell download

Putty 또는 ssh 접속 툴을 이용하여 NAS 의 ip 를 적고 port 는 22 번으로 접속한다. (5번에서 port 를 변경 하였다면 변경한 port 로 접속)
ID : DSM 로그인 ID (Admin Group 에 속해 있어야 함)
PW : DSM 로그인 ID 의 Password


7. Download Station 계정 변경하기
ssh 접속된 상태에서 다음 명령으로 root 계정으로 전환 할 수 있다.

sudo -i

위 명령을 실행 하면 Password 를 물어 보는데
DSM 로그인 ID 의 Password 를 입력 하면 된다.
whoami 명령을 이용해서 root 라고 표시 된다면 root 로 로그인 된것이다.
다음 명령으로 계정 정보를 변경 해야 한다.

vim /etc/passwd

위 명령을 수행하면 아래와 같은 화면을 볼수 있다.

anonymous:x:21:21::/nonexist:/usr/bin/nologin
avahi:x:84:84::/:/bin/false
dbus:x:81:81::/:/usr/bin/nologin
dovecot:x:143:143::/dev/null:/usr/bin/nologin
DownloadStation:x:125560:125560::/var/packages/DownloadStation/target:/usr/bin/nologin
ftp:x:21:21::/nonexist:/usr/bin/nologin
guest:x:1025:100:Guest:/nonexist:/usr/bin/nologin
http:x:1023:1023::/var/services/web:/bin/false
ldap:x:439:439::/var/lib/openldap:/usr/bin/nologin

이 부분을 다음과 같은 변경 한다.
커서를 수정 하려는 곳으로 이동 후에 i 키를 누르고 /bin/sh 를 입력한다.
필요 없는 부분은 delete 키를 이용해서 지운다.

anonymous:x:21:21::/nonexist:/usr/bin/nologin
avahi:x:84:84::/:/bin/false
dbus:x:81:81::/:/usr/bin/nologin
dovecot:x:143:143::/dev/null:/usr/bin/nologin
DownloadStation:x:125560:125560::/var/packages/DownloadStation/target:/bin/sh
ftp:x:21:21::/nonexist:/usr/bin/nologin
guest:x:1025:100:Guest:/nonexist:/usr/bin/nologin
http:x:1023:1023::/var/services/web:/bin/false
ldap:x:439:439::/var/lib/openldap:/usr/bin/nologin

/usr/bin/nologin -> /bin/sh.
수정 완료 후 ESC 키를 한번 누르고 :wq (콜론 wq) 명령을 입력하고 엔터를 치면 수정 된다.


8. DownloadStation 계정으로 로그인하기
/etc/passwd 수정이 끝났다면 다음 명령으로 DownloadStation 계정으로 로그인 할 수 있다.

su - DownloadStation

위 명령을 수행 하고 whoami 명령을 이용해서 DownloadStation 계정으로 로그인 되었는지 확인 한다.

9. 알림을 받을 Table 및 트리거 생성하기.
DownloadStation 계정으로 로그인 되었다면 아래 명령을 이용해서 postgresql 에 접속 한다.

psql -U DownloadStation -d download

명령을 수행 하면 다음과 같은 화면을 볼 수 있다.

psql (9.3.6)
Type "help" for help.
download=#

위 상태에서 다음 Query 문을 이용하여 Table, Function, Trigger 를 생성한다.
다음 순서 대로 Query 문을 복사/붙여넣기 한다. (Query file : DOWNLOAD )

1. Create Table.

synology6_smstelegram06


2. Create OR Replace function

synology6_smstelegram07


3. Create Trigger

synology6_smstelegram08

Query 가 성공적으로 끝났다면 \q 를 입력하면 psql 이 종료 된다.

10. root 계정으로 전환 후 xpebot 설치 하기
exit 명령을 이용해서 root 계정으로 다시 돌아온다.
혹시 root 계정으로 돌아오지 않는다면 ssh 접속을 종료하고 다시 접속하여 sudo -i 명령을 이용해 root 계정으로 로그인한다.
다음 명령을 이용해서 사용자 홈 경로로 이동한다.

cd /volume/homes/admin

위 명령에서 admin 은 자신의 dsm 로그인 ID 이다. 각자 ID에 맞게 수정해서 수행한다.
xpebot 설치는 다음 명령을 차례대로 수행한다.

synology6_smstelegram09

bot.sh 파일을 열어 3번째 줄의 admin 부분을 자신의 계정으로 변경한다.
xpebot.cfg 파일을 열어 각각의 정보를 변경한다.

  1. NOTY_CHAT_ID 는 Downlaod Staion 에서 다운로드 진행 현황 알림을 받을 사용자의 Chat ID 값을 입력한다.
  2. DSM_ID 는 자신의 DSM ID 를 입력한다.
  3. BOT_TOKEN 은 Telegram 의 Bot Father 에서 /newbot 을 요청하여 BOT 생성 후 자신의 BOT TOKEN 값을 입력한다.
  4. VALID_USER 는 인증된 사용자의 chat_id 값을 입력한다. 여러명일 경우 ,(콤마)를 이용해 구분한다.
  5. NAVER_API 섹션에 발급 받은 CLIENT_ID_KEY 값과 CLIENT_SECRET_KEY 값을 입력한다.
  6. RSS_NEWS 섹션에 보고 싶은 뉴스의 RSS 주소를 입력한다.
  7. DATA 섹션에 data.go.kr 에서 발급 받은 서비스 키를 입력한다

수정이 완료 되었다면 다음 명령어로 bot 을 실행 하거나 중지 시킬 수 있다.

./bot.sh start

./bot.sh stop

./bot.sh restart

./bot.sh chk

Download Station 계정으로 로그인 하고 Table, Function , Trigger 까지만 생성이 되었다면 https://github.com/acidpop/xpebot
github 에 있는 내용대로 하면 된다.


원본 참고 : http://blog.acidpop.kr/240?srchid=BR1http://blog.acidpop.kr/240



업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com


반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,
반응형

 



Telegram Sticker Contest 2016(2016 텔레그램 스티커 콘테스트 수상작)


Other stickers

  • 다크소울

https://telegram.me/addstickers/CuteSouls

  • 도타

https://telegram.me/addstickers/DotaHeroes

  • 동물의 숲

https://telegram.me/addstickers/ACNL1

  • 동방프로젝트

https://telegram.me/addstickers/flandre
https://telegram.me/addstickers/chentouhou
https://telegram.me/addstickers/tohotojangcon
https://telegram.me/addstickers/newtojangcon


  • 드래곤 퀘스트

https://telegram.me/addstickers/DragonQuestMonsters


  • 레이튼 교수

https://telegram.me/addstickers/ProfessorLaytonLINE


  • 리그 오브 레전드

https://telegram.me/addstickers/g_leagueoflegends
https://telegram.me/addstickers/g_leagueoflegends2
https://telegram.me/addstickers/g_leagueoflegends3
https://telegram.me/addstickers/Ahriticon
https://telegram.me/addstickers/VKtimo
https://telegram.me/addstickers/LeagueOfLegendsByCuoricorni


  • 리플렉비트 히나비타

https://telegram.me/addstickers/meumeu


  • 마인크래프트

https://telegram.me/addstickers/stickercraft


  • 매직 더 게더링

https://telegram.me/addstickers/MTGAlphaCropped
https://telegram.me/addstickers/MTGAlphaCropped2
https://telegram.me/addstickers/MTGAlphaCropped3


  • 메가맨

https://telegram.me/addstickers/MegamanCollection


  • 소닉 더 헤지혹

https://telegram.me/addstickers/sonicthehedgehogline
https://telegram.me/addstickers/SonicFromSonic3Stickers


  • 슈타인즈 게이트

https://telegram.me/addstickers/SteinsGates_mlx
https://telegram.me/addstickers/SteinsGateFeelOn


  • 슈퍼마리오

https://telegram.me/addstickers/SuperMarioBros


  • 스플래툰

https://telegram.me/addstickers/splatoon


  • 아이돌마스터

https://telegram.me/addstickers/theidolmaster
https://telegram.me/addstickers/idolmasterLstickers
https://telegram.me/addstickers/PUCHIMAS
https://telegram.me/addstickers/IMASCG1
https://telegram.me/addstickers/IMASCG2
https://telegram.me/addstickers/yayoi_p
https://telegram.me/addstickers/idolkejang
https://telegram.me/addstickers/StarrankUp
https://telegram.me/addstickers/idolmaster_cinderellagirls_pack


  • 언더테일

https://telegram.me/addstickers/undertalepack
https://telegram.me/addstickers/undertaleDC
https://telegram.me/addstickers/undertaleBlooky


  • 유메닛키

https://telegram.me/addstickers/yumenikki


  • 젤다의 전설

https://telegram.me/addstickers/TLofZ


  • 짱구는 못말려

https://telegram.me/addstickers/Shinchan_3


  • 칸코레

https://telegram.me/addstickers/KantaiCollection


  • 클래시 오브 클랜

https://telegram.me/addstickers/ClashOfClans


  • 테라 엘린

https://telegram.me/addstickers/teraelin_lq


  • 팜 겟츠 와이파이

https://telegram.me/addstickers/pomgetswifi


  • 포탈

https://telegram.me/addstickers/aperturescience


  • 포켓몬스터

https://telegram.me/addstickers/MorePokemon
https://telegram.me/addstickers/MorePokemon2
https://telegram.me/addstickers/teamrocket
https://telegram.me/addstickers/pokes
https://telegram.me/addstickers/Jigglypuff
https://telegram.me/addstickers/bidoof


  • 폴아웃

https://telegram.me/addstickers/Pipboy
https://telegram.me/addstickers/Pipboy2


  • Dumb ways to die

https://telegram.me/addstickers/dumbways2die






































  • 여고생과 편의점

https://telegram.me/addstickers/schoolgirl_and_cstore













https://telegram.me/addstickers/zootopiaDC

















 

  • 하츠네 미쿠

https://telegram.me/addstickers/hatsunemiku

 채팅방에서 직접 스티커를 추가하는 것은 막혀 있지 않으므로 그 외의 하츠네 미쿠 라인 스티커는 @Hatsune_Miku 채널에서 받을 수 있다. (sticker 키워드로 검색.)


  • 닥터 후

https://telegram.me/addstickers/drwho
https://telegram.me/addstickers/whovian


  • 랑야방

https://telegram.me/addstickers/langyastickers


  • 빅뱅이론

https://telegram.me/addstickers/TBBT1


  • 스타워즈

https://telegram.me/addstickers/The_Yoda_Collection_By_OsmerOmar


  • DC인사이드

https://telegram.me/addstickers/dccon
https://telegram.me/addstickers/kejangcon
https://telegram.me/addstickers/kejangcon2


  • 고양이

https://telegram.me/addstickers/real_cats


  • 도른자

https://telegram.me/addstickers/Dorunza


  • 라인

https://telegram.me/addstickers/LineFriends
https://telegram.me/addstickers/LineCony
https://telegram.me/addstickers/LovelyBrownandCony
https://telegram.me/addstickers/linebrownandcony
https://telegram.me/addstickers/Linemoon
https://telegram.me/addstickers/linemoon2
https://telegram.me/addstickers/LineJames
https://telegram.me/addstickers/LineJames2


  • 몰랑이

https://telegram.me/addstickers/lalalalalalala


  • 미쿠모 안즈

https://telegram.me/addstickers/Chracter


  • 카카오톡

https://telegram.me/addstickers/kakao_frodo
https://telegram.me/addstickers/kakao_neo
https://telegram.me/addstickers/kakao_muzi
https://telegram.me/addstickers/kakao_apeach
https://telegram.me/addstickers/kakao_tube
https://telegram.me/addstickers/kakao_lion


  • 크로

https://telegram.me/addstickers/crocodile


  • 투즈키

https://telegram.me/addstickers/Tuzki
https://telegram.me/addstickers/Tuzki_2


  • 포돌이

https://telegram.me/addstickers/podori_posuni


  • 페페 더 프로그

https://telegram.me/addstickers/frogthepepe


  • 뿌까

https://telegram.me/addstickers/Pucca


  • 헬로키티

https://telegram.me/addstickers/hellokitty


  • ASDF Movie

http://telegram.me/addstickers/asdfmovie


  • DOCA

https://telegram.me/addstickers/doca_dog
https://telegram.me/addstickers/doca2_dog


  • Facebook Foxes

https://telegram.me/addstickers/facebooksfoxes
https://telegram.me/addstickers/facebooksfoxes2


  • Facebook Sugar Cubs

https://telegram.me/addstickers/facebooksugarcubs


  • LegCat

https://telegram.me/addstickers/LegcatByGhafoori


  • Pusheen the cat

https://telegram.me/addstickers/pusheen
https://telegram.me/addstickers/pusheen2


  • Puppy girl

https://telegram.me/addstickers/puppygirl


  • Rage Meme

http://telegram.me/addstickers/RageMemes
http://telegram.me/addstickers/RageMemes2


  • Spoiled Rabbit

https://telegram.me/addstickers/Rabbit4eli


  • 파벨 두로프

https://telegram.me/addstickers/PavelDurov_etc


  • 김정은

https://telegram.me/addstickers/supremeleader


  • 김무성

https://telegram.me/addstickers/kingmusung


  • 그것이 알고 싶다

https://telegram.me/addstickers/wannaknow


  • 무한도전

https://telegram.me/addstickers/mudoo


  • 문재인

https://telegram.me/addstickers/moonjaein


  • 박근혜

https://telegram.me/addstickers/HappyGH
https://telegram.me/addstickers/baggune


  • 정청래

https://telegram.me/addstickers/jcrpicture


  • 밥 로스

https://telegram.me/addstickers/JOPBobRoss


  • 방탄소년단

https://telegram.me/addstickers/bangtanbombs


  • 붕탁

https://telegram.me/addstickers/gatimuti


  • 브베

https://telegram.me/addstickers/bjbbe


  • 심영

https://telegram.me/addstickers/simyoung


  • 안철수

https://telegram.me/addstickers/ahncheolsu


  • 윤서인

https://telegram.me/addstickers/joyride


  • 전광렬

https://telegram.me/addstickers/jeonkwangryul


  • 정의당

https://telegram.me/addstickers/JusticeParty


  • 째원

https://telegram.me/addstickers/xaewon


  • 칸예 웨스트

https://telegram.me/addstickers/YeezusWest


  • 후낫시

https://telegram.me/addstickers/hunassi


  • 하연수

https://telegram.me/addstickers/Habugicon


출처 : 나무위키



업데이트 된 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

 

접속 안될 때 (When you can't access to main homepage) : http://burst-watermelon.blogspot.com

반응형
블로그 이미지

Burst Watermelon

교육의 모든 정보,투자,부동산,유용한 정보들

,