레이블이 internet of things인 게시물을 표시합니다. 모든 게시물 표시
레이블이 internet of things인 게시물을 표시합니다. 모든 게시물 표시

2015. 2. 6.

[Ambiency guide] 엠비언시 센서 필터(Filters) & 액츄에이터 인풋(Input) 사용하기!

 [Advanced features] 엠비언시 센서 필터(Filters) & 액츄에이터 인풋(Input) 사용하기! 


센서 앱과 액츄에이터 앱을 연결하여 자동화 규칙을 생성하는 엠비언시(Ambiency).
이 엠비언시 앱을 멋지고 유용하게 사용하기 위해선 조금의 연습이 필요해요.

그리고 우리 생활에서 불필요한 것들을 자동화하여 편하게 만들 수 있는 것들은 얼마든지 있지만,
구체적으로 실현하기 위해서는 꼭 배워야할 기능이 있습니다.

바로 '센서 앱 필터(Filters)' & '액츄에이터 앱 인풋(Input)' 기능입니다!



What is filter?


data -> information


필터는 우리가 기존에 엑셀 시트에서 찾고 싶은 정보들을 거르기 위해 필터를 하는 것과 똑같은 개념으로 생각하시면 되요!
많은 정보들 중 나에게 필요한 정보만 걸러서, 그 정보를 가지고 자동화 규칙을 만드는 것입니다!


"나에게 메일이 오면, 내 책상의 스탠드가 깜빡여라!"

이 룰의 경우 나에게 메일이 오는 환경에 맞춰 스탠드의 상태가 변하는 액션이 정해졌네요.
하지만 문제가 있습니다!

나에게 오는 스팸메일부터 중요하지 않은 메일까지 모두 알림을 준다는거죠!
이럴 때 필터를 사용해서 중요한 메일만 반응하여 스탠드를 깜빡거리게 할 수 있습니다.

1. 필터 선택



2. 필요한 필터값 채우기

* '보내는 이(sender)'가 "taehyun" 이라는 이름을 포함할 때,
* '메일 본문(message)'에 "meeting' 이라는 단어를 포함할 때,
이 두 가지 경우를 모두 만족할 때만 알람을 주게 만들었습니다!


자 이렇게 해서 센서 앱에 필터를 넣음으로써 구체적인 상황을 만들어 줬습니다!

자 그렇다면 이제 액츄에이터 앱에 '인풋(Input)' 사용법을 알아볼까요?


What is Input?


Use information


인풋(Input)은 센서 앱에서 받은 정보들을 사용하기 위한 과정이라고 할 수 있습니다!
물론 센서 앱에서 필요한 정보들을 필터링하여 받고 나서 꼭 액츄에이터 앱에서 받을 필요는 없습니다.
받지 못하는 액츄에이터 앱도 있을 것이구요.
아래와 같은 상황에서는 필요하겠죠?
"내 방의 웹캠에 움직임이 감지되면, 나에게 메일로 시간과 사진을 찍어서 보내라"

위와 같은 룰의 경우 웹캠에 움직임이 감지되는 환경에 맞춰 웹캠이 사진을 찍어 메일로 보내라는 액션이 정해졌네요.

이 경우 조심해야되는 경우가 있습니다!
받고 싶은 정보는 우선 센서 앱에서 걸러져서 오기 때문에, 센서의 Trigger에 따라 액츄에이터로 넘어오는 값이 달라질 수 있는 것이죠!

ex) Trigger : motion detected vs snapshot available

위와 같이 Trigger에 따라 사용할 수 있는 액츄에이터 input 정보가 다르네요!
그럼 하나씩 해보겠습니다.

1. 인풋 선택
녹색 체크박스를 체크하면 아래와 같이 액츄에이터 인풋(Actuator Input) 화면이 나옵니다.


2. 필요한 인풋 채우기

* 받는 이(Receivers)를 woojin@narantech.com 으로 설정
* 메일 제목(Subject)에 "Warning! motion detected!!"를 입력
* 첨부 파일(File)에 감지된 사물의 이미지를 첨부
* 첨푸 파일명(File Name)에 "my room.png" 를 입력
이렇게 해서 센서 앱으로부터 나온 정보들을 액츄에이터 인풋 값으로 입력해봤습니다.

결과를 한번 볼까요?


네 이렇게 해서 원하는 정보들을 활용하여 룰을 완성해봤습니다.
이렇게 조금만 신경을 쓴다면 자신에게 맞는 정말 유용한 자동화 룰을 만들 수 있습니다.

이렇게 만들어진 유용한 룰을 다른 사람들과도 공유해 보세요!
공유 방법은 아래의 포스팅에 나와있습니다! 참고하세요 :)
[Share rules] Getting started - how to share rules


물론 조금만 신경을 쓰는 것조차 귀찮으신 분들은 아래의 이미지를 공유할 수 있습니다!
(아래의 이미지를 다운 받거나, drag&drop 해보세요!)

2015. 1. 30.

[PROTA] Automation in IoT

 [PROTA] Automation in IoT 


Who are some of the trendsetters in the field of internet of Things?


You may be familiar with them.


 They aren’t something new. They’ve been around for some years now.

What is IFTTT?
IFTTT is a website that provides service integration of web services and internet-connected products that provide open APIs.
IFTTT stands for If This, Then That!
If this happens, do that.

For instance,
as you can see from above,
This = photo is uploaded on Instagram
That = save to Dropbox
This becomes an automation rule, and they call it a recipe.
Users mix and match services to their taste to create recipes.

IFTTT provides over 150 channels for recipes. (based on 2014. 12)

What is Zapier?
Zapier is a web service that provides integration of open APIs.
With over 400 APIs, it provides rich experience to its users in automation.
As they word it, an automation is a Zap.
By selecting an API that would trigger and an API that would take an action as a result, a Zap will be created. It may be more complex than IFTTT but it gives user more freedom of choices that helps businesses manage more efficiently.

Why the spotlight on the two: IFTTT and Zapier?
Even before the excitement of IoT, automation platform has been around.
However, the reasons for the big change in people’s attitude is because of the followings.

1. Open APIs
2. End-user automation
3. The internet

Open APIs
Internet of Things is all about connectivity. In other words, isolation will not get any one far. There’ll be more than billions of connections, and collaboration will be the only way to get far and become great. That’s why everyone started opening up.


By integrating services, developers can build faster with less effort. Moreover, as a consequence of integration, more values can be provided to the end users that wouldn’t have been possible before. IFTTT and Zapier are exemplary services that make great uses of integration.

End-user Automation
Increase of the number of open APIs brings bigger possibilities but at the same time more confusion to ordinary users. IFTTT and Zapier wanted to solve this by letting users make the choices of the integration. What was possible with programming before can be done by ordinary users just by following logical steps with their mouse. With the tool in the hands of many, more can be achieved and more creative the automation experience will become.

The Internet
Internet brought richness to services and influenced how people lead their lives including the internet technology itself. Due to rapid mobile adaptation, internet has become everyday channel to most people worldwide and accelerated the world of connectedness. Internet of Things did not appear out of the blue. It’s destined to connect the world of physical and virtual things and help people lead quality life by integrating what wasn’t possible before. IFTTT and Zapier were the kind of services that aim to achieve this value.


What about us?
PROTA is a smart hub in the physical world that controls and monitors tactile things including IoT products. PROTA makes use of data from physical gadgets like sensors that check the CO2 level of local space that is hard to attain in the virtual services. PROTA bridges both on and offline environments, and it's the automation app, Ambiency that makes it possible.

If you'd like to know more, please visit our homepage.

For a brief recap of Ambiency, please check below.

How is it different?
Ambiency is a rule-based, automation app for PROTA.
It runs on one’s own machine that each user owns, keeping private data safe and not on some distant servers.

2015. 1. 26.

[PROTA ] PROTA 0.21 release

Release Note
PROTA 0.21

What's new?
  • Performance improvements
    • approx. 100% faster overall
  • Storage optimization
    • 10-50% space save
  • Stability
    • a lot less freezes
  • Many bug fixes including browser cache issues



PROTA 0.21 이 출시되었습니다!
기존 PROTA 0.20 에서 굉장히 많은 부분이 업그레이드 되었습니다.

Perfomance improvements
faster app installation & execution ...

파일 시스템 및 앱 실행 구조를 개선하여 전반적으로 실행 속도가 향상 되었습니다.

한 개의 앱을 설치할 때 걸리는 속도도 많이 단축되어 5분씩 걸리던 앱들도 1분 미만이면 설치가 완료됩니다.
또한 부팅 속도와 각 앱 실행 속도 또한 많이 개선되어 사용하면서 직접 체감하실 수 있을거라 생각합니다.
쉘 화면에 접속했을 때 멈춘 것 처럼 보이는 현상도 최소화 되었습니다.


Storage optimization
less overall storage usage

스토리지 최적화를 통해 각 앱이 차지하던 용량을 대폭으로 줄였습니다. 그에 따라 16GB의 SD 카드에 설치할 수 있는 앱들의 갯수가 많아진 것 뿐만 아니라 PROTA software 자체의 용량 자체도 가벼워졌습니다.


Stability
less freezing

기존  PROTA 0.20 버전에서는 여러 개의 앱을 동시에 설치하는 경우에 하드웨어 memory swapping으로 인해 PROTA가 멈추는 현상(freezing)이 자주 발견됐었습니다.
또한 PROTA가 어떤 작업으로 바쁜 경우 client 에서 로딩이 느려지는 경우가 빈번히 발생했었는데, 이번 PROTA 0.21 버전에서는 메모리 최적화를 이루어 내어 freezing 현상이 거의 발생하지 않게 되었습니다.

Bugs fixed & Improvement

이 밖에도 브라우저 캐쉬로 인한 UI 오류, myprota.me 상태 표시 오류 등의 버그 수정과 라즈베리전용 카메라 모듈 지원, 일부 앱들의 UI 개선 등 사용자분들의 의견을 적극 반영한 기능들을 구현하여 적용하였습니다. 앞으로도 꾸준히 PROTA 사용자분들의 의견을 들으면서 더욱 더 발전할 수 있도록 노력하겠습니다.

Download PROTA 0.21

소소한 버그나 앱 업데이트 노트는 PROTA forum을 통해서 공지해드리도록 할테니
많은 관심 부탁드려요 :)

2014. 12. 29.

[Quick & Dirty Guide] How to burn image on SD card & setup PROTA



[Quick & Dirty Guide] How to burn image on SD card & setup PROTA



(please select subtitles.)






1. How to burn PROTA Pi image on a SD card

  • Prepare
    • SD card
      • We recommend SD card of 16GB and over. Additional apps other than the image file may require more storage space.
    • PC or notebook
      • Download the image file considering your current OS of your desktop or notebook.
    • PROTA Pi OS image
      • Download PROTA Pi image file from the download link in shop.myprota.com. Go to Download.

Guide - Mac OS X, Linux
  1. Insert SD card in your PC for recognition
  2. Open terminal
  3. Command
command
$ diskutil list
$ diskutil unmountdisk {{sdcard_device_path}}
$ sudo dd if={{image_file_path}} of={{sdcard_device_path}} bs=128k



Guide - Window OS
  1. Open the app for burning image file. (i.e. Win32 Disk imager)
  2. Write image file on the SD card drive.


2. How to setup PROTA Pi
  • Prepare
    • PROTA Pi image installed SD card
    • Raspberry Pi B+ or B
    • Internet router
    • LAN cable, power adapter(5pin), web-capable personal devices
      • Web-capable personal devices include smartphones, tablets, or notebooks.
      • Recommended web browser : Chrome








Guide
  1. Make your PROTA Pi. Insert the SD card into Raspberry Pi.
  2. Raspberry Pi must have a connection of power cable and internet-capable LAN cable.
    1. Please check for recommended network environment in your PROTA Pi manual.
      link : http://thenaran.blogspot.kr/2014/09/quick-dirty-guide.html
  3. Type in myprota.me in the web address bar of your web browser after 3 to 4 minutes of boot up.
  4. When your PROTA is ready for connection, it will appear on the list.
  5. Select your PROTA and click Go for access.

2014. 8. 18.

[Quick & Dirty Tutorial] - Settings App, 셋팅 앱

사물인터넷 스마트 서버 플랫폼 PROTA의
기본 제공 앱 중 하나인 'Settings' 앱!

Settings 앱만 잘 사용해도
나의 PROTA 에는 더이상 랜선이 필요 없습니다.
PROTA의 전원선을 직접 뽑을 필요도 없습니다.
보안설정으로 누구나 쉽게 내 PROTA에 접속하지 못하게 합니다.

이외의 것들 모두를 Settings 앱만 잘~ 사용해도 가능해요!

그럼 그 방법을 알려드리겠습니다!






Settings 앱 기능
  1. PROTAs Clustering(Unapplied)
  2. Edit PROTA name
  3. PROTA Upgrade
  4. Select Startup apps 
  5. Network Settings
  6. Security Settings
  7. Reboot
  8. EULA

2014. 6. 5.

[PROTA] 사물인터넷 스마트 서버 PROTA Tutorial

 사물인터넷(IoT) 스마트 서버 PROTA Tutorial 






PROTA는 사물과 사물, 사물과 서비스를 이어주는 스마트 서버입니다.
사물인터넷 운영체제인 Clique을 탑제하여 다양한 스마트 기기들간의 "대화"를 돕습니다. 

앞으로 PROTA 이외에 많은 App과 Sidekick을 소개해드릴건데,
그 이유 또한 Clique 덕분이라고 할 수 있죠.
cf) App : Clique OS에 들어가는 Application으로써 센서부터 오픈소스 소프트웨어까지 활용
Sidekick : PROTA와 연결될 수 있는 하드웨어로써 사물인터넷을 실현하기 위한 여러 센서, 제어 기능을 갖춘 전자기기를 말한다

WHY PROTA?

"내가 집에 도착하면 저절로 거실의 불이 켜지고, 스마트폰으로 듣고 있던 음악이 집안의 스피커로 재생됐으면 좋겠다"
"회사에서 회의 전 e-mail에 '발표 준비!'라고 보내면 회의실의 프로젝터와 전동스크린이 자동으로 발표 준비 상태로 맞춰졌으면 좋겠다"

위에 예시로 써놓은 자동화 된 생활은 먼 미래에 있는 것이 아닙니다.
PROTA는 사물인터넷 스마트 서버로써 위에 적혀있는 예시들 뿐만 아니라 더욱더 많은 것을 가능하게 함으로써 사용자의 편리함을 추구하려고 합니다.

그럼 이제부터
PROTA Tutorial을 설명드리겠습니다.

  1. 1. PROTA에 LAN선과 전원케이블을 연결해주세요.


  2. 2. 1분 정도 지나면 웹브라우저 주소창에(스마트폰, 노트북, PC 모두 상관없습니다!) "myprota.me"를 입력해주세요. 그러면 아래의 이미지처럼 사용자의 PROTA가 나와요!

  3. 3. 자신의 PROTA가 검색되어 접속한다면 "Shell" 화면이 나올겁니다. 처음 PROTA를 받는다면 기본 앱구성만 되어있는 상태입니다.
  4. - myprota.me : 사용자가 PROTA를 찾을 수 있게 만드는 App
  5. - App Repositary : App 저장소
  6. - Settings : 환경설정 App
  7. 4. 먼저 Settings를 들어가보겠습니다.
  8. 5. Settings의 기본 구성은 크게 세 가지로 나눌 수 있습니다. 
  9.     (1) 클러스터링 기능. (2) Black List. (3) Reboot.
    1. 블랙리스트(Black list) : PROTA의 기본 설정은 설치되어 있는 모든 App들은 PROTA 부팅시 모두 On이 되는데, 속도저하 등의 이유로 부팅 list에서 제외할 수 있는 기능입니다.
    2. 클러스터링(Clustering) : PROTA를 두 개 이상 보유하면 사용할 수 있는 기능입니다. 클러스터링이 되면 PROTA들이 서로 연결되어 분산처리가 가능합니다.
    3. 리부트(Reboot) : PROTA를 다시 재부팅하는 기능이죠.

  10. 6. Black List를 보면, 처음 하단에는 설치되어 있는 모든 App들이 나오게 되요. 그 중에 처음 PROTA 부팅 시 Auto On List에서 제외하고 싶은 App들을 선택하면 됩니다.

  11. 7. 이제 밑에 빨간색 버튼을 누르셔서, 다시 "Shell"로 나오세요! 그리고 이번엔 App Repository로 가보겠습니다.

  12. 8. App Repository는 한 마디로 PROTA 앱 저장고 같은 것이에요. PROTA 사용자가 App을 다운받거나 직접 개발한 App을 올려놓는 저장고인거죠.

  13. 9. 그러면 App으로 'OnOff'라는 앱을 실제로 install 해보겠습니다!!

  14. 10. install이 완료된 App은 Apprepo에서 "install"꼬리표가 사라집니다. 그리고 다시 Shell로 나가보면 "OnOff"라는 App이 설치되었죠?

  15. 제가 한번 써보겠습니다...

이렇게 해서!! PROTA의 Tutorial 시간이 끝났습니다!
이번 Tutorial에서는 PC 버전으로만 진행하였는데요, 사실 스마트폰, 스마트TV와 같은 웹 브라우저가 있는 어느 디바이스라도 상관없습니다!
주소창에 myprota.me 만 입력하시면 끝!!

충분히 설명이 된 분도 있을 것이고, 아직도 이해가 안되는 분도 있으실 겁니다.
PROTA를 사용하시면서 추가적으로 궁금하신 사항이 있거나, 버그 등이 발견이 되면 
주저하지 마시고 NARAN Forum - http://forum.myprota.com 으로 오시길 바랍니다!

감사합니다!^^