Coder Social home page Coder Social logo

kadecotpeppersample's Introduction

Kadecot-Pepper Sample

Kadecot access sample for Choregraphe (Softbank's Pepper development environment)

User Interface

Pepperからスマートメーターや分電盤から提供される電力データにアクセスするためのソースコードです。 ソニーCSLのAndroidアプリ「Kadecot」に加え、「生活デザインアプリコンテスト」のサポートイベントにて配布される、「Kadecot Support Plug-in」を同一端末内に入れて動作させ、かつ「開発者モード」にチェックを入れる必要があります(通信はJSONP APIを使って行います)。

このアーカイブに含まれるのは、getPowerとgetPowerHistoryの二つのprocedureへのアクセスをおこなうChoregrapheのプロジェクトですが、入力となる文字列を変更することで、任意のKadecotのプロパティを取得することができると思います.(上記の図ではPowerNowとPowerHistoryへのアクセスと書いてありますが、getPowerとgetPowerHistoryにSupport Plug-inの仕様が変更になっています) pythonのrequestsパッケージではなくurllib2パッケージを使用しています.

[Kadecot HTTP Path Edit]ボックスと[Kadecot HTTP GET]ボックスが同梱したボックスライブラリ(kadecot.cbl)にあります. [Kadecot HTTP Path Edit]ボックスは,KadecotのHTTP GETアクセス時のパスを出力します. デフォルトでは,procedureはPowerNowで,電力瞬時値を獲得するためのパスを出力します. procedureをPowerHistoryにすると,電力の履歴を獲得するためのパスを出力します.

出力したパスを[Kadecot HTTP GET]ボックスに渡すことで,Kadecotにアクセスします. [Kadecot HTTP GET]ボックスの出力はKadecotからのjsonデータを文字列にしたものです.

kadecotpeppersample's People

Contributors

sowd avatar

Watchers

James Cloos avatar  avatar

Forkers

b3540

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.