Coder Social home page Coder Social logo

Comments (5)

dbachm123 avatar dbachm123 commented on August 22, 2024

Thanks @warai17 ... the easiest way is to just grab that from the ninja api response "lastVoted" which is already incorporated into the monitor. @BitDesert Would it make sense to add an up/down indicator to the ninja API response to prevent duplication of the up/down logic within the monitor code.

from nanonodemonitor.

BitDesert avatar BitDesert commented on August 22, 2024

Hmm, the "up/down" field would be a processed one by ninjas laws. If we leave it at the monitor you could modify it just as you like, but at ninja I could check probably more parameters that a PHP monitor can't.
I'm not quite sure what's the best way...

from nanonodemonitor.

warai17 avatar warai17 commented on August 22, 2024

How about the same logic that is used to send the email Up/Down notifications from Ninja?

from nanonodemonitor.

dbachm123 avatar dbachm123 commented on August 22, 2024

Iā€™d prefer this notification to be consistent with what Ninja is reporting. I feel that adding that to the Ninja API is the best way to maintain this consistency. As a fallback, I would implement a simple time difference check of the last vote.

from nanonodemonitor.

BitDesert avatar BitDesert commented on August 22, 2024

I would rather suggest using a third party service as the monitor has no way to notify the user via email or push notifications.
Login at https://mynano.ninja/ and verify your representative, if you link your social media accounts you get email notifications.

from nanonodemonitor.

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.