diff --git a/README.md b/README.md index 671b1d5d58771be4d0232f169f3e4d522af3bfe7..056b3ebaed00a1c437758e0a371ea48f3a67fbc3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ Python 3. $ sudo apt-get update $ sudo apt-get install python-pyqt5 ``` -Make sure you got Python 3: +**N.B.** Python 3 is now the default interpreter in most recent Linux +distributions. Do not use Python 2! If unsure, check with: ```shell $ python -V ``` @@ -31,13 +32,13 @@ Then, simply call (if you are not in a GNU/Linux shell, you might need to put $ ./actuasim.py & ``` -Once launched, Actuasim will load a file `saved\_rooms.json` containing the +Once launched, Actuasim will load a file `saved_rooms.json` containing the building configuration with all the KNX addresses. If this file does not exist, it is created with a default configuration composed of 2 rooms, each one has 2 blinds and two radiator valves. Whenever the application is closed, the building configuration with the -current position of blinds and valves are stored in this `saved\_rooms.json` +current position of blinds and valves are stored in this `saved_rooms.json` file. You can edit this it to set up your specific building configuration. diff --git a/actuasim.py b/actuasim.py index 0df73ecfd64b351c6f7def87934ceceedf57f86d..09adb77cf629c2999dd129ba04e69e059b16db4a 100755 --- a/actuasim.py +++ b/actuasim.py @@ -1,6 +1,6 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- - +################################################################################ import json import os import random @@ -16,7 +16,7 @@ from actuasim.room import Room from actuasim.ui_actuasim import Ui_MainWindow from actuasim.knxserver import Knxserver from actuasim.command_handler import CommandHandler - +################################################################################ __author__ = "Adrien Lescourt" __copyright__ = "HES-SO 2015, Project EMG4B" @@ -24,7 +24,7 @@ __credits__ = ["Adrien Lescourt"] __version__ = "1.0.2" __email__ = "adrien.lescourt@gmail.com" __status__ = "Prototype" - +################################################################################ class Actuasim(QMainWindow):