Overview
The EcoleDirecte integration uses the@blockshub/blocksdirecte library to communicate with EcoleDirecte’s API. Unlike some platforms, EcoleDirecte capabilities are fixed and don’t require dynamic detection.
EcoleDirecte provides a consistent set of features across all schools using the platform.
Supported Features
Papillon’s EcoleDirecte integration includes:Grades
View grades by period with averages and statistics
Homework
Track assignments and mark them complete
Timetable
Access your weekly class schedule
Attendance
Monitor absences and presence records
Messaging
Read messages from teachers and staff
News
Read school announcements and updates
Balance
Check your school account balance
Detailed Feature List
Homework Management
Homework Management
The homework feature allows you to:
- View assignments organized by week
- See assignment details, descriptions, and due dates
- Mark homework as done or incomplete
- Track completion status across subjects
HOMEWORKGrades & Academic Performance
Grades & Academic Performance
Access your academic records including:
- Grades organized by evaluation period
- Subject averages and class averages
- Grade statistics and rankings
- Teacher comments and observations
- Historical grade data
GRADESTimetable & Schedule
Timetable & Schedule
View your class schedule with:
- Weekly timetable display
- Class locations and room numbers
- Teacher assignments
- Subject information
TIMETABLEAttendance Tracking
Attendance Tracking
Monitor your attendance including:
- Absence records
- Delay notifications
- Attendance statistics
- Justification status
ATTENDANCEMessaging
Messaging
Communicate with teachers and staff:
- Read received messages
- View message threads
- Access message content and attachments
- See sender information and dates
CHATSchool News
School News
Stay informed with:
- School-wide announcements
- Important notices from administration
- Event information
- News from teachers
NEWSConnecting to EcoleDirecte
Setting up your EcoleDirecte connection is straightforward:Select EcoleDirecte
When adding a new account in Papillon, choose EcoleDirecte from the list of available platforms.
Enter Your Username
Provide your EcoleDirecte username. This is typically:
- Your school-provided identifier
- Sometimes your email address
- Or a numeric student ID
Use the same username you use to log into the EcoleDirecte website or mobile app.
Authentication
Papillon will authenticate with EcoleDirecte and generate an access token. A unique device UUID is created to identify your device.
Account Selection
If your account is associated with multiple students (parent accounts), you’ll select the student account to use. Papillon automatically selects the first account by default.
Authentication Details
EcoleDirecte uses a token-based authentication system:How Authentication Works
- Initial Login: Papillon sends your credentials to EcoleDirecte’s API
- Token Generation: EcoleDirecte returns an access token
- Token Storage: The token is securely stored on your device
- Token Refresh: The token is used for all subsequent requests
- Automatic Refresh: Papillon automatically refreshes your session as needed
EcoleDirecte tokens remain valid for extended periods. Papillon handles token refresh automatically, so you rarely need to log in again.
Available Capabilities
Unlike Pronote’s dynamic capabilities, EcoleDirecte provides a fixed set of features:| Feature | Status | Description |
|---|---|---|
| Homework | ✓ Always Available | View and manage assignments |
| Grades | ✓ Always Available | Access grades and evaluations |
| Timetable | ✓ Always Available | View class schedule |
| Attendance | ✓ Always Available | Monitor attendance records |
| News | ✓ Always Available | Read school announcements |
| Balance | ✓ Always Available | Check account balance |
| Messaging | ✗ Not Supported | EcoleDirecte messaging not yet integrated |
| Canteen Menu | ✗ Not Available | Not provided by EcoleDirecte API |
All features are enabled by default. If you can’t access a feature, it may be restricted by your school’s account permissions.
Data Synchronization
EcoleDirecte data syncs with the following behavior:- Manual Refresh: Pull down on any screen to refresh data
- Session Persistence: Your session remains active between app launches
- Automatic Updates: Data is fetched on-demand when you navigate to different sections
- Cache Strategy: Recent data is cached to improve performance
Common Issues & Solutions
Login Failed
Login Failed
Problem: Can’t connect to your EcoleDirecte account.Solutions:
- Verify your username and password are correct
- Try logging into EcoleDirecte’s website to confirm credentials
- Check your internet connection
- Ensure your EcoleDirecte account is active
- Contact your school if account is locked
No Data Displayed
No Data Displayed
Problem: Connected successfully but no data appears.Solutions:
- Pull down to manually refresh
- Check if data is available on EcoleDirecte’s website
- Your school may not have published data yet
- Try disconnecting and reconnecting your account
Session Expired
Session Expired
Problem: Getting session expired errors.Solutions:
- Papillon should automatically refresh your session
- Try manually refreshing the app
- If the issue persists, log out and log back in
- Check if you changed your password on EcoleDirecte’s website
Wrong Student Account
Wrong Student Account
Problem: Showing data for the wrong student (parent accounts).Solutions:
- EcoleDirecte may have multiple student profiles linked
- Currently, Papillon uses the first account (index 0)
- You may need to create separate connections for each student
Parent Accounts
For parents with multiple children:Parent accounts can access data for multiple students. Currently, Papillon automatically selects the first student account. To access data for other students, you can add multiple EcoleDirecte accounts to Papillon.
Privacy & Security
EcoleDirecte integration security features:- ✓ Local credential storage with device encryption
- ✓ Token-based authentication (no password in memory)
- ✓ HTTPS encrypted communication
- ✓ Unique device UUID for identification
- ✓ Automatic session cleanup on logout
- ✓ No third-party data sharing
Technical Implementation
The EcoleDirecte integration is built using:- Library:
@blockshub/blocksdirecte- TypeScript client for EcoleDirecte API - Authentication: Token-based with automatic refresh
- Session Management: Client instance maintains connection state
- Account Selection: Automatic selection of first student account
/services/ecoledirecte/index.ts
Feature Comparison
EcoleDirecte vs Pronote
| Feature | EcoleDirecte | Pronote |
|---|---|---|
| Grades | ✓ | ✓ |
| Homework | ✓ | ✓ |
| Timetable | ✓ | ✓ |
| Attendance | ✓ | ✓ |
| News | ✓ | ✓ |
| Messaging | ✗ | ✓ |
| Canteen Menu | ✗ | ✓ |
| Balance | ✓ | ✗ |
| Dynamic Capabilities | ✗ | ✓ |
Best Practices
Regular Syncing
Pull down to refresh data regularly for the latest updates
Password Updates
Update your Papillon credentials when you change your EcoleDirecte password
Multiple Accounts
Add separate accounts for each child if you’re a parent
Data Privacy
Your data stays on your device - no cloud storage
Getting Help
If you experience issues with your EcoleDirecte integration:- Check the troubleshooting section above
- Verify your credentials work on EcoleDirecte’s official website
- Try disconnecting and reconnecting your account
- Contact your school’s IT support for account-related issues
- Report bugs on Papillon’s GitHub
Next Steps
Features Overview
Explore what you can do with Papillon
All Integrations
See other supported platforms

