Howto – Python


Installing ModPython on Apache

Quick steps for installing ModPython on your Ubuntu server and allowing a web browser to browse a python script and return content. Installation Open terminal and type the following command: $ sudo apt-get update $ sudo apt-get install libapache2-mod-python libapache2-mod-python-doc Configure mod_python You need to create directory to host your […]


Raspberry GPIO Sockets

Communicate with Raspberry GPIO over UDP and TCP Sockets. Explores using UDP as push stream of changes to inputs and outputs on the Raspberry. TCP Connection enables the remote client to control output state changes from the client software. Code on GIT Hub: https://github.com/matzpersson/raspberry-gpio-sockets.git Companion Swift app on https://github.com/matzpersson/raspberry-swift-gpio-remote.git Installation […]


Using OPC Rest API

The OPC Rest API application is developed in Python and used in conjunction with OpenOPC to connect and report back lists, tags and properties from OPC Servers. The user sends a HTTP API call to the configured server with command parameters and returns a JSON result. It is a http […]