Menu

#31 Graphics demo soure missing

none
closed
None
5
2022-12-06
2019-03-20
Anonymous
No

Hi,

would it be possible to release the source of the gui.html based demo or - if already, push it to the git repo.

Thanks,

regards
Timo

Discussion

  • metaf2xml

    metaf2xml - 2019-03-20

    Hi Timo,

    I haven't considered yet to include the files for the demo in the repository, as they are not actually part of the project.

    But you can simply download the HTML file and store it in a directory where your local web server can access it. In addition you will need the files gui.js, metaf2xml.css, and gui-chart.css (work in progress), and images/gui.png (all URLs relative to https://metaf2xml.sourceforge.io/). All files have the same copyright as the core project.

    You will also need the (background) images for the map. For the SF demo, they come from the DEMIS Mapserver via the Wikimedia Commons Atlas of the World, but of course you can also download them from the images/ directory like for gui.png. The names of the (506, if I counted correctly) image files for the tiles are composed in gui.js and look like <PREFIX>px-Topographic30deg_<COOORD>.png (where PREFIX can be 50, 100 (each has 1 tile), 300, 600, 1200 (all three have 6 x 12 tiles), and 1800 (12 x 24 tiles), and COORD is the latitude and longitude for the tile, e.g. N30W120), or they will be shown in your local web server logs, or you can check the developer console of your favorite browser.

    To show stations on the map and the weather for them, the demo calls cgi-bin/db_stations.pl to get a list of stations and cgi-bin/metaf.pl (from the project) to get the weather data. For the SF demo, metaf.pl is configured to use a database on the SF server (SF does not allow outgoing connections). I have scripts to create and fill this database, but they are work in progress, require quite some manual work, and are not ready for any public release. The response from cgi-bin/db_stations.pl should be a list of stations as XML (as an example you could call the script from the SF URL).

    If you need anything else just ask.

    Kind regards
    Thomas

     
  • Anonymous

    Anonymous - 2019-03-24

    Hi Thomas,

    thank you very much. I will have a closer look next weeks.

    Regards,

    Timo

     
  • metaf2xml

    metaf2xml - 2019-08-18
    • status: open --> closed
    • assigned_to: metaf2xml
     
  • metaf2xml

    metaf2xml - 2022-12-06
    • discussion: enabled --> disabled
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.