Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge basestation readme file to docs #74

Open
thclark opened this issue Jun 28, 2022 · 0 comments
Open

Merge basestation readme file to docs #74

thclark opened this issue Jun 28, 2022 · 0 comments

Comments

@thclark
Copy link
Contributor

thclark commented Jun 28, 2022

Feature request

On the rpi, @time-trader made a readme (see below) for aspects of how to connect to different things. I'll be wiping this soon (and anyway raspberry pis shouldn't be considered permanent storage, their SSDs are notoriously unreliable).

Here's the text, it should be merged into the relevant bits of the docs To connect to RaspPI, contact Juri, to get VPN keys: Option 1: Husarnet ssh pi@base-station Option 2: WireGuard VPN: ssh [email protected]

Pass: REDACTED

To use the gateway:
1.Activate a virtual environment:
source /home/pi/flasks/gateway/bin/activate
2.Use gateway command:
gateway

2.1
For help:
gateway --help
gateway start --help
gateway create-installation --help

2.2 For the gateway to store data into the BigQuery SQL database, make sure the "installation" exists. The instalation is defined in the configuration json file.

....
"installation_data": {
"installation_reference": "ost-wt-evaluation",
"longitude": "001",
"latitude": "001",
"turbine_id": "OST_WIND",
"blade_id": "BAV01",
"hardware_version": "2.1",
"sensor_coordinates": {.....}
}
....

If one wishes to make a new installation:
gateway create-installation --config-file="/home/pi/data_gateway_configurations/.json"

2.3
EXAMPLES:

  1. To start gateway with upload to cloud, and a pre-defined routine:
    gateway start --gcp-project-name=aerosense-twined --gcp-bucket-name=aerosense-ingress-eu --config-file="/home/pi/data_gateway_configurations/configuration.json" --routine-file="/home/pi/data_gateway_configurations/routine-pret4.json"--window-size=60

  2. IF you wish to run in interactive mode (no upload to cloud) :
    gateway start --config-file="/home/pi/data_gateway_configurations/configuration.json" --window-size=60 -l -nc -i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant