Drumber / RemoteLight

A Java based LED Control Software for WS2811 and WS2812 LED strips
GNU General Public License v3.0
84 stars 8 forks source link

Help with project structure #32

Closed kozel-stas closed 3 years ago

kozel-stas commented 3 years ago

Hi,

It is a great application, which do everything which i want to implement) Bad, I want to have a different approach which i saw at wiki page.

Per my understanding we have remotelight as main control server. So i want to locate it at my raspberry as single instance and control it via network communication. I saw that project have restapi. Is it worked correctly? Is it allow to implement all functionality? How java ui works, is it call remotelight core code directly? Do you have ui client which can connect to remote remotelight server?

Thanks

Drumber commented 3 years ago

Hi, the remotelight-core module can't be used as a standalone application. If you want to control your LEDs connected to an Raspberry Pi you need to install the RemoteLightServer on it. Then you can download the RemoteLight desktop application on your pc (can be downloaded from this repo) and connect it to the server on your raspberry. Furthermore, if you want to keep the LEDs running without the need of a pc, you could install RemoteLightWeb on the raspberry. It's basically a webserver running independently on your raspberry which you can access via any device over a web browser.

kozel-stas commented 3 years ago

"Then you can download the RemoteLight desktop application on your pc (can be downloaded from this repo) and connect it to the server on your raspberry." - So I did it already) Ok, got it, the solution with RemoteLightWeb sounds great.

Also I saw the android application. How is it work? Is it connect via rest API? or is it like standalone application which control led strips, like pc version

Drumber commented 3 years ago

The android app depends on the same remotelight-core module that the desktop app and RemoteLightWeb uses. So it is a standalone application. I also planned to add the feature for controlling other RemoteLight instances running on a PC from the android app. But I haven't finished the app yet, because I wanted to recode the entire core module before continuing to work on the app. This is also the same reason why I haven't updated RemoteLightWeb since a while. The new core module will be completely redesigned and therefore I didn't want to put unnecessary work into the app and RLWeb if the new core breaks everything anyway.

If you are interested in the REST API, then have a look at the documentation here. However, only the desktop app currently includes the Rest API.

kozel-stas commented 3 years ago

Ok, Thank you a lot. "If you are interested in the REST API, then have a look at the documentation here. However, only the desktop app currently includes the Rest API." Yea, I saw it, I made a quick check of code) So I can add it) to Web, it is not an issue for me

Good luck) The project idea looks interesting and has a lot of features, Thank you)