Skip to content

davidcaceres1512/DSA_pedestal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Pedestal Controller

Status GitHub Issues GitHub Pull Requests License


Pedestal controller for a weather radar.

📝 Table of Contents

🧐 About


Write about 1-2 paragraphs describing the purpose of your project.

🏁 Getting Started


These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites


Firmware

- libraries

libraries used in the framework arduino-cli with stm32duino_core 1.9.0.

  1. decompress libraries.zip in the folder libraries

open readme here

Software

- broker

  • in windows:
  1. Install broker mosquitto 1.6.x.

  2. deactivate firewall or add new rule into firewall (port 1883).

  3. activate the service mosquitto.

warning! if you install mosquitto 2.x.x you have modified mosquitto.conf

  1. add the next words into file mosquitto.conf
listener 1883
allow_anonymous true 
  1. restart the services for surting effect the modified
windows+r => services.msc
restart mosquitto

click here for more information.

  • in ubuntu:
  1. Install broker mosquitto 1.6.x.
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto
  1. Add new rule into firewall (port 1883).
sudo ufw allow 1883 
sudo ufw enable
  1. Verify is not already running
pgrep mosquitto

Note if any number shows, that is the PID of an already running Mosquitto. You can just kill it. Also, you can try:

sudo service mosquitto stop
  1. Start Mosquitto with verbose option
mosquitto -v

warning! if you install mosquitto 2.x.x you have modified mosquitto.conf

  1. add the next words into file mosquitto.conf
sudo nano mosquitto.conf
listener 1883
allow_anonymous true 
  1. restart the services for surting effect the modified
pgrep mosquitto | xargs kill
sudo service mosquitto start

click here for more information.

- python 3.9

  1. install python 3.9
#!/bin/sh

# Update the packages list and install the prerequisites
sudo apt update
sudo apt install software-properties-common

# install PPA
sudo add-apt-repository ppa:deadsnakes/ppa

# update and install
sudo apt update
sudo apt install python3.9 python3.9-dev python3.9-venv

# setup alternatives
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2

# show menu for selecting the version
sudo update-alternatives --config python3
  1. create virtual enviroment
#This command creates a directory called 'my_env_project' in the current directory, which contains pip, interpreter, scripts and libraries.
python3 -m venv my_env_project

#activate virtual enviroment
source my_env_project/bin/activate

#deactivate virtual enviroment
deactivate

#delete virtual enviroment
sudo rm -rf my_env_project
  1. install pip in python 3.9
#install pip for specific version
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.9

optional

# you can separate pip with "update-alternatives"
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
# show menu for selecting the version
sudo update-alternatives --config pip 

- python requirements

  1. install the requirements
pip install -r libraries/software/requirements.txt

- hdf5 viewer

  1. install panoply or hdf5group

click here to install panoply

  1. verified java
java --version
  1. install java
sudo apt install default-jdk
  1. execute Panoply.jar
java -jar jars/Panoply.jar

- docker

click here to install docker in ubuntu 18.04

Installing

A step by step series of examples that tell you how to get a development env running.

Say what the step will be

Give the example

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo.

🔧 Running the tests

Explain how to run the automated tests for this system.

Break down into end to end tests

Explain what these tests test and why

Give an example

And coding style tests

Explain what these tests test and why

Give an example

🎈 Usage

Add notes about how to use the system.

🚀 Deployment

Add additional notes about how to deploy this on a live system.

About

pedestal for Jicamarca radio Observatory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages