I am working on some custom integrations and need a creative way to pass a variable from a node.js script (using GQL to interact with SambaPOS).
Scenario: Node.js script performs some actions, it then needs to send a value back to SambaPOS and when recieved SambaPOS needs to fire an action with that value.
The logical choice seemed to be, “gql.executeAutomationCommandForTerminalTicket” however this fails because it says no ticket is open on my terminal. On the actual main SambaPOS terminal there is a ticket open but it seems my node.js acts as a “terminal” and doesn’t have an open ticket.
Esentially all I need to do is trigger an automation command / rule / action in SambaPOS and pass a single value from a node.js script to SambaPOS.
Does anybody have any creative ideas on how to do this?
Do a Broadcast Message with your payload in JSON string format.
The HUB Rules use Script to parse messages that have a JSON format, by default using eventName and eventData.
HUB Message Received calls the script to parse the JSON, and subsequently HUB Process Message decides what to do with it depending on eventName (and sometimes eventData as well). This can include firing Automation Commands, or whatever else your method requires.
FYI: This was the last piece to finish a frequent customer multi-store setup. I am using RestDB (Remote Cloud DB) to store customers “VIP Level”, “Number of Visits” and balance. It then syncs between stores!
It wasn’t with the booking system, it was via my own rest API using a joomla plugin.
It wasn’t a direct link but just a way to sync entity and their data between sites.
It uses a seperate key/ID to link between sites.
Plan to work on one to sync users at some point.
Crikey, missed that one - edit the post so I see it to book mark it or drop a link here. I will
say no more as not to hijack this thread
CASE: I using FILEMON to send transactions and balances as it has access to the Samba API but as we know it depends on DRIVES as this can be become unstable.