A comprehensive Lotto statistics plugin for Enigma2-based receivers with historical data analysis, frequency tracking, predictions, and support for Lotto, 10eLotto, and Superenalotto.
- ๐ Draws Archive: Complete historical archive from 1871 to present day
- ๐ Frequency Analysis: Hot and cold numbers with detailed statistics
- ๐ Statistical Analysis: Comprehensive analysis with most/least frequent numbers and delays
- ๐ฎ Predictions: Generate statistical predictions based on frequencies and delays
- ๐ด Neapolitan Smorfia: Complete 1-90 number meanings for dream interpretation
- ๐ฏ 10eLotto: Dedicated statistics for 10eLotto
- โญ Superenalotto: Complete historical archive with frequency analysis
- ๐ Auto-Update: Automatic download of latest draw archives
- Lotto: Brightstar Lottery archive (1871-present)
- Superenalotto: GitHub archive by luigimassa (1997-present)
- 10eLotto: Statistical analysis based on Lotto data
- Menu Stack Navigation: Back button returns to previous level
- Scroll Support: Up/Down/Left/Right navigation in all screens
- Real-time Data: Always up-to-date statistics
- Multi-threaded Loading: Background data processing
- JSON Data Storage: Efficient local data management
- gettext Support: Fully internationalized
- Dynamic Skin Loading: Auto-adapts to screen resolution
- Memory Efficient: Loads data in batches
| Key | Action |
|---|---|
| OK | Enter selected category |
| CANCEL / EXIT | Close plugin |
| Key | Action |
|---|---|
| OK | (context-dependent) |
| CANCEL / EXIT | Return to main menu |
| UP/DOWN | Scroll content |
| LEFT/RIGHT | Page up/down |
| Key | Action |
|---|---|
| OK | (context-dependent) |
| STOP | Exit player |
| EXIT | Exit player |
wget -q --no-check-certificate https://raw.githubusercontent.com/OwnerPlugins/LottoStats/main/installer.sh -O - | /bin/bash- Download the plugin
- Extract to
/usr/lib/enigma2/python/Plugins/Extensions/ - Restart Enigma2
- The plugin will appear in the Extensions menu
The plugin uses only standard Enigma2 libraries. No additional dependencies required.
- Open the Plugin: From the Extensions menu, select LottoStats
- Main Menu: Choose between:
- ๐ Draws Archive - View historical draws
- ๐ Number Frequencies - Hot and cold numbers
- ๐ Statistical Analysis - Complete statistics
- ๐ฎ Predictions - Generated predictions
- ๐ด Neapolitan Smorfia - Number meanings
- ๐ฏ 10e Lotto - Dedicated statistics
- โญ Superenalotto - Historical archive
- ๐ Update Lotto Archive - Download latest data
- ๐ Update Superenalotto - Download latest data
- โ Exit - Close plugin
- Select Draws Archive from the main menu
- Scroll through the historical draws (most recent first)
- Use UP/DOWN to scroll through the list
- Press EXIT to return to the main menu
- Select Number Frequencies from the main menu
- View:
- ๐ฅ Hot numbers (most drawn)
- โ๏ธ Cold numbers (least drawn)
- โณ Maximum delays
- Scroll through the results
- Select Predictions from the main menu
- View generated predictions for each wheel
- Each wheel shows 5 recommended numbers
- Disclaimer: Predictions are statistical only
- Select Update Lotto Archive from the main menu
- The plugin will download the latest archive from Brightstar
- Wait for completion confirmation
- Or select Update Superenalotto for Superenalotto data
Plugins/Extensions/LottoStatistiche/
โโโ plugin.py # Plugin entry point
โโโ __init__.py # Package initialization
โโโ screens/
โ โโโ __init__.py # Screen package
โ โโโ main_screen.py # Main menu screen
โ โโโ archivio_screen.py # Draws archive screen
โ โโโ frequenze_screen.py # Frequencies screen
โ โโโ analisi_screen.py # Analysis screen
โ โโโ previsioni_screen.py # Predictions screen
โ โโโ smorfia_screen.py # Smorfia screen
โ โโโ dieci_lotto_screen.py # 10eLotto screen
โ โโโ superenalotto_screen.py # Superenalotto screen
โโโ core/
โ โโโ __init__.py # Core package
โ โโโ dati.py # Data management
โ โโโ statistiche.py # Statistics calculations
โ โโโ smorfia.py # Smorfia data
โ โโโ update.py # Lotto archive updater
โ โโโ update_superenalotto.py # Superenalotto updater
โโโ data/
โโโ archivio.json # Local archive storage
data/archivio.json
[
{
"data": "2026-08-25",
"estrazioni": {
"BA": [12, 34, 56, 78, 90],
"CA": [3, 15, 27, 39, 51],
"FI": [6, 18, 30, 42, 54],
"GE": [9, 21, 33, 45, 57],
"MI": [1, 13, 25, 37, 49],
"NA": [4, 16, 28, 40, 52],
"PA": [7, 19, 31, 43, 55],
"RM": [10, 22, 35, 47, 59],
"TO": [2, 14, 26, 38, 50],
"VE": [5, 17, 29, 41, 53]
}
}
]data/superenalotto.json
[
{
"data": "2026-08-25",
"concorso": 136,
"numeri": [12, 34, 56, 67, 78, 90],
"jolly": 45,
"superstar": 23
}
]Access configuration from the Enigma2 plugin menu:
- Default Language: Choose between Italian and other languages
- Archive Update: Manual or automatic updates
- Debug Logging: Enable debug messages in logs
The plugin automatically detects screen resolution and loads the appropriate skin:
- HD (1280x720): Default skin
- FHD (1920x1080): Optimized for full HD
- UHD (3840x2160): Optimized for 4K displays
- Frontend: Enigma2 Screen system with MenuList and ScrollLabel components
- Navigation: Stack-based navigation with history
- Data: JSON-based local storage
- Updates: HTTP download with zip extraction
- Statistics: Python-based calculations with frequency and delay analysis
- Internationalization: gettext-based translations
- Lotto:
https://www.brightstarlottery.it/STORICO_ESTRAZIONI_LOTTO/storico.zip - Superenalotto:
https://raw.githubusercontent.com/luigimassa/superenalotto-archivio/main/superenalotto.csv
- Frequencies: Count of each number's appearances
- Delays: Number of draws since last appearance
- Hot Numbers: Most frequent numbers
- Cold Numbers: Least frequent numbers
- Predictions: Combined frequency + delay weighting
The plugin supports 10 Italian Lotto wheels:
- BA (Bari)
- CA (Cagliari)
- FI (Firenze)
- GE (Genova)
- MI (Milano)
- NA (Napoli)
- PA (Palermo)
- RM (Roma)
- TO (Torino)
- VE (Venezia)
| Problem | Solution |
|---|---|
| No archive data | Press "Update Lotto Archive" from main menu |
| Superenalotto not loading | Press "Update Superenalotto" from main menu |
| Data won't update | Check internet connection and try again |
| No numbers showing | Archive may be corrupted; delete data/archivio.json and update |
| Scrolling not working | Use UP/DOWN keys on remote |
| Plugin fails to load | Check Python syntax errors in logs |
| Slow loading | Archive file may be large; wait for loading to complete |
Enable debug logging in settings, then check logs:
tail -f /var/log/messages | grep LottoStatsOr on OpenPLi:
tail -f /home/root/logs/debug.log | grep LottoStatsIf automatic updates fail:
- Download manually from:
https://www.brightstarlottery.it/STORICO_ESTRAZIONI_LOTTO/storico.zip - Extract the TXT file
- Convert to JSON format (the plugin does this automatically)
- Initial release
- Complete Lotto archive from 1871 to present
- Frequency and delay analysis
- Statistical predictions
- Neapolitan Smorfia (all 90 numbers)
- 10eLotto statistics
- Superenalotto complete archive
- Auto-update functionality
- Full gettext internationalization
- English codebase with Italian UI
- Scroll navigation in all screens
- Background data processing
Contributions are welcome! Please ensure:
- Code follows existing style and structure
- Comments are in English
- All code uses English naming conventions
- UI text uses
_()for translation - New features include appropriate configuration options
- All changes are tested on Enigma2 receivers
- Submit pull requests to the main branch
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This plugin is released under GPLv3. See LICENSE for full details.
The project author is not responsible for how this software is used by others. This plugin is for informational and recreational purposes only.
The plugin provides statistical analysis and predictions based on historical data. These predictions do not guarantee wins and should not be used as financial advice.
Users are solely responsible for determining the legality of their actions in their jurisdiction.
โญ๏ธ If you find this plugin useful, please give it a star on GitHub!
Thanks! โค๏ธ ๐ ๐ โค๏ธโ๐ฅ ๐
- Developer: OwnerPlugins
- Data Sources: Brightstar Lottery, luigimassa (Superenalotto)
- Inspiration: Lottologia, 123lotto.it
- Community: LinuxSat-Support, CorvoBoys
Note: This plugin requires an Enigma2-based receiver (OpenPLi, OpenATV, etc.) Internet connection required for archive updates Historical archive may take time to download on first run Predictions are statistical only and do not guarantee wins Play responsibly!