nodecg-justgiving is a NodeCG bundle.
It works with NodeCG versions which satisfy this semver range: ^1.1.1
You will need to have an appropriate version of NodeCG installed to use it.
This bundle sets up a Replicant in the nodecg-justgiving
namespace, called donations
. It contains all of the donations that we've seen from the Tiltify API. It does NOT use pagination to get donations past the current "page". It also exposes a Replicant called total
in the same namespace that shows how much Tiltify says we've raised so far!
Each element in donations
is given a read
and shown
property. Typically, I would use these to determine if a donation has been shown
on whatever graphic
you're trying to show it on, and to mark whether or not is has been read
on whatever dashboard
you're presenting donations to be read on.
A donation object has an amount
, a donorLocalAmount
, a donorDisplayName
, and a message
, use them to do with them what you will.
You need to set up the config in cfg/nodecg-justgiving.json
to look something like this:
{
"justgiving_appid": "a01525f5",
"justgiving_shorturl": "sonicmararthontest"
}