HOWTO_RUN.txt 1.93 KB


*******************************
 Here is how you can RUN pyros 
*******************************

(More on this subject at https://docs.google.com/document/d/1osHT3d8GiofRd9k3nL7cz4Hcmo9WVEOcSaSSQpgJcFs/edit#heading=h.w3ny4xnj9sc8)

=> ONLINE DEMO : http://pyros.irap.omp.eu


-------------------------------------------
(A) Command-line running (no web interface):
-------------------------------------------

(1) Running pyros interactively:
	$  [python] ./pyros.py shell

(2) Launching an agent:
	$  [python] ./pyros.py start <agent-name>
	=> Ex: to start the env-monitoring agent:
	$  [python] ./pyros.py start agentM
	=> Ex: to start agentA:
	$ [python] ./pyros.py start agentA

(3) Launching the Environment Monitoring
Open 3 different terminals
a) In terminal 1, launch the PLC simulator
	$ cd simulators/plc/
	$ [python] ./plcSimulator.py 
b) In terminal 2, launch the Monitoring agent 
	$ [python] ./pyros.py start agentM
c) In terminal 3, launch the webserver
	$ [python] ./pyros.py start webserver
d) With a browser, go to the Environment Monitoring dashboard
	- See the current weather :
	Click on Weather (or go to http://127.0.0.1:8000/dashboard/weather
	- Configure the monitoring :
	Go to http://127.0.0.1:8000/monitoring/weather/config

(4) Launching many agents:
	$ [python] ./pyros.py start <agent1-name>,<agent2-name>,.
	=> Ex: start agentA and agentB
	$ [python] ./pyros.py start agentA,agentB
	=> You could also start ALL agents at once:
	$ [python] ./pyros.py start all


-------------------------------------------
(B) Running with the website
-------------------------------------------

(1) Start only the webserver (for pyros website)
	$ [python] ./pyros.py start webserver
Then, connect to http://localhost:8000
You can also connect to the admin interface: http://localhost:8000/admin
(Login as 'pyros' with the password 'DjangoPyros')

(2) Now, you can start some (or all) agents to have the website come to life !
See section (A) just above