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

Comments

  • Getting code::blocks to compile the project properly is a bit of a bitch. You are most likely better off with the CMake compile option.

    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.
  • I was thinking while staring at the ceiling, as I mostly do at night, and Think the HTTP API would be the best option, should be easy to read from the Pi. Thank you daid. I'll make sure to post videos later (could be a month) when I have it situated.
  • I am really missing it here, how is the index sending the function request and getting the result. I seem to be missing what is aiming the command to the game.
  • edited April 25
    First of all, you have to activate the http server. For a quick explanation, read here:
    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() or
    http://serverip:8080/get.lua?frontshield=getShieldLevel(0), assuming you are using the default port 8080
    For 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.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!