Home Server: API Modules

Under the /server/api folder you'll find a few files. Each is responsible for connecting Ayla to a specific service or device, for example Fitbit, Netatmo, Weather Underground etc.

These modules must inherit from the BaseApi class (baseApi.coffee file), and implement the methods init, start and stop.

Scheduling API modules jobs

If you want to execute a specific function on specific times or every few minutes / hours, please edit the /cron.api.json file. The scheduler is using the Cron module of the Expresser platform.

Last edited Feb 8, 2014 at 2:33 PM by igoramadas, version 4

Comments

No comments yet.