update
This commit is contained in:
57
old/config.json.dist
Normal file
57
old/config.json.dist
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"modem_config_mode": false,
|
||||
"NPM/get_data_modbus_v3.py":true,
|
||||
"loop/SARA_send_data_v2.py": true,
|
||||
"RTC/save_to_db.py": true,
|
||||
"BME280/get_data_v2.py": true,
|
||||
"envea/read_value_v2.py": false,
|
||||
"MPPT/read.py": false,
|
||||
"windMeter/read.py": false,
|
||||
"sqlite/flush_old_data.py": true,
|
||||
"deviceID": "XXXX",
|
||||
"npm_5channel": false,
|
||||
"latitude_raw": 0,
|
||||
"longitude_raw":0,
|
||||
"latitude_precision": 0,
|
||||
"longitude_precision": 0,
|
||||
"deviceName": "NebuleAir-proXXX",
|
||||
"SaraR4_baudrate": 115200,
|
||||
"NPM_solo_port": "/dev/ttyAMA5",
|
||||
"NextPM_ports": [
|
||||
"ttyAMA5"
|
||||
],
|
||||
"i2C_sound": false,
|
||||
"i2c_RTC": false,
|
||||
"local_storage": false,
|
||||
"sshTunnel_port": 59228,
|
||||
"npm1_status": "connected",
|
||||
"SARA_R4_general_status": "connected",
|
||||
"SARA_R4_SIM_status": "connected",
|
||||
"SARA_R4_network_status": "connected",
|
||||
"SARA_R4_neworkID": 20810,
|
||||
"WIFI_status": "connected",
|
||||
"MQTT_GUI": false,
|
||||
"send_aircarto": true,
|
||||
"send_uSpot": false,
|
||||
"modem_version": "XXX",
|
||||
"envea_sondes": [
|
||||
{
|
||||
"connected": false,
|
||||
"port": "ttyAMA4",
|
||||
"name": "h2s",
|
||||
"coefficient" : 4
|
||||
},
|
||||
{
|
||||
"connected": false,
|
||||
"port": "ttyAMA3",
|
||||
"name": "no2",
|
||||
"coefficient" : 1
|
||||
},
|
||||
{
|
||||
"connected": false,
|
||||
"port": "ttyAMA2",
|
||||
"name": "o3",
|
||||
"coefficient" : 1
|
||||
}
|
||||
]
|
||||
}
|
||||
37
old/install_software.yaml
Normal file
37
old/install_software.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
- name: Installer les logiciels sur le CM4
|
||||
hosts: nebuleair_pro
|
||||
become: yes # Ensure tasks run with sudo
|
||||
tasks:
|
||||
- name: Mettre à jour les paquets
|
||||
apt:
|
||||
update_cache: yes
|
||||
upgrade: dist
|
||||
|
||||
- name: Install necessary packages
|
||||
apt:
|
||||
name:
|
||||
- git
|
||||
- gh
|
||||
- apache2
|
||||
- php
|
||||
- python3
|
||||
- python3-pip
|
||||
- jq
|
||||
- autossh
|
||||
- i2c-tools
|
||||
- python3-smbus
|
||||
state: present # Ensure the package is installed
|
||||
update_cache: yes
|
||||
|
||||
- name: Install required Python packages
|
||||
pip:
|
||||
name:
|
||||
- pyserial
|
||||
- requests
|
||||
- RPi.GPIO
|
||||
- adafruit-circuitpython-bme280
|
||||
state: present
|
||||
executable: pip3 #Specifies which version of pip to use (in this case, pip3).
|
||||
extra_args: --break-system-packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user