Skip to content

PingHuskar/septicycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeptiCycle

Download/month Total Download

Utilities for Ingress cycle timing, checkpoint calculations, IFS helpers, AP estimation, and event-date helpers.

Install

npm install septicycle

Current Version

  • 1.1.16

Quick Start

import {
	Checkpoint,
	checkpointNumberAtTime,
	I2sDay,
	GetNoOfAgentsRequired,
	percentThisCheckpoint,
	percentThisCycle
} from "septicycle";

console.log(Checkpoint());
console.log("Checkpoint #:", checkpointNumberAtTime(Date.now()));
console.log(I2sDay());
console.log("Required agents:", GetNoOfAgentsRequired([8, 8, 8, 8, 7, 7, 6, 6]));
console.log("Checkpoint progress:", percentThisCheckpoint);
console.log("Cycle progress:", percentThisCycle);

Common Exports

Time and cycle constants

  • milliseconds
  • secondsInAMinute
  • minutesInAnHour
  • hoursInADay
  • OneDay
  • OneWeek
  • fiveHours
  • daysInAWeek

Cycle and checkpoint state

  • septiCycle
  • CycleStart
  • CycleEnd
  • CycleProgress
  • minutesFromCycle
  • percentThisCycle
  • minutesFromCheckpoint
  • iMinutesToCheckpoint
  • percentThisCheckpoint
  • Checkpoint
  • checkpointNumberAtTime

Date helpers

  • getFirstSaturdayFromYear
  • getFirstSaturdayDeadLine
  • getNextFirstSaturdayRegisterDate
  • getFirstSundayDateOfTheYear
  • getEverySundayInYear
  • filterWeekOfMonth
  • ordinalSundayInYear
  • ordinalafter
  • ordinalbefore
  • CycleInYear
  • unixTimestamp

IFS and challenge helpers

  • I2sDay
  • MaxSecondSundayMedal
  • SecondSundayMedalIntroduced
  • CDGlobalChallenge

AP helpers

  • BaseAP
  • GetLinkAP
  • GetFieldAP
  • EstimateAP
  • EstimateBuriedmem
  • EstimateGlobalChallengeScore

Portal and resonator helpers

  • ResonatorLevel
  • NoOfResonatorsInAPortal
  • rangeMod
  • daysbeforeFSLatesubmissions
  • daysTillTuesday
  • GetNoOfAgentsRequired

Scripts

  • npm test run tests
  • npm run cv run coverage

License

MIT

Contributors