Git Product home page Git Product logo

apicast's People

Contributors

amotl avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

thiasb

apicast's Issues

Add content attribution to Markdown output

There are content attributions to the DWD at both the HTML overview page 1 and the JSON output 2, but not at the Markdown output 3.

After evaluating how to embed the Markdown content into other systems 4 (see also GH-15), we may want to fill that gap before announcing that feature to a broader audience at 5.

Footnotes

  1. https://apicast.hiveeyes.org/

  2. https://apicast.hiveeyes.org/beeflight/forecast/germany/berlin/berlin-tempelhof?format=json

  3. https://apicast.hiveeyes.org/beeflight/forecast/germany/berlin/berlin-tempelhof?format=table-markdown

  4. https://community.hiveeyes.org/t/markdown-inhalte-im-grafana-einbetten/4941

  5. https://community.hiveeyes.org/t/dwd-prognose-bienenflug/787

Add documentation about embedding Markdown content into Grafana

About

Based on Grafana's Text Panel, we added a snippet to load Markdown from Apicast's HTTP API into Grafana.

References

Backlog

Other than linking to those resources, two details need to be added to the documentation. First, a CORS header needs to be added to the HTTP endpoint which serves Apicast's API. This configuration directive for Nginx would be suitable.

add_header Access-Control-Allow-Origin *;

In order to be able to run JavaScript within the HTML mode of Grafana's Text Panel, it needs to be configured with disable_sanitize_html in /etc/grafana/grafana.ini.

[panels]
disable_sanitize_html = true

Detect off-season responses

Hi there,

on [1], the response currently contains this snippet of HTML (reformatted for better readability).

<div class="row">
  <section>
    <div class="row">
      <div class="multi-tab leistungen white ">
        <div class="row">
          <div class="headline">
            <h1>Bienenflug </h1>
          </div>
        </div>
        <div class="content-wrapper light ">
          <div class="content-container static">
            <figure class="picture linksOhne">
              <img src="/DE/leistungen/biene_flug/bild_leistungen_bienenflug.png?__blob=normal&amp;v=3" title="Produkt Bienenflug: Zurzeit sind keine aktuellen Daten vorhanden. Saison ist März bis November (Quelle Deutscher Wetterdienst)" alt="Produkt Bienenflug: Zurzeit sind keine aktuellen Daten vorhanden. Saison ist März bis November (Quelle Deutscher Wetterdienst)" />
              <figcaption>
                <p>Zurzeit sind keine aktuellen Daten vorhanden</p>
              </figcaption>
            </figure>
          </div>
        </div>
      </div>
    </div>
  </section>
</div>

It would be nice to detect this and let the API respond appropriately.

With kind regards,
Andreas.

[1] https://www.dwd.de/DE/leistungen/biene_flug/bienenflug.html?nn=588520

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.