Jump to content
The simFlight Network Forums

Please help me access FSUIPC offset from a web page


Recommended Posts

Hello,

 

i Need a litle help from anyone here.

 

The reason is i Need a Webpage which i can call to set a Offset for FSUIPC.

The Offsets i Need to set is the one for the doors to open and Close.

 

So maybe i can call the Website, located at my FSX PC running at Apache2, like

http://localhost/FSUIPC.html?OpenExit1

or to Close

http://localhost/FSUIPC.html?CloseExit1

 

.. and so on for all 4 Exits.

 

So i want to ask if here is anyone can help me?

 

Thansk a lot !

Matthias

Link to comment
Share on other sites

Hello,

 

i Need a litle help from anyone here.

 

The reason is i Need a Webpage which i can call to set a Offset for FSUIPC.

The Offsets i Need to set is the one for the doors to open and Close.

 

So maybe i can call the Website, located at my FSX PC running at Apache2, like

http://localhost/FSUIPC.html?OpenExit1

or to Close

http://localhost/FSUIPC.html?CloseExit1

 

.. and so on for all 4 Exits.

 

So i want to ask if here is anyone can help me?

 

Thansk a lot !

Matthias

 

Can you give some more details about what you're proposing:

 

What kind of webserver technology are you using?

Is the server always going to be localhost or might the server be on the internet?

Is this meant to control a copy of FS on the webserver or on the same machine as the client browser?

 

Without knowing the above it's difficult to give any clear advice about this.

 

Paul

Link to comment
Share on other sites

Hello,

 

thanks for the Answer.

 

Ok, i try to explain.

 

The FSX Maschine runs a local Apache Webserver not over the Internet.

The Webserver can always be reached via localhost or 127.0.0.1 and must not be reched via the Internet, always

only local.

So..the FSX is always on the same Maschine as the Webserver.

 

Hope ist all you Need ?

 

Thanks a lot

Matthias

Link to comment
Share on other sites

Hello,

 

thanks for the Answer.

 

Ok, i try to explain.

 

The FSX Maschine runs a local Apache Webserver not over the Internet.

The Webserver can always be reached via localhost or 127.0.0.1 and must not be reched via the Internet, always

only local.

So..the FSX is always on the same Maschine as the Webserver.

 

Hope ist all you Need ?

 

Thanks a lot

Matthias

 

OK - are you just using the Apache server to serve pre-made html pages from the local disk? Or do you also have an application server like php or python running?

 

Paul

Link to comment
Share on other sites

Hello,

 

i think the Aidex webser is not enough for that what we Need?

http://www.aidex.de/software/webserver/

If that one is enough i will use that, otherwiese this one:

http://httpd.apache.org/

Thx

Matthias

 

The way this would be done would be to have the web application server (e.g. php, python, asp.net or whatever) call into a DLL that will talk to FSUIPC. This could either be a COM DLL or a .NET DLL depending on which is supported by the application server you are using.

 

I don't have any experience with Apache or php or python, so if you wanted to use these with Apache you'd need to know how to use them yourself. These could call into my FSUIPC Client DLL for .NET and I could help you with that side of things, or even create a COM wrapper if the .NET route didn't work.

 

I do have experience with Microsoft's web technology (IIS and ASP.NET) so I could give you much more help with those. You can get them with the free version of "Visual Studio Express 2013 for Web". This would be more suited to using my .NET DLL and you could write your code in C#.

 

Either way it's a big learning curve for you if you're not already familiar with these technologies. You would need to learn the basics first before attempting to interface with FSUIPC. You'll likely find lots of good tutorials on YouTube.

 

That's all I can suggest. Someone else may have some other ideas.

 

Paul

Link to comment
Share on other sites

so that means if i can set up a IIS to uses ASP.NET it will work?

 

 

Yes, you can just use my .NET DLL in the ASP.NET project.

 

You can download it from here:

 

http://forum.simflight.com/topic/74848-fsuipc-client-dll-for-net-version-24/

 

There is a user-guide included and a sample C# desktop application. This will show you how the DLL is used.

 

Paul

Link to comment
Share on other sites

Hello,

i found a portable asp.net Server and get it running.

http://zueuz.net/projects/portable-aspnet-web-server.aspx#.UvBB0SOUOng

But i have absolute no plan how to build a small asp Website

just to open a door as example.

I have no exp. with asp.

Can i kindly ask you to make a litle Website which has .. lets say a button called "Door"

which opens and Closes the Pax Doors ( Shift+E ) via the doors Offset 3367.

I know it's much, but i hope kindly of your help.

Thanks

Matthias

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.