Coder Social home page Coder Social logo

Comments (4)

licoffe avatar licoffe commented on June 14, 2024

For each item which matches the filters I'm sending a notification. The code is checking about 1000 items/second. I'm not sure what you mean exactly.

from poe-sniper.

Xloctis avatar Xloctis commented on June 14, 2024

i mean someone listed doctor for 720 vaals which is great deal, and im getting notfication that he listed it each second for as long as program is up

from poe-sniper.

gdneye avatar gdneye commented on June 14, 2024

Hey Xloctis,

Since this app is just listening to the API stream and not storing any data it will send an update every time that given stash tab is updated. Websites like poe.trade use an indexer (i.e. they store results in a database and query against those results.) They only update when they see an important change in the specific item you are looking for. Generally an important change is just new item, removal of item, or price change.

Since licoffe's program is not storing old data it has no way of knowing if that data is new, so it will ping you every time it receives the data. Unfortunately GGG built the API so that any time any change is made to any part of a stash tab, it re-sends the entire stash tab. So if the guy was organizing that stash tab (or adding to it or whatever), you will continue to get notifications.

Its only really a problem with price fixers. Normal people will either sell you the item for the low price, or will realize their mistake and reprice the item. Either way it will be removed pretty quickly.

The reason you do it this way is efficiency. It takes (a bit of) extra time and a lot of storage to track all of the items.

from poe-sniper.

licoffe avatar licoffe commented on June 14, 2024

So what I did for now is to prevent visual and audio notifications as well as copy to clipboard when the item is already in the list. I keep track of the unique ids of each items added to the result list.

from poe-sniper.

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.