Space Engineers

Space Engineers

Not enough ratings
Grid Power Monitor
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.544 KB
6 Feb, 2015 @ 4:36pm
14 Feb, 2015 @ 10:46am
2 Change Notes ( view )

Subscribe to download
Grid Power Monitor

Description
The Grid Power Monitor uses a Programmable Block to keep track of your station or ships' power level.

Feature list:
- Checks the power levels of your Reactors, Solar Panels and Batteries and calculates the Power Points depending on how much power you are receiving.
- Can be configured by "Warning Actions", which will decide when the power is running low or when it's normal. By default, below 100 is critical, below 200 is warning and above 500 is OK/normal.
- Can change the color of a set of spotlights when a different Warning Action is reached.
- Can put the number of Power Points in a Beacon name, so everyone can see the current level.
- Can trigger a Timer Block, allowing you to execute a certain predefined set of actions whenever the power runs low.

By combining these features, you can achieve almost anything, e.g. by disabling all the lights, antenna's and beacons on your station/ship when the power is running low, or by sounding a loud alarm when the power is reaching a critical level!

Requirements:
- Programmable block
- At least one of the optional components

Optional components:
- A beacon with a specific code in it's name. By default this is: [PowerPointsLevel]
- A spotlight with a specific code in it's name. By default this is: [PowerMonitor]
- A Timer Block with a name that is configured in one of the Warning Actions.

Default Warning Actions:
- CRITICAL LEVEL triggers below 100 PowerPoints. Spotlights will change to RGB 255/0/0 (RED) and the Timer Block "WarningAction_CriticalLevel" will be triggered NOW.
- WARNING LEVEL triggers below 200 (but above 100) PowerPoints. Spotlights will change to RGB 255/20/0 (YELLOW) and the Timer Block "WarningAction_WarningLevel" will be triggered NOW.
- NORMAL LEVEL triggers whenever one of the other actions hasn't been reached. Spotlights will change to RGB 0/255/0 (GREEN) and the Timer Block "WarningAction_NormalLevel" will be triggered NOW.

Warning: If you require support or if you would like to file a bug, please use a site like pastebin.com to post your currently used script and describe what blocks are used including names. Without this information, it's hard for me to find the error. Thanks!
13 Comments
Old Bob 10 Jul @ 8:50am 
DONT WORK
DarkThemes 7 Oct, 2017 @ 12:36pm 
Would it be possible to allow the power monitor to output to an LCD?
Myst Leissa 5 Apr, 2015 @ 8:37pm 
Toy Can you make it where an antenna can report (by appending it's name) when the power is low or critical?
ToySoldier  [author] 4 Mar, 2015 @ 9:30am 
@ Red Skoonkfloof Night: Currently there isn't, but by changing the beacon block to antenna blocks, or by copying it and changing it then, you can achieve this. Add/message me if you can't figure it out.
Red Night 2 Mar, 2015 @ 3:03pm 
Is there a way to change the output to another block like an antenna for example?
Dantirya 14 Feb, 2015 @ 11:01am 
Thanks for fixing my problem! Works great now. ^__^
ToySoldier  [author] 14 Feb, 2015 @ 9:51am 
Generally it shouldn't, though, because the block names of those different reactors should have a different type too. Either way, if you let me know what modification added them, I might be able to incorporate them. :)
Dantirya 14 Feb, 2015 @ 9:50am 
that's probably what the problem is then, thanks for your time
ToySoldier  [author] 14 Feb, 2015 @ 9:49am 
Hiya, without access to your setup, it's hard for me to figure out what is wrong. I just tested a fresh setup on a platform with 1 reactor with 25 uranium ingots, 1 gravity generator (for practical purposes), 1 spotlight named 'Spotlight [PowerMonitor]' and 1 beacon named '[PowerPointsLevel]', I get no such errors.

If you would be so kind to allow me access to whatever game/server you are playing on, I can try to help you figure out what is going wrong. Using third-party/non-standard reactors can indeed mess up the script, as their inventories and/or inventory type might not work or work differently.
Dantirya 14 Feb, 2015 @ 9:48am 
http://pastebin.com/HqcQLgVH

also, after some thought I do have non-standard reactors on my station, you think that might be the problem?