×

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

Bi-monthly release with minor bug fixes and improvements

INDI Web Manager

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic INDI Web Manager

It works now, thanks a lot!
7 years 10 months ago #8333

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic INDI Web Manager

I find that the INDI web manager doesn't work correctly on tablet browsers. See the attached file. The "Start" button doesn't work and there is no status on the bottom right area. The profile seems not working. I tested on various browsers on both Android and iOS.
Last edit: 7 years 10 months ago by anat.
7 years 10 months ago #8388
Attachments:

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic INDI Web Manager

I provide the logs below to help debug the code. It seems that it doesn't access /api/.

This is the log when using a Tablet webbrowser: It stops at the last line below. No data when selecting the dropdown menu and clicking "Start"
10.0.0.3 - - [21/May/2016 02:19:41] "GET / HTTP/1.1" 200 11509
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/css/bootstrap.css HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/css/bootstrap-select.min.css HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/js/jquery.min.js HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/js/bootstrap-select.min.js HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/js/jquery-ui.min.js HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/js/indi.js HTTP/1.1" 304 0
10.0.0.3 - - [21/May/2016 02:19:42] "GET /static/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 304 0

This is the log when using a desktop PC webbrowser:
10.0.0.5 - - [21/May/2016 02:20:00] "GET / HTTP/1.1" 200 11518
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/css/bootstrap.css HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/css/bootstrap-select.min.css HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/js/jquery.min.js HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/js/bootstrap-select.min.js HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/js/jquery-ui.min.js HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/js/indi.js HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:00] "GET /static/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 304 0
10.0.0.5 - - [21/May/2016 02:20:01] "GET /api/profiles/Simulators HTTP/1.1" 200 79
10.0.0.5 - - [21/May/2016 02:20:01] "GET /api/profiles/Simulators/custom HTTP/1.1" 200 0
10.0.0.5 - - [21/May/2016 02:20:01] "GET /api/server/status HTTP/1.1" 200 21
{u'label': u'SX AO'}
{u'label': u'Imager Agent'}
{u'label': u'Flip Flat'}
{u'label': u'CCD Simulator'}
10.0.0.5 - - [21/May/2016 02:20:08] "POST /api/profiles/Simulators/ HTTP/1.1" 200 0
indiserver -p 7624 -m 100 -v -f /tmp/indiFIFO > /dev/null 2>&1 &
Driver binary is indi_sx_ao
echo "start indi_sx_ao -n "SX AO""  > /tmp/indiFIFO
Driver binary is indi_imager_agent
echo "start indi_imager_agent -n "Imager Agent""  > /tmp/indiFIFO
Driver binary is indi_flipflat
echo "start indi_flipflat -n "Flip Flat""  > /tmp/indiFIFO
Driver binary is indi_simulator_ccd
echo "start indi_simulator_ccd -n "CCD Simulator""  > /tmp/indiFIFO
10.0.0.5 - - [21/May/2016 02:20:12] "POST /api/server/start HTTP/1.1" 200 0
10.0.0.5 - - [21/May/2016 02:20:12] "GET /api/server/status HTTP/1.1" 200 20
10.0.0.5 - - [21/May/2016 02:20:12] "GET /api/server/drivers HTTP/1.1" 200 122
Last edit: 7 years 10 months ago by anat.
7 years 10 months ago #8406

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

  • Posts: 11
  • Thank you received: 0

Replied by Krückel Oliver on topic INDI Web Manager

Hello,

if I like to start the INDI Web Manager, I get this error:

Parsing XML file: /usr/share/indi/indi_tess.xml
Traceback (most recent call last):
File "./servermanager.py", line 4, in <module>
from parsedrivers import driversList
File "/home/krueckel/Daten/Programme/Astronomie/INDI_Astronomical_Control_Protocol/INDI Web Manager/indiwebmanager-master/servermanager/parsedrivers.py", line 35, in <module>
family = group.attrib
KeyError: 'group'

My solution is to add 3. Lines to the xml file:
at the top:
<?xml version="1.0" encoding="UTF-8"?>
<driversList>

and at the bottom:
</driversList>

I add this at this xml files:
/usr/share/indi/indi_duino.xml
/usr/share/indi/indi_ffmv.xml
/usr/share/indi/indi_miccd.xml
/usr/share/indi/indi_qhy.xml
/usr/share/indi/indi_tess.xml

after this modifications, the Manager starts.

I hope my modifications are correct! As far as I can see, it works all right.

my environment:
HW: Intel Platform
opensuse Leap 42.1
libindi and 3rdparty are compiled from the svn source (05/20/2016):
INDI Library: 1.2.0
Code $Rev: 2758 $. Protocol 1.7.

regards Oliver
7 years 10 months ago #8408

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic INDI Web Manager

A bug was found. In /path/to/indiwebmanager/servermanager/views/js/indi.js
Change from
function saveProfileDrivers(profile, silent=false)
to
function saveProfileDrivers(profile)

It works now. Desktop browsers may be more forgiving than mobile browsers :)
Last edit: 7 years 10 months ago by anat.
7 years 10 months ago #8443

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

Replied by Jasem Mutlaq on topic INDI Web Manager

Anyone knows why is this a bug? I don't know much javascript, just learned enough to develop this.
7 years 10 months ago #8453

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic INDI Web Manager

Because saveProfileDrivers(name); is called here: :)

function saveProfile()
{
var options = profiles.options;
var name = options[options.selectedIndex].value;
var url = "/api/profiles/" + name

//console.log(url)

$.ajax(
{
type: 'POST',
url : url,
success: function()
{
//console.log("add new a profile " + name);
saveProfileDrivers(name);
},
error: function()
{
alert('error add new profile failed');
}
}
);
}
7 years 10 months ago #8455

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic INDI Web Manager

BTW, if one wants a dark theme, try this

cd /path/to/servermanager/views/css/
curl -O bootswatch.com/cyborg/bootstrap.css
curl -O bootswatch.com/cyborg/bootstrap.min.css

nano /path/to/servermanager/views/css/bootstrap.css
nano /path/to/servermanager/views/css/bootstrap.min.css
********************************************
Comment/remove the first line to prevent accessing internet
********************************************

nano /path/to/servermanager/views/form.tpl
********************************************
<!-- <link rel="stylesheet" type="text/css" href="/static/css/schoolhouse.css"> -->
********************************************
The following user(s) said Thank You: Jasem Mutlaq
7 years 10 months ago #8456
Attachments:

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

Replied by Jasem Mutlaq on topic INDI Web Manager

I think it is because I'm using "Default arguments" which I guess could be a cause of problems in some browsers?
7 years 10 months ago #8457

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

Replied by Jasem Mutlaq on topic INDI Web Manager


libindi already contains those modifications. I think you are probably compiling and installing the drivers to /usr/local and not /usr
7 years 10 months ago #8459

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

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic INDI Web Manager

Hi,

I have issues with the driver GPhotoCCD and INDI Web Manager. I have a Nikon D90 plugged on my Raspberry Pi.

When I launch the INDI server in command line:
indiserver -v indi_gphoto_ccd
I have a comprehensive GPhoto tab in Ekos:


But when I start INDI with the web manager, either with the driver "GPhoto CCD" or "Nikon DSLR" in the drop-down list, I only get a very limited GPhoto tab in Ekos:


In particular, I cannot get the live view working...
I tried to check the logs, but I do not know if the INDI server launched by the web manager logs something, nor where.
7 years 10 months ago #8468
Attachments:

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

Replied by Jasem Mutlaq on topic INDI Web Manager

Does live preview work on Nikon? I thought only Canon support that!
7 years 10 months ago #8470

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

Time to create page: 0.993 seconds