Custom Station assistance
I have snagged the code from github (having issues with Code::blocks not compiling) but regardless, I am trying to track down where the code about each station is located.
Goal: I plan to create an additional station that reads the input and status updates in the game with no GUI. For example, Red alert, Yellow alert, taking damage when the screen flashes red, powering up shields.
Intention: I have a raspberry pi that is wired up to the LED 256 RGB LED light strip in my room. I would like to have the pi run this "Review Station" and update the lights of the room itself to reflect the game with he proper lighting.
Thanks for reading
Goal: I plan to create an additional station that reads the input and status updates in the game with no GUI. For example, Red alert, Yellow alert, taking damage when the screen flashes red, powering up shields.
Intention: I have a raspberry pi that is wired up to the LED 256 RGB LED light strip in my room. I would like to have the pi run this "Review Station" and update the lights of the room itself to reflect the game with he proper lighting.
Thanks for reading
Comments
Instead of modifying the code, you could also hook into the DMX512 sACN protocol which you can use from the hardware.ini. Or hook up to the HTTP API and just poll the states you are interested in.
https://github.com/daid/EmptyEpsilon/wiki/HTTP-Server
As you want to use your raspberry as a monitoring station, all you need should be the get.lua. Make sure you also define a variable in your call
For example, to read the hull, do a:
http://serverip:8080/get.lua?hull=getHull()
orhttp://serverip:8080/get.lua?frontshield=getShieldLevel(0)
, assuming you are using the default port 8080For testing, just enter the line into your browser. Later, you can use curl oder other ways to do an http request on your raspi.
You can also request multiple values at once, e.g.:
http://serverip:8080/get.lua?hull=getHull()&hullmax=getHullMax()&reactorhealth=getSystemHealth(%22Reactor%22)&alert=getAlertLevel()&reputation=getReputationPoints()
For supported functions, you can take a look at the script_reference.html, which should be in you EmptyEpsilon Folder. This is basically an autogenerated list, no extensive documentation, though, but it's a good starting point for experimenting a bit.