Skip to content

Commit

Permalink
Merge pull request #39 from quimnut/main
Browse files Browse the repository at this point in the history
Update pip and centre map to web site location
  • Loading branch information
kevinelliott authored Jul 13, 2024
2 parents 37bb714 + 4d23860 commit b99c047
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ WORKDIR /app
# Copy the requirements file
COPY requirements.txt .

# Update pip
RUN pip install --upgrade pip

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

Expand Down
3 changes: 3 additions & 0 deletions meshtastic_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class HardwareModel(Enum):
HardwareModel.LILYGO_TBEAM_S3_CORE: "LILYGO_TBEAM_S3_CORE.png",
HardwareModel.NANO_G1_EXPLORER: "NANO_G1_EXPLORER.png",
HardwareModel.NANO_G2_ULTRA: "NANO_G2_ULTRA.png",
HardwareModel.NRF52_PROMICRO_DIY: "NRF52_PROMICRO_DIY.png",
HardwareModel.RAK11310: "RAK11310.png",
HardwareModel.RAK4631: "RAK4631.png",
HardwareModel.RP2040_LORA: "RP2040_LORA.png",
HardwareModel.RPI_PICO: "RPI_PICO.png",
Expand All @@ -96,4 +98,5 @@ class HardwareModel(Enum):
HardwareModel.T_DECK: "T_DECK.png",
HardwareModel.T_ECHO: "T_ECHO.png",
HardwareModel.T_WATCH_S3: "T_WATCH_S3.png",
HardwareModel.PRIVATE_HW: "PRIVATE_HW.png",
}
Binary file added public/images/hardware/NRF52_PROMICRO_DIY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/hardware/PRIVATE_HW.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/hardware/RAK11310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/hardware/XIAO_BLE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions templates/static/map.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
longitude: -121.4944,
};
var server_position = null;
{% if 'position' in server_node and server_node.position and 'latitude_i' in server_node.position and 'longitude_i' in server_node.position %}
{% if 'latitude' in config['mesh'] and 'longitude'in config['mesh'] %}
server_position = {
latitude: {{ server_node.position.latitude_i / 10000000 }},
longitude: {{ server_node.position.longitude_i / 10000000 }},
latitude: {{ config['mesh']['latitude'] }},
longitude: {{ config['mesh']['longitude'] }}
};
{% else %}
server_position = default_position;
Expand Down

0 comments on commit b99c047

Please sign in to comment.