×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

INDI Web Manager

  • Posts: 18
  • Thank you received: 3

Replied by hugues obolonsky on topic INDI Web Manager

hello knro,

i try to force the template lookup with
""" return template('form.tpl', allProfiles=allProfiles, allDrivers=allDrivers, port=port, saved_profile=saved_profile, template_lookup=[dirname+"/views",".","./views"]) """

it work but in this case, we loose tw bootstrap.

So i finally end up with a more ugly
os.chdir

will send you a pull request
--
Regards
Hoxca
The following user(s) said Thank You: Jasem Mutlaq
7 years 11 months ago #7883

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI Web Manager

Thanks, this seems to work for now. I'm sure there are more bugs here and there so let's see how it goes.

Make sure your Raspberry PI INDI package is updated to the latest release.
7 years 11 months ago #7884

Please Log in or Create an account to join the conversation.

  • Posts: 643
  • Thank you received: 62

Replied by Magnus Larsson on topic INDI Web Manager

OK, great. Working after update of indi on the Pi.

Magnus
7 years 11 months ago #7893

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI Web Manager

Updated web manager to support custom drivers. Now you can start INDI server and chain it to other drivers. Also documenting the API since you can use tools like curl to control all aspects of the application which is useful in scripts.
7 years 11 months ago #7896

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 3

Replied by hugues obolonsky on topic INDI Web Manager

I think i touch another bug related to path loading.
When i launch the indiserver via the webmanager (started as daemon) on the remote server,
the gphoto_ccd client cannot load the saved configuration.

As this is working when i launch the indiserver manually, i guess it's a path related issue in webmanager/indiserver launch command.

I will try to debug that but if you have any hints, it's welcome ;)
7 years 11 months ago #7911

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI Web Manager

hmmm most likely because it is run as root, it tries to load config from ~/.indi which would be /root/.indi but for a normal user it is loaded from /home/username/.indi which is where you had all your previous configs.
7 years 11 months ago #7912

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 3

Replied by hugues obolonsky on topic INDI Web Manager

Nope !
As far as the gphoto_cdd driver is only working as root,
i was launching the indiserver manually as root...

Config saves are allready in /root/.indi
Last edit: 7 years 11 months ago by hugues obolonsky.
7 years 11 months ago #7914

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI Web Manager

Ok, you need to put your username in the service. I updated the service file. Make sure to delete /tmp/indiFIFO before restarting the service.
7 years 11 months ago #7916

Please Log in or Create an account to join the conversation.

  • Posts: 454
  • Thank you received: 51

Replied by Patrick on topic INDI Web Manager

Thank you Jasem,

Thank you for this elegant tool. I developed a python app very similar but so more complex.
I added to it a function to upload pictures stored on the remote device. Do you mind it could be useful to add it to your server ?
By the way learned how to make a service without using /etc/init.d mechanisms.

Patrick
7 years 11 months ago #7926

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI Web Manager

Hey Patrick, I'm trying to keep the tool as simple as possible. Might provide a separate tool to manage the drivers themselves (there is already one developed by Jean-Luc) along with other functionalities such as the one you suggest.
7 years 11 months ago #7929

Please Log in or Create an account to join the conversation.

  • Posts: 454
  • Thank you received: 51

Replied by Patrick on topic INDI Web Manager

Found a little problem with the web manager. Trying to access to the web manager I get very often a partial page.
Driver box line is missing and the button start is inactive.
I join a picture of it there.

Last edit: 7 years 10 months ago by Patrick.
7 years 10 months ago #7982
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2247
  • Thank you received: 223

Replied by Gonzothegreat on topic INDI Web Manager

Just noticed this thread, interesting and useful tool.
I'm having the following issue and with all indi drivers updated.:
root@heidenrod-obs:/opt/indiwebmanager/servermanager# python drivermanager.py 
/usr/share/indi/indi_sx.xml
/usr/share/indi/indi_gonzobox.xml
/usr/share/indi/indi_gonzobox_rainsensor.xml
/usr/share/indi/indi_atik.xml
/usr/share/indi/indi_qhy.xml
/usr/share/indi/indi_eqmod.xml
/usr/share/indi/drivers.xml
/usr/share/indi/indi_shoestring.xml
Parsing XML file: /usr/share/indi/indi_sx.xml
Parsing XML file: /usr/share/indi/indi_gonzobox.xml
Traceback (most recent call last):
  File "drivermanager.py", line 4, in <module>
    from servermanager import startServer, stopServer, isServerRunning, getRunningDrivers
  File "/opt/indiwebmanager/servermanager/servermanager.py", line 4, in <module>
    from parsedrivers import driversList
  File "/opt/indiwebmanager/servermanager/parsedrivers.py", line 35, in <module>
    family = group.attrib['group']
KeyError: 'group'
root@heidenrod-obs:/opt/indiwebmanager/servermanager#
7 years 10 months ago #8028

Please Log in or Create an account to join the conversation.

Time to create page: 0.240 seconds