Version 6 (modified by 12 years ago) ( diff ) | ,
---|
Table of Contents
Proposal
This page is more or less a sandbox where I put my ideas. Feel free to comment.
Main line
pKNyX is not a ready-to-use application: it is a framework. This means that it is up-to-you to write the application which fits your needs.
For that, you will need to know Python, a powerfull , high level, object oriented, scripting language. Don't be afraid: Python is really easy to learn. It is now very popular, and used in many free and commercial applications to extend their capabilities. It is now even teached at school, to young people (~15 years old)! There are hundreds documentations, tutorials and examples on the web, and a huge community. Learning Python is really not a waste of time, and will help you to do many other tasks than simply building your KNX application!
pKNyX will provide you powerfull tools so you will only focus on your problem, and not on language subtilities, like it can be the case with other languages, like C, C++...
Ok, let me show you what I have in mind.
Virtual Device
This is a central feature of pKNyX, allowing user to create virtual devices which mimics real KNX devices. They follow the same architecture, like having Datapoints (aka as Communication Objects), which have to be linked to Group Address to communicate.
Here is a very simple example:
from pknyx.api import Device, ETS class Vent(Device): DP_01 = ("temp_1", "9.001", "cwtu", "low", 0) DP_02 = {'name': "temp_2", dptId: "9.001", 'flags': "cwtu", 'priority': "low", 'initValue': 0} DP_03 = dict(name="temp_3", dptId="9.001", flags="cwtu", priority="low", initValue=0) myVent = Vent("1.2.3") ETS.link(myVent, "temp_1", "1/1/1") ETS.link(myVent, "temp_2", "1/1/2") ETS.link(myVent, "temp_3", "1/1/3")
That's it!