I automatically setup my Raspberry Pis using Ansible. This is why I wrote an Ansible role to automatically install and setup pimatic. It comprises the steps mentioned in:
- pimatic getting-started guide
Including: software installation (node.js, pimatic, other necessary software), configuration (using Ansible template), setup as system service, SSL setup
Give it a try, I hope you find it useful. Feedback is highly appreciated.