Access Philips Hue REST API?

Place to get help with not working mods / modding interface.
dan2600
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 29, 2016 5:52 pm
Contact:

Access Philips Hue REST API?

Post by dan2600 »

Is it possible for a factorio mod to send requests to a web REST API?

I know LUA can use socket.http and ltn12 for such tasks. But I'm a bit confused on if mods can access standard lua functions or only the factorio lua API.

The mod I have in mind would basically turn the lights in my room different colors based on different events done in the game.

Thanks for the help!
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Access Philips Hue REST API?

Post by orzelek »

Lua is limited for security reasons - no os functions and no connections of any kind.
dan2600
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 29, 2016 5:52 pm
Contact:

Re: Access Philips Hue REST API?

Post by dan2600 »

orzelek wrote:Lua is limited for security reasons - no os functions and no connections of any kind.
Thanks for the reply! I figured as much. I'll post a request for a simple HTTP method to API request forum then. I think there could be a lot of cool uses for it (such as external monitoring on a second device, etc)
Post Reply

Return to “Modding help”