Related APIs in Category: Internet of Things
AT&T M2X is a highly secure and scalable time-series data storage service for network connected devices and the Internet of Things. In addition to data storage, M2X enables automatic data-driven action by monitoring streams of data in real-time and if a user-defined trigger condition is met, an event is fired. The AT&T M2X API provides all the needed operations and methods to connect your devices to AT&T’s M2X service, and has supported client libraries for Ruby, Python, Node.js, PHP, C, and Java among many other languages, platforms, and devices (like Arduino, Spark Core, Raspberry Pi and more).
Parrot SA Website Summary:
Welcome to the Parrot Sequoia API Reference page! There are two control interfaces for Sequoia: HTTP-API and PTP (Picture Transfer Protocol). [...] The following informations are provided: For 'rgb’, JSON object is: For 'monochrome’, JSON object is: For 'green’, 'red’, 'red_edge’ and 'near_infrared’, JSON object is: Websockets notifications allow you to receive asynchronous event from the Sequoia, such as change in camera configuration, insertion of sd card, etc… This is an example of how to connect to the Sequoia websocket, display received messages, and stay connected responding to the “ping” with “pong” importwebsocketimportjsonsequoia_ip='192.168.47.1'defon_message(ws,message):data=json.loads(message)printjson.dumps(data,indent=4)ifdata['status']=="ping":ws.send("pong")defon_error(ws,error):print"error:"+errordefon_close(ws):print"### closed ###"defon_open(ws):print"### opened ###"ws=websocket.WebSocketApp('ws://'+sequoia_ip+'/websocket',on_open=on_open,on_message=on_message,on_error=on_error,on_close=on_close)ws.run_forever()Websocket notifications can be received by connecting to the following URL: ws://192.168.47.1/websocket In order to stay connected to the websocket, you have to reply “pong” on each “ping” sent by the server. [...] Usage is straightforward with a single Sequoia camera connected: gphoto2 --capture-image It is also easy to start captude over WiFi: