Skip to content

Makhuta/homeassistant-duolingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HACS badge Contributors Release Release date Forks Stargazers Downloads Issues

Data scraper for Duolingo

Adds multiple sensors with information/statistics grabbed from Duolingo account

Installation

Requirements:

  1. Install this component by copying these files to custom_components/duolingo/.
  2. You will need to restart after installation for the component to start working.

Adding new device

To add the Duolingo Scraper integration to your Home Assistant, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

Note

The users will be viewed from the JWT token point of view meaning that you might not see some datas when parsing other users with the same token.

How to get the JWT token?

The JWT token is unique per user and will be different based on for whom you will be logged as in your browser. You can get the JWT token by opening following:

Developer tools -> Go to the Console -> Insert the following command

document.cookie.match(new RegExp('(^| )jwt_token=([^;]+)'))[0].slice(11)

Inside the Console is your unique JWT token, you can copy it and use it in HomeAssistant.

Possible problems

  1. If your JWT token don't work make sure to not copy the brackets " or ' from Console (they are there only to define the type of the return value which is in this case string)
Wrong Right
'YOUR_TOKEN' YOUR_TOKEN
  1. If you are unable to paste into your browser console (the command for getting the Duolingo token) type allow pasting into the console and press Enter, after that you should be able to paste the command.

Top contributors:

contrib.rocks image

About

HomeAssistant Duolingo scraper

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages