Skip to content

Journal of ADaM Install, Windows 10 #12

@ForrestErickson

Description

@ForrestErickson

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:
Image

The resulting folder:
Image

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

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

Image

Set execution policy by running this command in the power shell:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Image 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:

Image

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

PowerShell returned error
Image

Try the powershell commands one at a time, Worked!

Image

Set MQTT credentials locally (required)
Copy and paste individually the three commands. Success.

Image

Run the system (3 terminals) Notes

Three times, command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Image

Terminal 1: Start ADaMServer
Copy and paste, "python .\ADaMServer.py". Fails: No such file or directory

Image Change directory with "cd ADaMpy". Run the command and success. Image

Terminal 2: Start Krake Simulator
Copy paste "python .\Krake_Simulator.py". Again got error:
Image

Change directory again and it works with the warning on Depreciated callback..

Image

Terminal 3: Start a simulator (choose one)
CD to ADaMpy.
Copy paste "python .\simulators\alarm_generator.py" Appears to run with success.
Image

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions