https://github.com/RiiConnect24/File-Maker
Generate data files for Wii Channels that have the latest news, forecast data, etc.
https://github.com/RiiConnect24/File-Maker
channels forecast hacktoberfest news python python3 riiconnect24 votes weather wii wii-channels wiiconnect24
Last synced: 7 months ago
JSON representation
Generate data files for Wii Channels that have the latest news, forecast data, etc.
- Host: GitHub
- URL: https://github.com/RiiConnect24/File-Maker
- Owner: RiiConnect24
- License: agpl-3.0
- Created: 2017-04-22T21:48:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T18:56:57.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T10:08:30.456Z (12 months ago)
- Topics: channels, forecast, hacktoberfest, news, python, python3, riiconnect24, votes, weather, wii, wii-channels, wiiconnect24
- Language: Python
- Homepage:
- Size: 6.98 MB
- Stars: 68
- Watchers: 10
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File-Maker
[](http://www.gnu.org/licenses/agpl-3.0)
[](https://discord.com/invite/b4Y7jfD)These scripts will create static data files for these Wii Channels:
- Everybody Votes Channel
- Forecast Channel
- News Channel
- Nintendo Channel
- Check Mii Out Channel/Mii Contest ChannelThese files are downloaded on the Wii, and contain news, weather info, etc that the Channel(s) display, as well as influencing some games' environments.
## Services and Modules
We use the following services for this project:
- [Datadog](https://datadoghq.com/) for analytics.
- For News Channel, [Google Maps Geocoding API](https://developers.google.com/maps/documentation/geocoding/intro) to get location coordinates.
- For Everybody Votes Channel and Check Mii Out Channel, [MySQL](https://www.mysql.com/) to hold votes and suggestions.
- [Sentry](https://sentry.io/) for error logging.
- Webhooks to log when a script has been ran.Some notable Python modules used in the project are:
- [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/) for HTML parsing.
- [feedparser](https://pypi.python.org/pypi/feedparser) to parse RSS feeds.
- [newspaper](http://newspaper.readthedocs.io/en/latest/) for news article scraping.
- [nlzss](https://github.com/DorkmasterFlek/python-nlzss) for LZ compressing the files.
- [requests](http://docs.python-requests.org/en/master/) for various HTTP requests.
- [rsa](https://pypi.python.org/pypi/rsa) to create an RSA signed SHA-1 (that the Wii verifies downloaded files with).[AccuWeather](https://accuweather.com/) is used as the weather source for the Forecast Channel. For a list of news sources we use for the News Channel, [refer to this webpage](https://rc24.xyz/services/news.html).
All files are LZ10 compressed.
If you want to know the format of the files used by the Channels, you can [look at our Kaitais](https://github.com/RiiConnect24/Kaitai-Files), check the wiki, or look at the code.
## Installing Requirements
These scripts run on Python 3.
Just run `pip install -r requirements.txt` in the root folder and it'll install. You might have to run as `sudo` due to permissions.
It's required to have a `config.json` for each Channel in the `Channels` folder. Fill out `config.json.template` for the Channels you want to run this script for, and rename it to `config.json`.
Run the scripts as modules, e.g. `python -m Channels.Forecast_Channel.forecast`.