Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actuasim_iot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adrien Lescourt
actuasim_iot
Commits
eb8e80d7
Commit
eb8e80d7
authored
4 years ago
by
Marco Emilio Poleggi
Browse files
Options
Downloads
Patches
Plain Diff
Other doc fixes
parent
96802901
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+4
-3
4 additions, 3 deletions
README.md
actuasim.py
+4
-4
4 additions, 4 deletions
actuasim.py
with
8 additions
and
7 deletions
README.md
+
4
−
3
View file @
eb8e80d7
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
actuasim.py
+
4
−
4
View file @
eb8e80d7
#!/usr/bin/env python
#!/usr/bin/env python
3
# -*- 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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment