Create a layout and schedule programmatically

Hi,

I’m trying to create a new layout programmatically and schedule it but, I’m getting an error in the player when I checked in client information. The error says Call to member function getAttribute() on a non-object.

Could you please tell me in which all tables I have to insert the values to fix this issue ?

Thank you.

The error could be in many many places - you need to use the API instead of directly inserting into the tables.

Hi Dan,

How to use API for this? where can I find API for inserting schedules or Is there any document I can refer?

I’ve just checked and annoyingly the schedule api has not been implemented yet. sorry.

You could use the API to insert your Layouts (http://xibo.org.uk/manual/en/api_layouts.html) and then manually insert the schedules.

The API will be released very soon and contain all the features (with proper documentation).

1 Like