Skip to content

sue445/tweet_pixels

Folders and files

NameName
Last commit message
Last commit date
Jan 7, 2025
Apr 11, 2024
Oct 21, 2018
Oct 20, 2018
Apr 24, 2024
Oct 20, 2018
Oct 19, 2018
Mar 4, 2025
Mar 23, 2025
Oct 19, 2018
May 28, 2023
Oct 21, 2018

Repository files navigation

Tweet pixels

Tweet pixels

Tweet pixels CircleCI

Features

  • Regularly update the graph of tweet count. (daily and hourly)

Requirements

Usage

1. Register Pixela and create graph

e.g)

cp .env.example .env
vi .env
bundle install --path=vendor/bundle

./bin/console
# register
@client.create_user(agree_terms_of_service: true, not_minor: true)

# create graph
@graph.create(name: "Daily tweets", unit: "Tweets", type: "int", color: "sora")

2. Register Environment Variables to CircleCI

  • TWITTER_ID
  • PIXELA_USERNAME
  • PIXELA_TOKEN
  • PIXELA_GRAPH_ID

CircleCI

For third party orbs, set 'Allow Uncertified Orbs' option in organization security settings. See https://circleci.com/docs/2.0/orbs-faq/#using-3rd-party-orbs.

3. Register a GitHub cache url (optional)

Register a GitHub cache url (e.g. https://camo.githubusercontent.com/xxxxxxxxxx) after paste a badge to GitHub

e.g)

@graph.update(purge_cache_urls: "https://camo.githubusercontent.com/xxxxxxxxxx")

see https://github.com/a-know/Pixela/releases/tag/v1.1.0