User Tools

Site Tools


remote

This is an old revision of the document!


Remote Controlled Devices

This is a place marker for help in making and using remote controlled devices linked to Jennifer. All the following headings will goto their own sub page.

API

Reading Values

The remote devices are triggered by reading JSON data from the following address: [https://play-link.com/jen/remote.php?id=XXX] The format is in the following format:

{
"servertime": 1466500571,
"triggers": [
{
"start": 1466500601,
"level": 100,
"device": "estim",
"duration": 2
}
,
{
"start": 1466500606,
"level": 100,
"device": "lock",
"duration": 2
}
]}

You can also get the data in text or an alternative json format by adding “&format=text” or “&format=json2” to the link above if thats is easier for you to read. In the example above there are 2 upcoming triggers one for the estim and 5 seconds later to release the lock.

A lot of devices currently being developed make use of relays so the level value is ignored.

Creating Triggers

This will only really be needed for testing…

You can add triggers as follows: https://play-link.com/jen/remote.php?id=XXX&device=estim&delay=60&duration=1&level=100 in this example it will trigger the estim for 1 second in 60 seconds time. If you don't specify delay, duration or level, default values will be used.

Devices currently in the system are: estim, shock, lock, vibe

Alternatively you can use the control program below to create test triggers.

Control

Instead of having to workout how to use the API you can download a controller program.

The controller program is available at [https://play-link.com/jen/controller.zip] you can download this and after updating the ini file will allow you to run commands to trigger devices.

The controller package also contains the source-code in Lazarus and some examples in other languages such as C++ so worth a look if you need some pointers.

Devices

  • Audio Controlled device - How to link an audio controlled estim into Jennifer
  • RasberryPi - Project page on how to link a rasberrypi to Jennifer with example pyphon script and hardware description and pictures.
  • Arduino devices - arduino based devices ( Smichael27 ? )
  • WiFi Relay controller - Project page on building / using a wifi relay device ( edinburghJay )

Design & Experimentation

  • Dick As A Circuit - Determining how a certain body part behaves in an estim circuit.
remote.1466503930.txt.gz · Last modified: 2016/06/21 10:12 by liz