Skip to content

Commit

Permalink
Rename StarMod to StarBase
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Apr 27, 2024
1 parent ef3a1b7 commit 61a0a60
Show file tree
Hide file tree
Showing 41 changed files with 278 additions and 277 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ jobs:
- name: Build PlatformIO Project
run: pio run -e ${{ matrix.environment }}
- name: Rename Bin
run: mv .pio/build/${{ matrix.environment }}/firmware.bin StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
run: mv .pio/build/${{ matrix.environment }}/firmware.bin StarBase-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
path: StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
name: StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
path: StarBase-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
name: StarBase-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin
retention-days: 30

release:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# StarMod
# StarBase

See [StarDocs](https://ewowi.github.io/StarDocs/)

<img width="1456" alt="image" src="https://github.com/ewowi/StarMod/assets/138451817/e29cfed8-59b2-4abb-82e4-c26bbec4cde2">
<img width="1456" alt="image" src="https://github.com/ewowi/StarBase/assets/138451817/e29cfed8-59b2-4abb-82e4-c26bbec4cde2">

Forks:

* [MoonModules/StarModLeds](https://github.com/MoonModules/StarModLeds)
* [MoonModules/StarLeds](https://github.com/MoonModules/StarLeds)

8 changes: 4 additions & 4 deletions data/app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @title StarMod
// @title StarBase
// @file app.js
// @date 20240411
// @repo https://github.com/ewowi/StarMod
// @Authors https://github.com/ewowi/StarMod/commits/main
// @Copyright © 2024 Github StarMod Commit Authors
// @repo https://github.com/ewowi/StarBase
// @Authors https://github.com/ewowi/StarBase/commits/main
// @Copyright © 2024 Github StarBase Commit Authors
// @license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
// @license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]

Expand Down
10 changes: 5 additions & 5 deletions data/index.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
@title StarMod
@title StarBase
@file index.css
@date 20240411
@repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
@Authors https://github.com/ewowi/StarMod/commits/main
@Copyright © 2024 Github StarMod Commit Authors
@repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
@Authors https://github.com/ewowi/StarBase/commits/main
@Copyright © 2024 Github StarBase Commit Authors
@license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
@license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]
*/

:root,
:root.starmod {
:root.starbase {
--bg-color: linear-gradient(to bottom, #ffbe33 0%, #b60f62 100%);
--text-color: #030303;
--th-color: #b60f6281;
Expand Down
18 changes: 9 additions & 9 deletions data/index.htm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!--
@title StarMod
@title StarBase
@file index.htm
@date 20240411
@repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
@Authors https://github.com/ewowi/StarMod/commits/main
@Copyright © 2024 Github StarMod Commit Authors
@repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
@Authors https://github.com/ewowi/StarBase/commits/main
@Copyright © 2024 Github StarBase Commit Authors
@license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
@license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]
*/
Expand All @@ -16,14 +16,14 @@
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="author" content="MoonModules ☾ and it's contributors">
<link rel="icon" href="https://ewowi.github.io/StarDocs/assets/images/ui/starmod/favicon-16x16.png">
<link rel="icon" href="https://ewowi.github.io/StarDocs/assets/images/ui/StarBase/favicon-16x16.png">
<!-- <link rel="icon" type="image/x-icon" href="favicon-16x16.png"> currently only works in chrome -->
<!-- <link rel="mask-icon" type="image/x-icon" href="favicon-16x16.png"> for safari tabs? -->
<!-- <link rel="shortcut icon" type="image/x-icon" href="favicon-16x16.png"> found in wled... -->
<link rel="stylesheet" href="index.css">
<script src="app.js"></script>
<script src="index.js"></script>
<title>StarMod💫 by MoonModules 🌔</title>
<title>StarBase💫 by MoonModules 🌔</title>

<!-- favicon in safari not working. see: -->
<!-- https://stackoverflow.com/questions/68885882/favicon-not-displaying-on-safari -->
Expand All @@ -45,7 +45,7 @@
<body onload="onLoad()">
<div class="module">
<hgroup>
<h1 style="float: left;">StarMod💫 by MoonModules 🌔</h1>
<h1 style="float: left;">StarBase💫 by MoonModules 🌔</h1>
<a href="https://ewowi.github.io/StarDocs" style="float: right;"></a>
</hgroup>
<br>
Expand All @@ -60,12 +60,12 @@ <h2><div id="serverName"></div></h2>
<input type="button" value="Save" id="bSave" onclick="saveModel(this)">
<span> | </span>
<label>Theme</label> <select name="theme-select" id="theme-select" onchange="setTheme(this)">
<option value="starmod">StarMod</option>
<option value="starbase">StarBase</option>
<option value="wled">WLED</option>
<option value="grayeen">Grayeen</option>
<option value="dev">Dev</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
<option value="dark">DeathStar</option>
<option value="blue">Blue</option>
<option value="pink">Pink</option>
<option value="space">Space</option>
Expand Down
8 changes: 4 additions & 4 deletions data/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @title StarMod
// @title StarBase
// @file index.css
// @date 20240411
// @repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
// @Authors https://github.com/ewowi/StarMod/commits/main
// @Copyright © 2024 Github StarMod Commit Authors
// @repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
// @Authors https://github.com/ewowi/StarBase/commits/main
// @Copyright © 2024 Github StarBase Commit Authors
// @license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
// @license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]

Expand Down
2 changes: 1 addition & 1 deletion data/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"ro": false,
"o": 42,
"max": 32,
"value": "StarMod16MB"
"value": "StarBase16MB"
},
{
"id": "upTime",
Expand Down
6 changes: 3 additions & 3 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "StarMod",
"name": "StarBase",
"version": "1.0.0",
"description": "StarMod is a computer program that outputs StarMod or some variant on a display device",
"description": "StarBase is a computer program that outputs StarBase or some variant on a display device",
"keywords": "planet, happiness, people",
"repository":
{
"type": "git",
"url": "https://github.com/ewowi/starmod.git"
"url": "https://github.com/ewowi/StarBase.git"
},
"authors":
[
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name=StarMod
name=StarBase
version=1.0.0
author=ewowi
maintainer=ewowi
sentence=Library to play with LEDs
paragraph=Library to play with LEDs
category=Communication
url=https://github.com/ewowi/starmod
url=https://github.com/ewowi/StarBase
architectures=esp32
includes=*
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "starmod",
"version": "0.0.1",
"description": "Tools for StarMod",
"name": "StarBase",
"version": "0.0.0",
"description": "Tools for StarBase",
"main": "tools/cdata.js",
"directories": {
"lib": "lib",
Expand All @@ -13,14 +13,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ewowi/StarMod.git"
"url": "git+https://github.com/ewowi/StarBase.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/ewowi/StarMod/issues"
"url": "https://github.com/ewowi/StarBase/issues"
},
"homepage": "https://github.com/ewowi/StarMod#readme",
"homepage": "https://github.com/ewowi/StarBase#readme",
"dependencies": {
"clean-css": "^4.2.3",
"html-minifier-terser": "^5.1.1",
Expand Down
42 changes: 21 additions & 21 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; @title StarMod
; @title StarBase
; @file platformio.ini
; @date 20240411
; @repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
; @Authors https://github.com/ewowi/StarMod/commits/main
; @Copyright © 2024 Github StarMod Commit Authors
; @repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
; @Authors https://github.com/ewowi/StarBase/commits/main
; @Copyright © 2024 Github StarBase Commit Authors
; @license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
; @license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]

Expand All @@ -22,17 +22,17 @@ lib_deps =
;Work in progress - not compiling yet
[PsychicHttp]
build_flags =
-DSTARMOD_USE_Psychic
-DSTARBASE_USE_Psychic
lib_deps =
; hoeken/PsychicHttp
https://github.com/hoeken/PsychicHttp



[starmod]
[StarBase]
build_flags =
${ESPAsyncWebServer.build_flags}
-D STARMOD_DEVMODE
-D STARBASE_DEVMODE
lib_deps =
${ESPAsyncWebServer.lib_deps}
https://github.com/bblanchon/ArduinoJson.git#v7.0.3
Expand All @@ -41,15 +41,15 @@ lib_deps =



[STARMOD_USERMOD_E131]
[STARBASE_USERMOD_E131]
build_flags =
-D STARMOD_USERMOD_E131
-D STARBASE_USERMOD_E131
lib_deps =
https://github.com/forkineye/ESPAsyncE131.git#v1.0.3

[STARMOD_USERMOD_HA]
[STARBASE_USERMOD_HA]
build_flags =
-D STARMOD_USERMOD_HA
-D STARBASE_USERMOD_HA
lib_deps =
https://github.com/dawidchyrzynski/arduino-home-assistant.git#2.0.0
https://github.com/knolleary/pubsubclient.git#v2.8
Expand Down Expand Up @@ -77,19 +77,19 @@ board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad
build_unflags =
${Speed_Flags.build_unflags}
build_flags =
${starmod.build_flags}
${StarBase.build_flags}
${Speed_Flags.build_flags}
-DCONFIG_ASYNC_TCP_USE_WDT=0
-DLFS_THREADSAFE ;; enables use of semaphores in LittleFS driver
${STARMOD_USERMOD_E131.build_flags}
; ${STARMOD_USERMOD_HA.build_flags}
-DAPP=StarMod
${STARBASE_USERMOD_E131.build_flags}
; ${STARBASE_USERMOD_HA.build_flags}
-DAPP=StarBase
-DVERSION=24042614 ; Date and time (GMT!)
-DPIOENV=$PIOENV
lib_deps =
${starmod.lib_deps}
${STARMOD_USERMOD_E131.lib_deps}
; ${STARMOD_USERMOD_HA.lib_deps}
${StarBase.lib_deps}
${STARBASE_USERMOD_E131.lib_deps}
; ${STARBASE_USERMOD_HA.lib_deps}
extra_scripts =
post:tools/post_build.py

Expand Down Expand Up @@ -142,7 +142,7 @@ build_flags =
; -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 ;; with serial-to-USB moddule (use in case your board hangs without USB connection)
-DARDUINO_USB_MODE=0 ;; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (mandatory on -S2)
; -D DEBUG=1 -D CORE_DEBUG_LEVEL=1 -D ARDUINOJSON_DEBUG=1 ;; for more debug output
-DSTARMOD_LOLIN_WIFI_FIX ;; workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
-DSTARBASE_LOLIN_WIFI_FIX ;; workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi


[env:lolin_c3_mini]
Expand All @@ -161,7 +161,7 @@ build_flags =
-DARDUINO_USB_CDC_ON_BOOT=1 ;; for debugging over USB
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; with serial-to-USB moddule (use in case your board hangs without USB connection)
-DARDUINO_USB_MODE=1 ;; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (mandatory on -C3)
-DSTARMOD_LOLIN_WIFI_FIX ;; activate workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
-DSTARBASE_LOLIN_WIFI_FIX ;; activate workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
; -D DEBUG=1 -D CORE_DEBUG_LEVEL=1 -D ARDUINOJSON_DEBUG=1 ;; for more debug output

; RAM: [= ] 14.3% (used 46732 bytes from 327680 bytes)
Expand All @@ -178,7 +178,7 @@ build_flags =
-DCONFIG_IDF_TARGET_ESP32S3=1
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_DFU_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 ;; for debugging over USB
; -D DEBUG=1 -D CORE_DEBUG_LEVEL=1 -D ARDUINOJSON_DEBUG=1 ;; for more debug output
; -DSTARMOD_LOLIN_WIFI_FIX ;; I don't trust the tiny ceramic antenna - use workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
; -DSTARBASE_LOLIN_WIFI_FIX ;; I don't trust the tiny ceramic antenna - use workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi



Expand Down
8 changes: 4 additions & 4 deletions src/App/AppModDemo.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
@title StarMod
@title StarBase
@file AppModDemo.h
@date 20240411
@repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
@Authors https://github.com/ewowi/StarMod/commits/main
@Copyright © 2024 Github StarMod Commit Authors
@repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
@Authors https://github.com/ewowi/StarBase/commits/main
@Copyright © 2024 Github StarBase Commit Authors
@license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
@license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Sys/SysModFiles.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
@title StarMod
@title StarBase
@file SysModFiles.cpp
@date 20240411
@repo https://github.com/ewowi/StarMod, submit changes to this file as PRs to ewowi/StarMod
@Authors https://github.com/ewowi/StarMod/commits/main
@Copyright © 2024 Github StarMod Commit Authors
@repo https://github.com/ewowi/StarBase, submit changes to this file as PRs to ewowi/StarBase
@Authors https://github.com/ewowi/StarBase/commits/main
@Copyright © 2024 Github StarBase Commit Authors
@license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
@license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]
*/
Expand Down Expand Up @@ -223,7 +223,7 @@ bool SysModFiles::readObjectFromFile(const char* path, JsonDocument* dest) {
}
else {
ppf("File %s open to read, size %d bytes\n", path, (int)f.size());
DeserializationError error = deserializeJson(*dest, f, DeserializationOption::NestingLimit(20)); //StarMod requires more then 10
DeserializationError error = deserializeJson(*dest, f, DeserializationOption::NestingLimit(20)); //StarBase requires more then 10
if (error) {
print->printJDocInfo("readObjectFromFile", *dest);
ppf("readObjectFromFile deserializeJson failed with code %s\n", error.c_str());
Expand All @@ -236,7 +236,7 @@ bool SysModFiles::readObjectFromFile(const char* path, JsonDocument* dest) {
}
}

//candidate for deletion as taken over by StarModJson
//candidate for deletion as taken over by StarJson
// bool SysModFiles::writeObjectToFile(const char* path, JsonDocument* dest) {
// File f = open(path, "w");
// if (f) {
Expand Down
Loading

0 comments on commit 61a0a60

Please sign in to comment.