Quickstart
Get a SignalSQL server running and read your first live value in a few minutes. This assumes you have installed a package for your platform — see Installation if not.
1. The server
Installing SignalSQL registers it as a service that starts automatically, listening on the MySQL wire protocol, port 3308:
- Linux (systemd):
systemctl status signalsql - Windows: the SignalSQL service (Services console or
sc query SignalSQL)
See Configuration for the config file and options.
2. Connect with any MySQL client
Because SignalSQL speaks the MySQL protocol, your existing clients just work. The
single database is main; the default user is root with password password
(change it — see Managing users).
mysql -h 127.0.0.1 -P 3308 -u root main
SHOW TABLES;
SELECT * FROM INPUT; -- every input signal from the loaded modules
3. Route a value through a reference
The feature that makes SignalSQL unusual: a column can hold a reference to
another value with the syntax =Table/Row/Column. Reading the column resolves it
live — point it at an INPUT row and the read returns a live sensor value.
CREATE TABLE demo (
ID INT AUTO_INCREMENT PRIMARY KEY,
Name VARCHAR(255),
Value double REFERENCE
);
INSERT INTO demo VALUES (0, 'probe', '=INPUT/owdevice:28.F049AF040000/Value');
SELECT Value FROM demo WHERE Name = 'probe'; -- resolves to the live temperature
Next steps
- Introduction — the idea behind SignalSQL
- Built-in tables and references — INPUT/OUTPUT/MODULES and the reference syntax
- Hardware modules — 1-wire, PID, logging, GPIO
- A brewing rig, end to end — the flagship worked example