Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2019
    Posts
    11

    Default

    Hi Bob,

    Now a different topic. Is there an API that comes with ACP, and if so a description of how to access and use it? The reason I ask is that we have an idea to give SAAF club members easy remote access to a future club telescope. We do not want them to run it directly through the web server and accessing the scope themselves. Rather we would prefer that they submit observation requests that are collected and sent to Scheduler which then executes them automatically. Thus they would not be connected during observations, only when submitting their observations requests. Perhaps this is best done through a web form on our own web page where observation requests are collected and then pooled and sent to Scheduler, or perhaps it can be accomplished through the ACP web server. Communicating through an API would make it possible to send information both ways.

    We are getting help with this project from a group of Malmo University students and I would like to put them in contact with you to ask specific questions which is way outside my competence. They could communicate through my account but I guess it is better that they do it through an account of their own. Can you set up an account for Oscar Norling (oscarnorling [at] gmail.com) and he can post the questions himself?

    Best regards,

    Johan
    Last edited by Bob Denny; Oct 11, 2019 at 19:07. Reason: Split from other thread

  2. #2
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    27,236

    Default

    I think by API you mean the web interface, and perhaps you haven't yet looked at it. Reading between the lines... once you install the Scheduler and it is running (day, night with the dispatcher enabled), all of the live observing features are hidden.

    Rather we would prefer that they submit observation requests that are collected and sent to Scheduler which then executes them automatically. Thus they would not be connected during observations, only when submitting their observations requests.
    This is how it works.

    Perhaps this is best done through a web form on our own web page where observation requests are collected and then pooled and sent to Scheduler, or perhaps it can be accomplished through the ACP web server.
    The ACP web server provides forms with which to submit requests to the Scheduler in several ways, and also a schedule browser/editor that can be used to construct requests for special purposes.

    Communicating through an API would make it possible to send information both ways.
    ACP provides a way to upload requests in RTML via an HTTP POST request. I think by API you are looking for something much lower level. The Web Server implements Classic Active Server Pages, (roughly like PHP but much nicer) and you can write server side scripts that access ACP extensive API and pretty much do anything. See ACP Help, Scripting Guide for all of the APIs and services. There's more than you probably realize :-) :-)


    Snap2.jpg
    -- Bob

  3. #3
    Join Date
    Sep 2019
    Posts
    11

    Default

    Hi Bob,

    Many thanks for this info, it was a great help. It took us along in the right direction.

    Now we have however encountered a problem. It occurs when uploading RTML files from a custom web interface we are building. We have a webform that generates RTML files and we try sending them to the ACP webserver via cURL in PHP. At that point something goes wrong, but we receive no real error messages as response. The major problems seems to be that ACP can't find the file. However, when we open asuoloadrtml.asp in a browser and upload the same file through there, everything works fine. Same thing happens when we send the file via Postman.

    Any idea what could be the problem?

    Best, Johan

  4. #4
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    27,236

    Default

    Are you sending the file as a file upload, with Content-Type: Multipart/Form-Data? For reference see

    How does HTTP file upload work?

    Are you still evaluating our software at that advanced level????? Or why are you using the pre-sales category for your tickets?
    -- Bob

  5. #5
    Join Date
    Sep 2019
    Posts
    11

    Default

    Hi Bob, the info on your link solved this problem, many thanks!!

    I have acquired a licence now, didn't notice this reply was posted in the incorrect forum area. Will post in the licenced owner area futurewise!

    Best, Johan

  6. #6
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    27,236

    Default

    Excellent!! And thank you very much :-) :-)
    -- Bob

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Some ACP questions from a new user
    By Jeffrey Jongmans in forum Pre-Sales Technical Questions and Help
    Replies: 20
    Last Post: Jul 26, 2013, 16:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •