Blame view

README.md 7.97 KB
b2e9866d   Etienne Pallier   bugfix start_agen...
1
# PYROS (PYthon Robotic Observatory System)
0295ca78   Etienne Pallier   README update for...
2
A Python software for the management of a Telescope control center
e401257c   Etienne Pallier   README with miles...
3

f946c501   Etienne Pallier   updated readme
4
COPYRIGHT (C) 2012-2018 IRAP (Institut de Recherche en Astrophysique et Planetologie) Toulouse - France
6bbc662a   Etienne Pallier   ignore .project a...
5

b8064570   Etienne Pallier   better formatted ...
6
Authors : etienne.pallier@irap.omp.eu, alain.klotz@irap.omp.eu, patrick.maeght@irap.omp.eu, paul.carensac@epitech.eu, alexandru.burlacu11@gmail.com, jeremy.barneron@gmail.com, quentin.durand@epitech.eu
e401257c   Etienne Pallier   README with miles...
7

0295ca78   Etienne Pallier   README update for...
8
9
GPL License (http://www.gnu.org/copyleft/gpl.html) - See the file LICENSE.txt

b8064570   Etienne Pallier   better formatted ...
10
This software runs with Python 3 and Django 2
0295ca78   Etienne Pallier   README update for...
11

b8064570   Etienne Pallier   better formatted ...
12
13
To install it, go into the "install/" folder, and read the document INSTALLATION 
(better is to go to https://docs.google.com/document/d/1m7wUGMUPNPE2gdsQNLILDeF738oIk9OlQjVjNzQyWA8/edit#heading=h.aqi3gs3yp2s3)
0295ca78   Etienne Pallier   README update for...
14

18782713   Etienne Pallier   readme update
15
16
This file is written in the markdown format (see https://openclassrooms.com/en/courses/1304236-redigez-en-markdown, https://michelf.ca/projets/php-markdown/syntaxe, https://daringfireball.net/projects/markdown/syntax)

0295ca78   Etienne Pallier   README update for...
17
-----------------------------------------------------------------------------------------------------------
b8064570   Etienne Pallier   better formatted ...
18
19
## Tested platforms

0295ca78   Etienne Pallier   README update for...
20
21
22
23
24
This software has been tested and validated with the following configurations :

- Centos 7 (test server planetoweb2) :
	- Python: 3.5
	- Mysql:
f1a10cf4   Jeremy   Update readme
25
	- Apache:
0295ca78   Etienne Pallier   README update for...
26
27
28

- Ubuntu 14LTS (Paul Carensac's laptop) :
	- Python: 3.5
eea995c9   haribo   Date: 16/06/2016
29
	- Mysql: 5.5.46
f1a10cf4   Jeremy   Update readme
30
	- Apache:
0295ca78   Etienne Pallier   README update for...
31

257abe9b   Jeremy   Added comments
32
- Ubuntu 16.04 LTS (Jérémy Barneron's laptop) :
f1a10cf4   Jeremy   Update readme
33
34
35
36
37
38
	- Python: 3.5.2
	- Mysql: 5.7.15
	- Apache: 2.4.18
	- Django: 1.10.2

- Mac OS 10.11.4 (Etienne Pallier's laptop)
0295ca78   Etienne Pallier   README update for...
39
40
41
42
	- Python: 3.5
	- XAMPP for OS X 5.6.3, which comes with :
		- MySQL: 5.6.21
		- Apache 2.4.10
f1a10cf4   Jeremy   Update readme
43

e401257c   Etienne Pallier   README with miles...
44
--------------------------------------------------------------------------------------------
b8064570   Etienne Pallier   better formatted ...
45
## Project structure
6bbc662a   Etienne Pallier   ignore .project a...
46
47
48
49
50
51
52

    - src/ : conteneur du projet (le nom est sans importance)
    	- manage.py : utilitaire en ligne de commande permettant differentes actions sur le projet
    	- pyros/ : the actual Python package of the project
    		- settings.py : project settings and configuration
	    	- urls.py : déclaration des URLs du projet
    		- wsgi.py : point d'entrée pour déployer le projet avec WSGI
6bbc662a   Etienne Pallier   ignore .project a...
53
54

	- database/ : database configuration and documentation
f1a10cf4   Jeremy   Update readme
55

6bbc662a   Etienne Pallier   ignore .project a...
56
	- doc/ : project documentation
f1a10cf4   Jeremy   Update readme
57

6bbc662a   Etienne Pallier   ignore .project a...
58
	- install/ : project installation howto
f1a10cf4   Jeremy   Update readme
59

6bbc662a   Etienne Pallier   ignore .project a...
60
	- private/ : the content of this folder is private and thus not commited to git ; it should contain your Python3 virtual environment
ef4dd9e1   Jeremy   Update readme
61
62
	
	- simulators/ : the devices simulators
f1a10cf4   Jeremy   Update readme
63

6bbc662a   Etienne Pallier   ignore .project a...
64
65
	- public/ : this folder contains all public files like the web html files
		- static/
f1a10cf4   Jeremy   Update readme
66

0295ca78   Etienne Pallier   README update for...
67
--------------------------------------------------------------------------------------------
b8064570   Etienne Pallier   better formatted ...
68
69
## LAST VERSION

f4fd20f9   Etienne Pallier   pyros.py script i...
70
Date: 27/02/2019
0295ca78   Etienne Pallier   README update for...
71

f05b7a2d   Etienne Pallier   updated README (n...
72
Author: E. Pallier
b8064570   Etienne Pallier   better formatted ...
73

f4fd20f9   Etienne Pallier   pyros.py script i...
74
75
76
77
78
79
80
81
82
83
84
85
86
VERSION: 20190227.0.000.0 (0.20)

Comment: 
	pyros.py script improvements
	- config relative ou absolue
	- all private methods with "_" prefix
	- die on any error
	- added commands : 
		- pyros update (= git pull + update db)
		- pyros initdb
	- cleanup
	- bugfix start_agent.py
	
11ae0484   Etienne Pallier   New versionning p...
87

b8064570   Etienne Pallier   better formatted ...
88
--------------------------------------------------------------------------------------------
b2e9866d   Etienne Pallier   bugfix start_agen...
89
90
91
92
93
- TECHNICAL DOC: tinyurl.com/pyros-doc
- CURRENT STATUS (TODO LIST) : https://projects.irap.omp.eu/projects/pyros/issues?query_id=257
- CURRENT VERSION (v0.20): https://projects.irap.omp.eu/versions/208
- ROADMAP: https://projects.irap.omp.eu/projects/pyros/roadmap
- (OLD DEV PLAN: https://docs.google.com/spreadsheets/d/1Gy6c-9fhUDBx5Bc6YrcGvfgP-HukWdhUh8oT11_y88g/edit#gid=664458270) 
11ae0484   Etienne Pallier   New versionning p...
94
- (OLD, TO BE UPDATED) https://projects.irap.omp.eu/versions/158
bb45cd4a   haribo   Date: 25/05/2016
95

e401257c   Etienne Pallier   README with miles...
96
--------------------------------------------------------------------------------------------
eea995c9   haribo   Date: 16/06/2016
97

b8064570   Etienne Pallier   better formatted ...
98
99
**IF EVER STRUCTURAL MODIFICATIONS NEED TO BE DONE MANUALLY AFTER UPDATE (git pull)** :

b2e9866d   Etienne Pallier   bugfix start_agen...
100
=> re-execute the installation script (cd install/ ; python3 install.py update)
eea995c9   haribo   Date: 16/06/2016
101
102

--------------------------------------------------------------------------------------------
b8064570   Etienne Pallier   better formatted ...
103
## MAIN CHANGES (MILESTONES):
e401257c   Etienne Pallier   README with miles...
104

0295ca78   Etienne Pallier   README update for...
105
Full list of commits: https://gitlab.irap.omp.eu/epallier/pyros/commits/master
e401257c   Etienne Pallier   README with miles...
106

f4fd20f9   Etienne Pallier   pyros.py script i...
107
108
The list below is obsolete. The new official changes history is here :  https://tinyurl.com/pyros-dev#heading=h.2r55bflctpt5

f05b7a2d   Etienne Pallier   updated README (n...
109
110
111
**17/01/19 : Version 20190117.0.000.0 (EP)**
- NO MORE CELERY (removed from everywhere)

b8064570   Etienne Pallier   better formatted ...
112
**10/10/18 : Version 2018.0.011 (E. Pallier)**
f49b7078   Etienne Pallier   Bugfix tests and ...
113
114
- NEW versionning plan : YYYYMMDD.M.mmm.b
    - YYYYMMDD = Day (UTC)
b8064570   Etienne Pallier   better formatted ...
115
116
117
    - M = Major version number
    - mmm = Minor version number
    - b = Bugfix number
d243a3ef   Etienne Pallier   Bugfix majordome_...
118
- Global Version number is now in src/__init__.py (idem for each pyros application) 
b8064570   Etienne Pallier   better formatted ...
119
120
121
122
123
124
- new devices_channel/ folder containing the new DeviceControllerAbstract and ClientChannelAbstract classes (independant from pyros for the moment, but will soon be integrated)
- new src/utils/celme (celestial mecanics) library from Alain Klotz (more and more used inside pyros)
- better README.md formatted file

**14/05/18 : Version 2018.0.001 (Q. Durand)**
- Update all dependencies, update to django 2 and work in progress on the dashboard
e573c1f1   Etienne Pallier   All unit tests no...
125

b8064570   Etienne Pallier   better formatted ...
126
127
**23/03/18	Version 0.16.11 (E. Pallier)**
- All unit tests now pass WITHOUT celery (./manage.py test or ./pyros.py test)
e573c1f1   Etienne Pallier   All unit tests no...
128

b8064570   Etienne Pallier   better formatted ...
129
130
**22/03/18	Version 0.16.10 (E. Pallier)**
- New global variable USE_CELERY (false by default) in pyros.settings
552f1515   Etienne Pallier   New global variab...
131

b8064570   Etienne Pallier   better formatted ...
132
133
134
**13/03/18	Version 0.16.7 (E. Pallier)**
- Each agent (envmonitor, majordome, alert) can be started independently with a script (new script start_agent in each agent directory)
- New command "pyros start" to start pyros in different ways (different options : everything or only some components)
b4e8963c   Etienne Pallier   Each agent (envmo...
135

b8064570   Etienne Pallier   better formatted ...
136
137
**22/02/18	Version 0.16.5 (E. Pallier)**
- Better isolation of Monitoring for easier testing (+ tuto)
c7583f6e   Etienne Pallier   Cleaner isolation...
138

b8064570   Etienne Pallier   better formatted ...
139
140
**01/02/18	Version 0.16.3 (Q. Durand)**
- New installation script src/install/install.py multiplatform (Lin-Mac-Win10, but also tested on Win7)
7f83556a   Etienne Pallier   updated README
141
			
b8064570   Etienne Pallier   better formatted ...
142
143
144
**24/02/17    Version 0.15.1 - Added comments (Jeremy Barneron)**
- Details added to describe the functions behavior
- https://projects.irap.omp.eu/versions/158
257abe9b   Jeremy   Added comments
145

b8064570   Etienne Pallier   better formatted ...
146
147
148
**18/01/17    Version 0.15 - Execution with simulators**
- Simulators evolution / majordome / monitoring / installer
- https://projects.irap.omp.eu/versions/158
ef4dd9e1   Jeremy   Update readme
149

b8064570   Etienne Pallier   better formatted ...
150
151
152
**15/12/16    Version 0.14.1 - Final version 0.14**
- Scenarist first versions
- https://projects.irap.omp.eu/versions/152
53787d30   Jeremy   Alert now inherit...
153

552f1515   Etienne Pallier   New global variab...
154
02/08/16	Version 0.12.4 - Final version 0.12
db882807   haribo   Date: 02/08/2016
155
156
157
			Simulators first versions
			https://projects.irap.omp.eu/versions/129

552f1515   Etienne Pallier   New global variab...
158
20/07/16	Version 0.11.4 - Final version 0.11
ac26ad2b   haribo   Date: 22/07/2016
159
160
161
			Alert manager second version
			https://projects.irap.omp.eu/versions/128

552f1515   Etienne Pallier   New global variab...
162
05/07/16	Version 0.10.2 - Final version 0.10
2ceea892   haribo   Date: 19/07/2016
163
164
165
			Monitoring first version
			https://projects.irap.omp.eu/versions/120

552f1515   Etienne Pallier   New global variab...
166
05/07/16	Version 0.9.2 - Final version 0.9
288601ca   haribo   Date: 05/07/2016
167
168
169
			Analysis skeleton
			https://projects.irap.omp.eu/versions/119

552f1515   Etienne Pallier   New global variab...
170
28/06/16	Version 0.8.3 - Final version 0.8
288601ca   haribo   Date: 05/07/2016
171
			Execution (majordome & obs manager), first version
5d61cbfe   haribo   Just adding / rem...
172
173
			https://projects.irap.omp.eu/versions/118

7f83556a   Etienne Pallier   updated README
174
23/06/16		Version 0.7.8 - Final version 0.7
9f81217f   haribo   Date: 22/06/2016
175
176
177
			Routine manager, first version
			https://projects.irap.omp.eu/versions/117

7f83556a   Etienne Pallier   updated README
178
20/05/16		Version 0.6.1 - Final version 0.6
bbf6e698   haribo   Date: 14/06/2016
179
180
181
			Complete user management
			https://projects.irap.omp.eu/versions/123

7f83556a   Etienne Pallier   updated README
182
20/05/16		Version 0.5.4 - Final version 0.5
bbf6e698   haribo   Date: 14/06/2016
183
184
185
			Complete alert manager first version
			https://projects.irap.omp.eu/versions/116

7f83556a   Etienne Pallier   updated README
186
20/05/16		Version 0.4.2 - Final version 0.4
a2283bf3   haribo   Date: 20/05/2016
187
188
189
			Complete scheduler update
			https://projects.irap.omp.eu/versions/90

7f83556a   Etienne Pallier   updated README
190
10/05/16		Version 0.3.12 - Final version 0.3
0295ca78   Etienne Pallier   README update for...
191
192
			Complete workflow skeleton
			https://projects.irap.omp.eu/versions/88
9d8a01e0   Etienne Pallier   updated
193

7f83556a   Etienne Pallier   updated README
194
13/04/16		Version 0.2.7 - Final version 0.2
0295ca78   Etienne Pallier   README update for...
195
196
			Integrate PLANNER module
			https://projects.irap.omp.eu/versions/97
c668c248   haribo   Updated README wi...
197

7f83556a   Etienne Pallier   updated README
198
12/04/16		Version 0.1.1 - Final version 0.1
9d8a01e0   Etienne Pallier   updated
199
200
			Multi-platform skeleton easy install + admin interface on database + start dashboard
			https://projects.irap.omp.eu/versions/87
e401257c   Etienne Pallier   README with miles...
201

e401257c   Etienne Pallier   README with miles...
202
04/04/16 	Installable version (install script)
f49b7078   Etienne Pallier   Bugfix tests and ...
203
204
205
206
207
208
209
210
211
212
213
214
215


--------------------------------------------------------------------------------------------
## TODO LIST (URGENT)

DEMO:
- SIMULATOR: 
    - (AC) réserver cette page à un login superuser sinon n'importe qui pourra faire n'importe quoi à distance...
    - 1) PLC : 
        - ajouter boutons "START" et "STOP"
        - implémenter weather et site OK/KO
    - 2) TELE : implémenter "start" et "stop"
    - 3) General : implement set to night/day