other integrations such as RSS feeds, social network feeds,
SMS messaging and others.
User scripting. Finally, we include the ability for end
users to write their own modules using a scripting language,
currently Python. By convention, the script takes input from an
input dictionary, executes some code, and then puts any output
into an output dictionary for downstream processing. Once a
script is found to be useful, the user may save copies of these
scripts for use in other pipes. Having this capability allows the
user to extend the built in primitives with new modules as
needed.
E. RESTful Service Interface
The WoTKit has a RESTful API for things allowing
applications to control things, get the historical data from
things and register new things and their meta-data with the
system. Applications register sensors with the system by
POSTING a JSON representation of the sensor to the following
URL.
http://{host}/api/sensors/{sensor-name}
The sensor representation consists of the sensor name, a
long name used for the user interface, the location of the
sensor, whether it is a public or private sensor, and the
information about the fields of data used by the sensor.
The primary APIs are for sending and receiving data into
the system using the sensor. Gateways POST fields to the data
URL
http://{host}/api/sensors/{sensor-name}/data
While applications GET data from the same URL,
specifying query parameters for the range of data required by
the application and the representation. The system currently
supports CSV, KML (specific for location sensors), HTML and
a JSON format for direct use by Google visualizations.
F. WoTKit Summary
By providing these services, the WoTKit addresses the
requirements outlined in Section 4 as follows:
• Data storage for things meta-data such as a description,
location, and the data things produce is included. WoTKit
can store meta-data including the name, description, and
location of sensors and actuators as well as mUltiple non-nwneric (string) sensor data values in a single sensor
reading.
To share things, WoTKit users can specify whether their
things are public or private, allowing users to take
advantage of the integration work of others using the
Sensor Gallery.
Things are integrated by writing simple HTTP client
scripts that either push (POST) new data in to the system,
or poll for actuator control commands.
A built in visualization dashboard is included making it
easy for developers to view a variety of visualizations and
add them to their applications.
The processing engine allows developers to create new
processing pipes combining built in modules, and the
creation of new modules using a scripting language.
An easy to use API to register new sensors, publish data,
and retrieve data in several fonnats including CSV, JSON
and HTML is included.
Like Sen.se, the WoTKit provides a flexible dashboard;
processing components are included and sensor feeds can
contain numeric and string types, however, the WoTKit
focuses less on the integration of applications into the platform
user interface, rather providing basic built in visuals and
processing components. Like Pachube and ThingSpeak,
WoTKit serves as an aggregator of sensor data, allowing
developers to push data into the system for others to use.
Unlike Pachube, WoTKit and others support non-numeric feed
values and unlike Pachube, the WoTKit includes a more
comprehensive event-based processing engine. Like Paraimpu
the WoTKit can create pipes that act as connectors, connecting
sensor data to actuators such as email and other output
modules, however, the power of the pipes, however the
processing engine's flexibility allows it to be used for sensor
data processing as well as connectors.
VI. LESSONS LEARNED
Our experience with the WoTKit, and examining similar
systems has highlighted the need for certain key features and
apporaches that provide the right balance between ease of use
and flexibility for web developers.
Data Schema and Representations. From our experience,
it is important to have a very flexible representation for things
and the data they generate. Like Pachube we decided to give
every sensor a location, however, in some cases, we found this
did not make sense: a mobile phone's location changes
constantly; a social network feed doesn't necessarily have a
location. Initially our system focused on supporting numeric
sensor data values only, but we quickly realized we needed
more flexibility. Based on this experience, we have chosen to
take a very generic approach to data. Our need to support both
"hard" physical sensors such as temperature, speed and light
readings, as well as soft sensors such as information from the
web and social networks implies a sensor data model that
allows both very simple schema initially that can be extended
to more complex schema in the platfonn.
การทำงานอื่น ๆเช่น RSS ฟีดเครือข่ายสังคม ฟีดSMS ส่งข้อความและอื่น ๆสคริปต์ผู้ใช้ สุดท้ายเรารวมถึงความสามารถในจบผู้ใช้สามารถเขียนโมดูลของตัวเองโดยใช้ภาษาสคริปต์ ,ปัจจุบันงูหลาม โดยการประชุม , สคริปต์จะนำเข้าจากข้อมูลพจนานุกรม , รันรหัสแล้วทำให้ผลผลิตใด ๆเป็นพจนานุกรมสำหรับการแปรรูปผลผลิตปลายน้ำ เมื่อสคริปต์ที่พบว่าเป็นประโยชน์ ผู้ใช้อาจบันทึกฉบับนี้สคริปต์เพื่อใช้ในระบบท่ออื่น ๆ มีความสามารถนี้จะช่วยให้ผู้ใช้สามารถขยายสร้าง primitives กับโมดูลใหม่ต้องการเช่นบริการอินเตอร์เฟซสมถการ wotkit มี API ที่ช่วยให้ผ่อนคลายโปรแกรมควบคุมสิ่งของ ได้รับข้อมูลทางประวัติศาสตร์จากเรื่องและลงทะเบียนสิ่งที่ใหม่และข้อมูล meta ของพวกเขาด้วยระบบ การลงทะเบียนกับระบบเซ็นเซอร์โพสต์ JSON แทนของเซ็นเซอร์ ดังต่อไปนี้URLhttp : / / { } / / / เจ้าภาพ API เซ็นเซอร์เซ็นเซอร์ } { ชื่อเซ็นเซอร์การประกอบด้วยชื่อเซ็นเซอร์ ,ชื่อยาวใช้สำหรับผู้ใช้ ตำแหน่งของเซ็นเซอร์ เซ็นเซอร์ ไม่ว่าจะเป็นภาครัฐหรือเอกชน และข้อมูลเกี่ยวกับเขตข้อมูลที่ใช้เซ็นเซอร์หลัก API เพื่อส่งและรับข้อมูลในระบบที่ใช้เซ็นเซอร์ เกตเวย์โพสต์ สาขาข้อมูลที่อยู่http : / / { } / / / เจ้าภาพ API เซ็นเซอร์เซ็นเซอร์ชื่อ { } / ข้อมูลในขณะที่โปรแกรมรับข้อมูลจาก URL เดียวกันการระบุพารามิเตอร์แบบสอบถามสำหรับช่วงของข้อมูลที่จำเป็นโดยการประยุกต์ใช้และการเป็นตัวแทน ระบบในปัจจุบันสนับสนุน CSV , KML ( เฉพาะสำหรับเซ็นเซอร์ตำแหน่ง ) , HTML และเป็น JSON รูปแบบการใช้งานโดยตรงโดย Google การแสดงภาพประกอบเพลงสรุป wotkit Fโดยการให้บริการเหล่านี้ wotkit ที่อยู่ข้อกำหนดที่ระบุไว้ในมาตรา ๔ ดังนี้กระเป๋า - ข้อมูลสำหรับเรื่องข้อมูล meta เช่นอธิบายสถานที่และสิ่งที่ข้อมูลผลิตรวม wotkitสามารถจัดเก็บข้อมูล meta รวมถึงชื่อ , คำอธิบาย , และสถานที่ตั้งของเซ็นเซอร์และ actuators เช่นเดียวกับหลายไม่ nwneric ( สตริง ) เซ็นเซอร์ในตัวเดียวค่าอ่านแบ่งปันสิ่งที่ผู้ใช้ wotkit สามารถระบุว่าพวกเขาสิ่งที่เป็นสาธารณะ หรือส่วนตัว , ช่วยให้ผู้ใช้ที่จะใช้ประโยชน์ของการบูรณาการการทำงานของผู้อื่นโดยใช้ภาพเซ็นเซอร์สิ่งที่มีการบูรณาการโดยการเขียนลูกค้า HTTP ง่ายสคริปต์ที่ให้ดัน ( กระทู้ ) ใหม่ ข้อมูลในระบบหรือโพลสําหรับคําสั่งควบคุมตัว .สร้างขึ้นในแผงควบคุมการรวมทำมันง่ายสำหรับนักพัฒนาเพื่อดูความหลากหลายของการแสดงภาพประกอบเพลง และเพิ่มไปยังโปรแกรมประยุกต์ของพวกเขาการประมวลผลของเครื่องยนต์ช่วยให้นักพัฒนาเพื่อสร้างใหม่แปรรูปท่อรวมที่สร้างขึ้นในโมดูล และการสร้างโมดูลใหม่โดยใช้ภาษาสคริปต์ง่ายต่อการใช้ API เพื่อลงทะเบียนใหม่ เซ็นเซอร์ เผยแพร่ข้อมูลและดึงข้อมูลใน fonnats หลายรวมทั้ง CSV เจซันและ HTML ด้วยชอบ sen.se , wotkit ให้แดชบอร์ดที่มีความยืดหยุ่น ;ส่วนประกอบการประมวลผลรวมและเซ็นเซอร์นี่ สามารถประกอบด้วยประเภท ตัวเลข และสตริง อย่างไรก็ตาม wotkitเน้นน้อยลงในการรวมของโปรแกรมในแพลตฟอร์มส่วนติดต่อผู้ใช้ แต่การให้พื้นฐานที่สร้างขึ้นในลักษณะและการประมวลผลของคอมโพเนนต์ ชอบ pachube thingspeak และ ,wotkit เป็นการรวบรวมข้อมูลจากเซ็นเซอร์ให้นักพัฒนาสามารถผลักดันข้อมูลลงในระบบให้ผู้อื่นใช้ซึ่งแตกต่างจาก pachube wotkit , และอื่น ๆ สนับสนุน ไม่ใช่ตัวเลขฟีดค่านิยม และแตกต่างจาก pachube , wotkit รวมถึงเพิ่มเติมเหตุการณ์ที่ครอบคลุมตามการประมวลผลของเครื่องยนต์ ชอบ paraimpuการ wotkit สามารถสร้างท่อที่ทำหน้าที่เป็นตัวเชื่อมต่อ เชื่อมต่อเซ็นเซอร์ข้อมูลตัวกระตุ้น เช่น อีเมล์และผลผลิตอื่น ๆโมดูล แต่พลังของท่อ , อย่างไรก็ตามการประมวลผลความยืดหยุ่นของเครื่องยนต์ช่วยให้มันเพื่อใช้เป็นเซนเซอร์การประมวลผลข้อมูล ตลอดจนเชื่อมต่อเรียนรู้บทเรียนที่ VIประสบการณ์ของเรากับ wotkit และตรวจสอบที่คล้ายกันระบบได้เน้นคุณสมบัติที่สำคัญบางอย่างและต้องการสำหรับapporaches ที่ให้ความสมดุลที่เหมาะสมระหว่างความง่ายในการใช้และความยืดหยุ่นสำหรับนักพัฒนาเว็บคีข้อมูลและรับรอง จากประสบการณ์ของเรามันเป็นสิ่งสำคัญที่จะมีความยืดหยุ่นมากสำหรับสิ่งที่เป็นตัวแทนและข้อมูลที่พวกเขาสร้าง ชอบ pachube เราตัดสินใจที่จะให้เซ็นเซอร์ทุกตำแหน่ง อย่างไรก็ตาม ในบางกรณี เราพบนี่ไม่สมเหตุสมผล : เปลี่ยนแปลงสถานที่โทรศัพท์มือถือของตลอดเวลา ; เครือข่ายอาหารไม่จำเป็นต้องมีสถานที่ตั้ง เริ่มระบบของเราเน้นการสนับสนุนตัวเลขข้อมูลเซ็นเซอร์ค่าเท่านั้น แต่เรารู้ว่าเราต้องการอย่างรวดเร็วเพิ่มความยืดหยุ่น จากประสบการณ์นี้ เราได้เลือกที่จะใช้วิธีการทั่วไปมากข้อมูล เราต้องสนับสนุนทั้ง" เซ็นเซอร์ทางกายภาพอย่างหนัก เช่น อุณหภูมิ แสง และ ความเร็วการอ่าน , รวมทั้งเซ็นเซอร์อ่อน เช่น ข้อมูลจากเว็บเครือข่ายทางสังคมหมายถึงรูปแบบเซ็นเซอร์ที่ช่วยให้ทั้งง่ายมาก schema เริ่มต้นที่สามารถขยายเพื่อสามารถที่ซับซ้อนมากขึ้นใน platfonn .
การแปล กรุณารอสักครู่..
