dryark / controlfloor

System for controlling devices remotely
Other
84 stars 27 forks source link

CF last output on start is "Registering device routes" #19

Open himanshunamdeo opened 3 years ago

himanshunamdeo commented 3 years ago

Hi @nanoscopic,

In the latest ControlFloor, while running main on terminal the execution is stuck after printing "Registering device routes".

Screenshot 2021-03-12 at 12 19 14 PM

Opening http://localhost:8080 gives "Client sent an HTTP request to an HTTPS server." on browser.

nanoscopic commented 3 years ago

ControlFloor / ios_remote_provider support running in either HTTP or HTTPS modes.

Both must be configured the same for it to work correctly.

For controlfloor; see https://github.com/nanoscopic/controlfloor/blob/main/config.json https should be set to true or false depending on which you want.

To set the specific certificate and key used, you can add the 'crt' and 'key' options to config.json to override the defaults that are in https://github.com/nanoscopic/controlfloor/blob/main/default.json

For ios_remote_provider, see https://github.com/nanoscopic/ios_remote_provider/blob/main/config.json#L5 https must be set to match the setting on ControlFloor. The selfSigned option allows a self signed certificate to be used on ControlFloor ( not good security, but good for testing )

Based on the error you have given, it seems that you have 'https: true' in ControlFloor config.json, so you need to visit https://localhost:8080 ( or set https to false )

nanoscopic commented 3 years ago

ControlFloor isn't "stuck" after showing "Registering device routes"; it is simply up and running and has nothing else to say for the logs until you interact with it more.

himanshunamdeo commented 3 years ago

I was following the basic Install instructions and this behaviour was not mentioned there so thought it was stuck. I think the instruction needs to be updated.

nanoscopic commented 3 years ago

Sure can do ( update the instructions ). The instructions need to be updated overall as they are already somewhat out of date with the new changes.

jagdish24 commented 2 years ago

ios_remote_provider

@nanoscopic Do you have sample file for config.json (not default.json) for controlfloor and ios_remote_provider?