From eb8e80d725c415b02b0eccd79cde9dfbf5f99232 Mon Sep 17 00:00:00 2001 From: Marco Emilio Poleggi <marcoep@gmail.com> Date: Wed, 23 Sep 2020 18:39:28 +0200 Subject: [PATCH] Other doc fixes --- README.md | 7 ++++--- actuasim.py | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 671b1d5..056b3eb 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 0df73ec..09adb77 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): -- GitLab