Added scripting support for text based serial devices


Posted on

Added scripting support for text based serial devices image

Today we announce that we have added scripting support for text based serial devices. With this scripting support it is possible for makers to embed their own custom projects in the server without having to create packages, or rely on others to create one.

What are scripted drivers

As stated scripted drivers are created with javascript and are inserted in the PiDome drivers ecosystem. Normally the setup is like this:
Hardware driver (like for serial connections) -> Software driver -> Devices on the server.
With scripted drivers these scripts are inserted into the Software driver. They take over the part where the translation takes place between the hardware and devices. This creates the following path:
Hardware driver ->Software driver -> (script) -> Software driver-> Devices on the server.

The scripts get access to methods inside the driver which are normally also used when these drivers are created in java, but then in the Javascript way.


We have tried to keep the API as simple as possible. To get started with the basics there are just four minimal needed functions already present in the script, and a couple of other predefined functions to send data to your hardware or update the device visuals.

There are also some tools present to be able to debug and log events. Below is a short clip showing an example which will be discussed in this blog post. the API will not be described in this blog post as it is alreaddy extensively done within the editor

We have a getting started manual ready for you in the manuals section: Custom drivers overview, example to get you started

The current available API is in the API section at: Custom drivers API

Latest news/blog

Friends of PiDome

Products for teams, from startup to enterprise
Home-automation hardware manufacturer
Affordable 433Mhz RF transceivers

Latest added technology

  • SMS
  • Z-Wave
  • PushBullet
  • PlugWise
  • MQTT

Some project stats

Open Hub project report for PiDome Platform


Official NLJUG Member