RobboRob / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
26 stars 9 forks source link

Getting the GUI running #15

Open servase opened 3 years ago

servase commented 3 years ago

I had some issues getting the GUI running. Live View, Camera View and Settings arent being populated.
Images are being created ('image.jpg" and "liveview-image.jpg') in /allsky/

I created a file called autocam.sh put "CAMERA=RPiHQ" in it. Settings and live preview are now showing in the gui. Haven't tested other features.

servase commented 3 years ago

Just finished testing everything works. I can change camera setting. Capture folder is updating. To clarify the "fix": Create File: "autocam.sh" in /allsky add "CAMERA=RPiHQ" to file.

Why: autocam.sh is being parsed by index.php in /va/www/html if this file is not found the index uses "ZWO" instead of RPiHQ and then isnt able to find the appropriate settings and options .json files.

Recommendation: Include autocam.sh with "CAMERA=RPiHQ" in code

EricClaeys commented 2 years ago

FYI, the 0.7 version of Thomas allsky-portal fixes this by looking in autocam.sh instead of config.sh.