×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI Web Manager

  • Posts: 2255
  • Thank you received: 223

Replied by Gonzothegreat on topic INDI Web Manager

ok thanks, let me google out this DTD stuff, sounds intriguing.

Going to download the RPI files and decompress the content of the deb files and figure this one out.
Last edit: 7 years 11 months ago by Gonzothegreat.
7 years 11 months ago #8030

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

Replied by Jasem Mutlaq on topic INDI Web Manager

just add <driversList> before <devGroup> and </driversList> after </devGroup>
The following user(s) said Thank You: Gonzothegreat
7 years 11 months ago #8031

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

  • Posts: 2255
  • Thank you received: 223

Replied by Gonzothegreat on topic INDI Web Manager

oh ok, it works. Testing this tool now.
7 years 11 months ago #8032

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

  • Posts: 2255
  • Thank you received: 223

Replied by Gonzothegreat on topic INDI Web Manager

So far it works well. I do get the following message:
"Not all profile drivers are running. Make sure all devices are powered and connected."

It would be nice to have an option in this tool to power on/off the devices.
For example, in my case I use the following switchable USB board to correctly disconnected my devices: www.yepkit.com/products/ykush
I also control the GPIO pins to turn on some relays.

So, maybe have the option to run a custom user script to turn on/off devices.
7 years 11 months ago #8033

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


Same here, in both Chrome on Windows 7, and Firefox on Kubuntu. I noticed that this does not happen when my machine is connected to the internet (which is a problem, because my Raspberry Pi is on a separate network).

I also noticed that my browser is really slowly loading the page (sometimes more than 10 seconds), and is looking up for either of these two sites:
looking up fonts.googleapis.com
looking up ajax.googleapis.com
Does it mean the webpage is trying to load its fonts from the Google API website? Then it is normal that it does not work, because my machine is not connected to the internet :P

I also mention that I have the latest INDI package (1.2.0) on my Raspberry Pi. And I also tested on the Kubuntu VM with the latest INDI.

The logs produced by the Python program show nothing anormal:
192.168.2.1 - - [02/May/2016 05:51:01] "GET / HTTP/1.1" 200 12643
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/css/bootstrap.css HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/css/bootstrap-select.min.css HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/css/schoolhouse.css HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/js/bootstrap-select.min.js HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/js/jquery-ui.min.js HTTP/1.1" 304 0
192.168.2.1 - - [02/May/2016 05:51:02] "GET /static/js/indi.js HTTP/1.1" 304 0
Last edit: 7 years 11 months ago by Clément.
7 years 11 months ago #8322

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

Replied by Jasem Mutlaq on topic INDI Web Manager

I removed the calls to any external sources, please 'git pull' or download the zip again and try.
7 years 11 months ago #8329

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

It works now, thanks a lot!
7 years 11 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.

Time to create page: 1.031 seconds