# Billiard Lights on and off

**URL:** <https://forum.sambapos.com/t/billiard-lights-on-and-off/6381>\
**Category:** V4 Question\
**Created:** [July 28, 2015, 7:42pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381 "2015-07-28T19:42:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 7:42pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/1 "2015-07-28T19:42:31Z")

</div>

Hi Im Using Samba for Billiard Club they Have a System Connected to the light above each table where u can connect to com port and control within PC

Can we use Rules and actions to send command to the device to switch on the light when table is open and to switch light off when table closed

Im allreday using timer when table is open

 ![](https://forum.sambapos.com/uploads/default/original/2X/5/59cca3115168ea80f6bd6380d27b8bd24e7b235f.png)

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 7:46pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/2 "2015-07-28T19:46:01Z")

</div>

You probably can do mate but looks like your using V3.  
This forum is V4 and soon to be released V5.

Also on a side note where did you get your software from? Looks like you have a re branded SambaPOS V3.  
Did you pay for it?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [July 28, 2015, 8:16pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/3 "2015-07-28T20:16:39Z")

</div>

Use the **Port** Printer Type to send commands to a COM port using `<XCT a,b,c>` commands. Or possibly use the **RAW** Printer Type if you need even lower-level control.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:23pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/4 "2015-07-28T20:23:01Z")

</div>

Sorry if my previous post sounded short 😌

Either way would be interested to know what your light system hardware is if you dont mind sharing details and also report of how you get on with the controls would be nice 😄

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:29pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/5 "2015-07-28T20:29:24Z")

</div>

hi JTRTch

it dosent matter if version 3, 4 or 5 if there is a solution in anyone of them I will use and my question is related to actions and rules and it might be applicable even to version 2

now regarding re-branding V3 u dont need to buy it to do that its allowed to do so cause u have the source code and u can do what ever u want with it its GPL Licence

GNU GENERAL PUBLIC LICENSE  
Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. [http://fsf.org/](http://fsf.org/)  
Everyone is permitted to copy and distribute verbatim copies  
of this license document, but changing it is not allowed.

```
                        Preamble

```

The GNU General Public License is a free, copyleft license for  
software and other kinds of works.

The licenses for most software and other practical works are designed  
to take away your freedom to share and change the works. By contrast,  
the GNU General Public License is intended to guarantee your freedom to  
share and change all versions of a program–to make sure it remains free  
software for all its users. We, the Free Software Foundation, use the  
GNU General Public License for most of our software; it applies also to  
any other work released this way by its authors. You can apply it to  
your programs, too.

When we speak of free software, we are referring to freedom, not  
price. Our General Public Licenses are designed to make sure that you  
have the freedom to distribute copies of free software (and charge for  
them if you wish), that you receive source code or can get it if you  
want it, that you can change the software or use pieces of it in new  
free programs, and that you know you can do these things

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:32pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/6 "2015-07-28T20:32:00Z")

</div>

this might work but how to link it to each table in entities?

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:32pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/7 "2015-07-28T20:32:05Z")

</div>

> [@shadisaadi](#):
>
> now regarding re-branding V3 u dont need to buy it to do that its allowed to do so cause u have the source code and u can do what ever u want with it its GPL Licence

I think you took the question the wrong way, my question was weather you paid someone for their re-branded SambaPOS, not if you did it yourself to say you cant do that.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:33pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/8 "2015-07-28T20:33:27Z")

</div>

> [@shadisaadi](#):
>
> this might work but how to link it to each table in entities?

What is your switching unit looking to receive? How does it identify the individual lights?

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:33pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/9 "2015-07-28T20:33:46Z")

</div>

no bro I did it my self from the source Code

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [July 28, 2015, 8:36pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/10 "2015-07-28T20:36:04Z")

</div>

In Rules, use the event for `Entity Selected` or `Ticket Entity Changed`.

From there, you could store the Entity in a Program Setting, or simply fire Execute Print Job Actions based on the Entity which was selected.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:36pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/11 "2015-07-28T20:36:15Z")

</div>

> [@shadisaadi](#):
>
> no bro I did it my self from the source Code

Nice one 🙂 it was conserne that someone had charged you for Samba with their logo, have seen it a few times and is very cheaky as emre puts allot of work into it and hate to see someone ripping of his efforts as their own ☹

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:36pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/12 "2015-07-28T20:36:42Z")

</div>

I hope someone can answer this question cause I have no idea how it works  
but logicly thinking there is a port for each light where u need to send a command to the device with an identifier for each light port

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:38pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/13 "2015-07-28T20:38:45Z")

</div>

Am intrigued in this device… what is it? have a model number or something?

Imagine it will be looking for a fairly basic command with a ‘Port’ (switch number) and a on/off/switch command.

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:39pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/14 "2015-07-28T20:39:03Z")

</div>

lol no buddy no one did but I got no problem to pay if someone can do it faster than me

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:40pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/15 "2015-07-28T20:40:13Z")

</div>

its only written light control board

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:41pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/16 "2015-07-28T20:41:35Z")

</div>

got some pictures? will see if I can find out what it is and how it works  
light control board comes back with like studio/stage lighting mixer things  
am quite interested in the idea, have been looking to approach local snooker hall with suggestion for POS upgrade 🙂

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:42pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/17 "2015-07-28T20:42:23Z")

</div>

give me 5m i will take pics

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 28, 2015, 8:44pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/18 "2015-07-28T20:44:45Z")

</div>

if its something you can remove the cover from a curcuit board number or something might help a google search to find exact thing.

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [July 28, 2015, 8:49pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/19 "2015-07-28T20:49:54Z")

</div>

> [@QMcKay](#):
>
> In Rules, use the event for `Entity Selected` or `Ticket Entity Changed`.
> 
> From there, you could store the Entity in a Program Setting such as `LightCode`, or simply fire Execute Print Job Actions based on the Entity which was selected.

You would set up different Print Jobs linked to different Printer Templates, with each containing the proper code(s) to send to the COM port. You could possibly parameterize the Template with a Program Setting and have the Template contain the Tag {SETTING:LightCode}, which you would set in the Action(s) for the Rule(s) based on the Entity.

---

<div class="post-metadata">

**Author:** ![shadisaadi](https://forum.sambapos.com/user_avatar/forum.sambapos.com/shadisaadi/32/12204_2.png) [@shadisaadi](https://forum.sambapos.com/u/shadisaadi)\
**Post date:** [July 28, 2015, 8:50pm UTC](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381/20 "2015-07-28T20:50:16Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/2X/9/9c4085c4511be9152a47bb0c7abb1438180b9e71.jpg) 

 ![](https://forum.sambapos.com/uploads/default/original/2X/d/df314d824ff5cab37c7d4462cafe2f2b960b67b3.jpg)

[Next page](https://forum.sambapos.com/t/billiard-lights-on-and-off/6381.md?page=2)
