Trigger Timer Formatting

Continuing the discussion from SQL API into SambaPOS:

@emre is there a format below where I can reduce the Trigger Event down to Seconds say for example 10 seconds?

I do not think this is the solution for the API - but I am preparing for if I run out of time (another pun!) due to a big implementation in February including API integration.

You should know that triggers wont work if you have a ticket open.

Is that open on any terminal?

Yes I think it would be but the Automation Command can be mapped to a Terminal. Initial thoughts were to trigger a small lightweight script but YES concerned about lags and drain especially on a wireless pad!

Just experimenting while I wait for developments…

It won’t be less than per minute resolution. That is standard CRON algorithm implementation. Adding seconds support needs a different approach and I’m not planning to change that as it is not a critical need.


Thanks for letting me know @emre and the reasons why.

@pauln what were you needing a secconds trigger for?
I would expect this would be excessive on resourses…
What was the trigger going to trigger?
If its processing incoming information would it not be more efficient to format the data in a way that allowed batch processing like a JSON array?

Emre has said in the past when I was first asking about API for PMS that it is unfair to expect Samba to do all the work, which I understand, as there is always two sides to an intergration.
While this is true, it is partly his fault that we all expect so much of Samba as he makes it so powerfull :stuck_out_tongue:
In my PMS intergration for example they as a company would be less willing to make any changes their end for a unfamilier software intergration and I was only able to start the process on the prinsaple that the intergration would be achived by the POS software using the provided/existing API.

Look at this stage I do not know I really was just asking the question to see if there was some sort of diviso’. I have built Integrations before on “seconds” timer events so it was in my nature to ask. I would not look too much into it :smiley: