https://github.com/openactive-archive/lorem-fitsum
Random activity generator
https://github.com/openactive-archive/lorem-fitsum
implementation-support
Last synced: about 1 year ago
JSON representation
Random activity generator
- Host: GitHub
- URL: https://github.com/openactive-archive/lorem-fitsum
- Owner: openactive-archive
- License: mit
- Created: 2018-10-22T15:06:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T02:31:24.000Z (over 3 years ago)
- Last Synced: 2025-02-18T00:57:54.285Z (over 1 year ago)
- Topics: implementation-support
- Language: JavaScript
- Size: 2.24 MB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lorem-fitsum
Random activity generator
Env vars:
- `FEED_SESSIONSERIES_PAGE_SIZE` (OPTIONAL)
Number of items in each page for the SessionSeries feed
Defaults to `60`
- `FEED_SESSIONSERIES_TIMESTAMP_INVERVAL_MINUTES` (OPTIONAL)
Number of minutes in between each generated item within a page for the SessionSeries feed. Must be a factor of 60
e.g.
- `10`: The 2nd item in each feed will start 10 minutes after the 1st. The 3rd will start 10 minutes after the 2nd. etc.
Defaults to `5`
- `SCHEDULE_MAX_END_DAY_OFFSET` (OPTIONAL)
Maximum number of days offset between an item's timestamp and the endDate of its schedule. The endDate will be random, but its maximum possible value will use this offset.
Defaults to `28`
- `SCHEDULE_MIN_END_DAY_OFFSET` (OPTIONAL)
Minimum number of days offset between an item's timestamp and the endDate of its schedule. The endDate will be random, but its minimum possible value will use this offset.
Defaults to `14`
- `SCHEDULE_START_DAY_OFFSET` (OPTIONAL)
Number of days offset between an item's timestamp and the startDate of its schedule. Should be negative!
Defaults to `-7`
- `TIMESTAMP_START_DAY_OFFSET` (OPTIONAL)
Number of days offset between now and the first `modified` timestamp in the feed. Should be negative (as `modified` timestamps must be in the past) e.g.
- `-14`: The first item in each feed will start 14 days ago
- `-7`: The first item in each feed will start 7 days ago
Defaults to `-14`