Git Product home page Git Product logo

Comments (7)

amirsaam avatar amirsaam commented on August 28, 2024 1

I updated your TermiWidget iOS btw for SubStats v2
https://github.com/amirsaam/SubCounter-for-Scriptable

from substats.

spencerwooo avatar spencerwooo commented on August 28, 2024

can you elaborate?

from substats.

amirsaam avatar amirsaam commented on August 28, 2024

as
{"status":200,"data":{"totalSubs":0,"subsInEachSource":{"instagram":0},"failedSources":{"instagram":"Sorry, Substats has been limited by the Instagram API, please try and host Substats on your own Cloudflare Workers account as a workaround."}}}
btw SubStats returns zero for Telegram and Steam Friends too, it worked before but not now.

from substats.

spencerwooo avatar spencerwooo commented on August 28, 2024

Both routes are working in the latest version btw, check README, I changed a lot of stuff since earlier this year.

from substats.

spencerwooo avatar spencerwooo commented on August 28, 2024

At least Instagram and Steam Friends should be working, Telegram has always worked for my channel :)

from substats.

amirsaam avatar amirsaam commented on August 28, 2024

ah, I didn't saw the update you merged until a few hours later of my comment.
btw as I tried to make it work for https://gist.github.com/spencerwooo/7955aefc4ffa5bc8ae7c83d85d05e7a4
(TermiWidget) but a lot need to change on that widget that I don't have enough knowledge on it to do it.

async function fetchData() {
  const apiurl = `https://api.swo.moe/stats`
  const url = `${apiurl}/instagram/${instagram}`
  const request = new Request(url)
  const res = await request.loadJSON()
  return res.data.count
}

this returns correct data for the request but I don't know how to implement it for the whole widget. your function fetchData() there has a "data" variable that no longer works with the new changes because you cannot request all datas at once with new api and needs seperate requests.

from substats.

spencerwooo avatar spencerwooo commented on August 28, 2024

yes, the current version does not support requesting a list of sources, as it is blocked by an upstream dependency (check README), i will try to get feature parity with the original 1.0 asap after the upstream is resolved.

from substats.

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.