Giter Site home page Giter Site logo

Make compatible with API v2 about statuspage HOT 12 OPEN

bgeneto avatar bgeneto commented on July 18, 2024 1
Make compatible with API v2

from statuspage.

Comments (12)

bgeneto avatar bgeneto commented on July 18, 2024 1

The updated js file is here (see variables diffSeconds, diffHours, diffMinutes, and timeDiff):
main.js
And the v2 compatible php file is here (same file as above):
statusPage.php

from statuspage.

davidus05 avatar davidus05 commented on July 18, 2024 1

@TomasHurtz I posted a way to do this in #18

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Also looking for that. Does this really work with API 2 ? Thanks for file - I will give try.

Copied to Paste Bin: https://pastebin.com/Pdkzrwr1

from statuspage.

bgeneto avatar bgeneto commented on July 18, 2024

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Can you advise the javascript change needs, thanks

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

thank you :-)

from statuspage.

nerdbaggy avatar nerdbaggy commented on July 18, 2024

from statuspage.

Chris6284 avatar Chris6284 commented on July 18, 2024

Thanks bgeneto. Could you please add an file statuspage.min.js with your new version of main.js.
So Users could just replace the statuspage.min.js instead of Running it through Gulp.

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Any chance of finding a way to sort them: #18

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Yes - I got it working thank you :-)

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Hey all -

[EDIT: I fixed the below issue using the revised statusPage.php file in the above comment > https://github.com//issues/44#issuecomment-300221190

@bgeneto What I would like to know is what is the difference between main.js and statuspage.min.js ? Do I need both of these JS files (main.js does not appear in the main build ? ] - otherwise - how to incorporate JS changes mentioned?


Issue I am facing is it does not appear to be collecting any Graphing Data in my outputted page: When clicking on the graph icon

server status

Clicking on the icon I get "No graphing data is currently available, sorry!" (appears to be generating from the JS file)

Any one else have this issue? I cleared cache - but not changed.

Could this be due to incorrect API parameters in statusPage.php ? I notice parameters used appear to be from APIv1 (different in APIv2)

from statuspage.

TomasHurtz avatar TomasHurtz commented on July 18, 2024

Fixed! Working again now - I had to delete htaccess file and phpfastcache. Then restore phpfastcache.

Would be good if the main branch could be updated to latest ;-)

from statuspage.

Related Issues (20)

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.