Manawyrm / cloudlog-rigctl-interface

Connects Cloudlog to rigctld / hamlib via PHP
MIT License
8 stars 4 forks source link

No explanation of where to place the files #1

Open MI7EMG opened 2 years ago

MI7EMG commented 2 years ago

The README.md file doesn't contain any kind of guidance for integrating the interface files with Cloudlog.

Where should the .php files be placed within the Cloudlog file structure?

Manawyrm commented 2 years ago

Hi,

yeah, I get that this might be a bit unusual: This program is a stand-alone application. It runs on your local machine, not on the CloudLog server itself. It just happens to be written in PHP, too.

You can probably run this program on Windows or macOS, if you install PHP and run it from the command line, but I've never tried to do this.

mattmelling commented 2 years ago

You could even run it on a third (linux) machine if Windows does not want to cooperate with Hamlib/PHP, as long as it can access the both rigctld API to get the radio data and cloudlog itself.

With some small modifications this tool could be packaged in to a docker image which might make it easier to use on Windows or macOS (disclaimer: I use neither so no idea of the detail).

I forked this repo to package this for NixOS and the main change to the upstream code was to use environment variables to supply the data in config.php which makes it easier to integrate with systemd and would apply equally for docker.

Manawyrm commented 2 years ago

@mattmelling

was to use environment variables

Uhh, I actually like that change. We could probably upstream that to the main repo?

mattmelling commented 2 years ago

I'll throw together a PR later with a Dockerfile to go with it.

Packaging for docker would for sure make this easier to use for the Linux/macOS crowd. I have a Win10 VM somewhere so will test it on there too.