-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary
Journal of an install of ADaM on a Windows 10 computer.
Steps
Cloned into a folder with other Public Invention projects
Did a pull after a few days:

Open Windows 10 power shell by typing "powershell" in the file address bar:

Create and activate a virtual environment by copy and paste the following code
python -m venv .venv
.\.venv\Scripts\Activate.ps1
The shell was not responsive.
Try again one at a time for the two commands
Error
Set execution policy by running this command in the power shell:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Restart: Close and reopen your terminal or PowerShell window for the change to take effect in the new session.
This time the script did not report an error:
Addition to Instructions.
Include instructions for setting the "ExecutionPolicy" above.
Resume at Install dependencies
Copy and paste,
# If requirements.txt exists:
pip install -r requirements.txt
# If not, minimum:
pip install paho-mqtt
Try the powershell commands one at a time, Worked!
Set MQTT credentials locally (required)
Copy and paste individually the three commands. Success.
Run the system (3 terminals) Notes
Three times, command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

Terminal 1: Start ADaMServer
Copy and paste, "python .\ADaMServer.py". Fails: No such file or directory
Change directory with "cd ADaMpy". Run the command and success.
Terminal 2: Start Krake Simulator
Copy paste "python .\Krake_Simulator.py". Again got error:

Change directory again and it works with the warning on Depreciated callback..
Terminal 3: Start a simulator (choose one)
CD to ADaMpy.
Copy paste "python .\simulators\alarm_generator.py" Appears to run with success.


