[READ-ONLY] Mirror of https://github.com/thoda-dev/sb-energy-management. A full module to manage energy in your ship
0

Configure Feed

Select the types of activity you want to include in your feed.

base version

Thomas (Aug 19, 2021, 6:08 PM +0200) 5947e7ea c98fcb74

+208
+12
.github/FUNDING.yml
··· 1 + # These are supported funding model platforms 2 + 3 + github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 + patreon: # Replace with a single Patreon username 5 + open_collective: # Replace with a single Open Collective username 6 + ko_fi: jericho1060 7 + tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 + community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 + liberapay: # Replace with a single Liberapay username 10 + issuehunt: # Replace with a single IssueHunt username 11 + otechie: # Replace with a single Otechie username 12 + custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+20
button1.yolol
··· 1 + if :GenModeP==1 then :GenModeNb++ :GenModeP=0 end goto1 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
+20
button2.yolol
··· 1 + if :GenModeM==1 then :GenModeNb-- :GenModeM=0 end goto1 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
+20
buttons_group.yolol
··· 1 + if :GenModeP==1 then :GenModeNb++ :GenModeP=0 end 2 + if :GenModeM==1 then :GenModeNb-- :GenModeM=0 end 3 + if :GenModeNb<3 then :GenModeNb=6 end 4 + if :GenModeNb>6 then:GenModeNb=3 end goto1 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
+20
higher_limit.yolol
··· 1 + if :GenModeNb>6 then:GenModeNb=3 end goto1 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
+20
lower_limit.yolol
··· 1 + if :GenModeNb<3 then :GenModeNb=6 end goto1 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
+20
main.yolol
··· 1 + goto (:GenModeNb-1) 2 + :FuelChamberUnitRateLimit=0 goto1 3 + :FuelChamberUnitRateLimit=100-(:StoredBatteryPower/100) goto1 4 + :FuelChamberUnitRateLimit=50 goto1 5 + :FuelChamberUnitRateLimit=100 goto1 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management
pictures/ButtonBottom.jpg

This is a binary file and will not be displayed.

pictures/ButtonTop.jpg

This is a binary file and will not be displayed.

pictures/DisplayButtonsMounting.jpg

This is a binary file and will not be displayed.

pictures/FuelChamber.jpg

This is a binary file and will not be displayed.

pictures/Generator.jpg

This is a binary file and will not be displayed.

pictures/MemoryChip.jpg

This is a binary file and will not be displayed.

pictures/RackMounting.jpg

This is a binary file and will not be displayed.

pictures/TextPanel.jpg

This is a binary file and will not be displayed.

+56
readme.md
··· 1 + # SB ENERGY MANAGEMENT 2 + A full automated energy management script for Starbase 3 + 4 + ## Guilded Server (better than Discord) 5 + 6 + You can join me on Guilded for help or suggestions or requests by following that link : https://guilded.jericho1060.com 7 + 8 + ### Modes 9 + 10 + This system will give you 4 modes for you energy system 11 + 12 + - Shutdown: it will stop your power 13 + - Auto: it will adjust the power elevel depending on your batteries and can save fuel 14 + - Half: Force the power to 50% 15 + - Override: Force the power to 100% 16 + 17 + ### Elements required 18 + 19 + - 6 `Basic YOLOL chips` (you can only use 3 but the performance will be slower) 20 + - 1 `Text panel 24x24` 21 + - 2 `Simple buttons 12x12` 22 + - 1 `YOLOL memery chip` 23 + - 7 `YOLOL chip sockets` or 3 `YOLOL Racks 48x48` with 1 `YOLOL Rack chip slot(2 slots)` and 2 `YOLOL Rack chip slot (3 Slots)` 24 + 25 + ### Example for Mounting the display and buttons 26 + 27 + ### Example for Mounting the Script Racks 28 + 29 + ### The buttons 30 + 31 + #### Top Button Fields 32 + 33 + 34 + #### Bottom Button fields 35 + 36 + 37 + ### Text Panel 38 + 39 + 40 + ### Memory chip 41 + 42 + On the memory chip, just replace the 1st field with the name `GenModeNb` and set it to `4` (this is the value for auto power) 43 + 44 + ### Scripts 45 + 46 + If you are using 6 you can copy each of the folowing files on a single basic chip and plug them: 47 + 48 + - `main.yolol` will manage the fuel chmaber rate depending on th emode you selected 49 + - `screen.yolol` will manage the display on the text panel 50 + - `button1.yolol` will manage the press on the bottom button 51 + - `button2.yolol` will manage the press on the top button 52 + - `higher_limit.yolol` will reset the value of `GenModeNB` to shutdown if it goes higher than the overide 53 + - `higher_limit.yolol` will reset the value of `GenModeNB` to override if it goes lower than the shutdown 54 + 55 + if you are only using 3 chips, you only need these 3 scripts : `main.yolol`, `screen.yolol`, `buttons_group.yolol`. 56 + The third one will regroupe the 4 that are managing the button states and the limits.
+20
screen.yolol
··· 1 + l1="Shutdown" l2="Auto" l3="Half" l4="Override" 2 + a="> " b=" " n="\n" goto :GenModeNb 3 + :GenMode=n+a+l1+n+b+l2+n+b+l3+n+b+l4 goto2 4 + :GenMode=n+b+l1+n+a+l2+n+b+l3+n+b+l4 goto2 5 + :GenMode=n+b+l1+n+b+l2+n+a+l3+n+b+l4 goto2 6 + :GenMode=n+b+l1+n+b+l2+n+b+l3+n+a+l4 goto2 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + // SHIP ENERGY MANAGEMENT By Jericho (Discord: jericho#1060) 20 + // https://github.com/Jericho1060/sb-energy-management