|
|
|
|
|
by sprior
1516 days ago
|
|
Not a lot of code but a somewhat different use of Prolog than you're likely to see elsewhere. I used my fork of a MQTT library for Prolog (https://github.com/sprior/swi-mqtt-pack) to implement the central controller for my home automation system. The system responds to MQTT events and then coordinates the appropriate action by sending MQTT messages to other home services. Recent versions of SWI-Prolog also support redis and I've started using that to store device configuration and state between services. The MQTT version is actually a reimplementation of my previous version which used CORBA for inter-service communication. I don't distribute the home automation code however it's pretty specific to my house. The MQTT library provides some building block examples. You can also see some other comments I've made on HN which describe some other details. |
|