Authentication¤
By default, the client is not authenticated. You can check the status using the CLI:
fr24 auth show
warning: not authenticated
help: provide your credentials in environment variables, either:
- `fr24_username` and `fr24_password`, or
- `fr24_subscription_key` and `fr24_token`
help: alternatively, create a template configuration file at
`/home/user/.config/fr24/fr24.conf` with the command `fr24 auth create`.
You should be authenticated if you would like to access more history or use the data for commercial purposes.
Set the following environment variables:
Config File¤
Alternatively, you can also create a configuration file in the config directory.
An example of it can be found at fr24.example.conf
, and can be generated with the command:
fr24 auth create
success: created template configuration file at /home/user/.config/fr24/fr24.conf
Examples:
[global]
username=example13@example.com
password=example13
[global]
subscription_key=dQw4w9WgXcQdQw4w9WgXcQdQw4w9WgXcQdQw4w9WgXcQ
token=eyq2IlMJ5ip3ElLJ5aMKWmqT9fo3MyrJ91n25iq3EbMKW1oTImLJ5xp29xo2x=
-
When the FR24 class' context is entered, a request is automatically made to retrieve the OAuth tokens ↩
-
fr24_token
should be a JWT with theexp
claim in a month, whilefr24_subscription_key
should be the shorter one.fr24_token
is optional but live feed will fail without it. Be sure to update the JWT in time. ↩