Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c53f6a3f77 | |||
| 7fe92790d7 | |||
| 3b9d5bc984 | |||
| a73f171102 | |||
| 157dc0e6cf | |||
| df6428550f | |||
| f1d4a7c1bc | |||
| 485453bc7d | |||
| 661fe4dfd6 | |||
| 0207899f1b | |||
| 359a1359f5 | |||
| 62fbdf3d5a |
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -81,11 +81,13 @@ jobs:
|
|||||||
uses: ietf-tools/semver-action@v1
|
uses: ietf-tools/semver-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: master
|
branch: master # ← change to "main" if that's your default
|
||||||
patchAll: true # Always increment patch number
|
patchAll: true
|
||||||
|
# fallbackTag: v0.0.1 # ← optionally bootstrap from an existing tag
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
if: ${{ github.event.inputs.create_release != 'false' }}
|
if: ${{ github.event.inputs.create_release != 'false' }}
|
||||||
|
id: create_release # ← this is required
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -94,21 +96,20 @@ jobs:
|
|||||||
release_name: Release ${{ steps.semver.outputs.next }}
|
release_name: Release ${{ steps.semver.outputs.next }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Zip the build for github release
|
- name: Zip the build for github release
|
||||||
if: ${{ github.event.inputs.create_release != 'false' }}
|
if: ${{ github.event.inputs.create_release != 'false' }}
|
||||||
run: Compress-Archive -Path './out/*' -DestinationPath './out/HomeScreen_Build_${{ steps.semver.outputs.next }}.zip' -CompressionLevel Optimal -Force
|
run: Compress-Archive -Path './output/*' -DestinationPath './output/HomeScreen_Build_${{ steps.semver.outputs.next }}.zip' -CompressionLevel Optimal -Force
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
if: ${{ github.event.inputs.create_release != 'false' }}
|
if: ${{ github.event.inputs.create_release != 'false' }}
|
||||||
id: upload-release-asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # ← now available
|
||||||
asset_path: ./out/HomeScreen_Build_"{${{ steps.semver.outputs.next }}}".zip
|
asset_path: ./output/HomeScreen_Build_${{ steps.semver.outputs.next }}.zip
|
||||||
asset_name: Lunaris_${{steps.semver.outputs.patch}}.zip
|
asset_name: HomeScreen_Build_${{ steps.semver.outputs.next }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Generate appsettings.json
|
- name: Generate appsettings.json
|
||||||
|
|||||||
40
README.md
40
README.md
@@ -1,5 +1,22 @@
|
|||||||
# This [](https://github.com/Myxelium/HomeScreen/actions/workflows/build.yml)
|
[](https://github.com/myxelium/homescreen "Go to GitHub repo")
|
||||||
Core api and Esp32 code for displaying weather data and public transport information on a e-ink display.
|
[](https://github.com/myxelium/homescreen)
|
||||||
|
[](https://github.com/myxelium/homescreen)
|
||||||
|
[](https://github.com/myxelium/homescreen/releases/)
|
||||||
|
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||||
|
[](https://github.com/myxelium/homescreen/issues)
|
||||||
|
[](https://github.com/Myxelium/HomeScreen/actions/workflows/build.yml)
|
||||||
|
# What why how
|
||||||
|
This is a project I created that pulls weather data from the internet, transforms it into custom images, and displays them on an e-ink screen powered by an ESP32.
|
||||||
|
|
||||||
|
## What This Project Does
|
||||||
|
|
||||||
|
I wanted a low-power way to see weather information at a glance, so I built this system that:
|
||||||
|
|
||||||
|
- Fetches real-time weather data from online APIs
|
||||||
|
- Processes and converts the data into visual images (temperature graphs, forecast icons, etc.)
|
||||||
|
- Sends these images wirelessly to an ESP32 microcontroller
|
||||||
|
- Displays the information on an energy-efficient e-ink screen
|
||||||
|
- Updates periodically while consuming minimal power
|
||||||
|
|
||||||
<img width="800" height="480" alt="image" src="https://github.com/user-attachments/assets/ef5af0c6-ea3a-494d-b2af-3de6e70b3e6a" />
|
<img width="800" height="480" alt="image" src="https://github.com/user-attachments/assets/ef5af0c6-ea3a-494d-b2af-3de6e70b3e6a" />
|
||||||
|
|
||||||
@@ -11,8 +28,8 @@ All commits has to follow this [Conventional Commits style](https://www.conventi
|
|||||||
- Display time and date
|
- Display time and date
|
||||||
|
|
||||||
## Requirements 🫥
|
## Requirements 🫥
|
||||||
- ESP32 board
|
- [ESP32 board](https://www.waveshare.com/wiki/E-Paper_ESP32_Driver_Board)
|
||||||
- E-ink display (e.g. Waveshare 7.5 inch)
|
- [E-ink display (e.g. Waveshare 7.5 inch)](https://www.waveshare.com/7.5inch-e-paper-hat.htm)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
@@ -92,7 +109,7 @@ end
|
|||||||
API[HomeControllerAPI]
|
API[HomeControllerAPI]
|
||||||
API -->|MediatR| Handlers
|
API -->|MediatR| Handlers
|
||||||
Handlers -->|Service Calls| Services
|
Handlers -->|Service Calls| Services
|
||||||
Services -->|Refit Clients| Clients
|
Services -->|Refit Http Clients| Clients
|
||||||
Clients -->|External APIs| ExtAPIs
|
Clients -->|External APIs| ExtAPIs
|
||||||
API -->|Returns JSON/JPEG| ESP
|
API -->|Returns JSON/JPEG| ESP
|
||||||
end
|
end
|
||||||
@@ -109,3 +126,16 @@ end
|
|||||||
ExtAPIs -.-> NominatimAPI
|
ExtAPIs -.-> NominatimAPI
|
||||||
ExtAPIs -.-> ResRobotAPI
|
ExtAPIs -.-> ResRobotAPI
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# ESP32 configuration and building
|
||||||
|
<img width="4096" height="1842" alt="image" src="https://github.com/user-attachments/assets/5acf1b3b-f9bb-48bd-b310-a2852544eaba" />
|
||||||
|
|
||||||
|
Best way of getting the ESP32 ready for code upload is to follow this guide [WAVESHARE ESP32 GUIDE](https://web.archive.org/web/20250706150325/https://www.waveshare.com/wiki/E-Paper_ESP32_Driver_Board).
|
||||||
|
Once you have it ready so you can upload code to it copy my code in: Esp32_Code/INFOSCREEN_WITH_INTERVAL from this repo.
|
||||||
|
|
||||||
|
Install following libraries (if more is needed search for them and install them too):
|
||||||
|
* ArduinoJson
|
||||||
|
* GUI_Paint
|
||||||
|
* JPEGDEC
|
||||||
|
|
||||||
|
You need the Waveshare examples installed since it uses code from them download them here [Download](https://files.waveshare.com/upload/5/50/E-Paper_ESP32_Driver_Board_Code.7z) or check above link.
|
||||||
|
|||||||
Reference in New Issue
Block a user