-
Notifications
You must be signed in to change notification settings - Fork 0
Config
PicelBoi edited this page Apr 3, 2026
·
1 revision
Encode2It requires a config to run. If it doesn't detect one, it would generate an example on first run. Here's an example:
<?xml version="1.0" encoding="utf-8"?>
<Encode2ItConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--This is the Encode2It config file. For more information, check the wiki.-->
<!--This is where headend-specific config data is set.-->
<HeadendConfig>
<!--This sets the ID of the Zap2It headend. Do not change if you don't know what you're doing.-->
<Id>ZAP2IT</Id>
<!--This is where the Zap2It program is installed. Do not change if you don't know what you're doing.-->
<Path>C:\ZAP2IT</Path>
</HeadendConfig>
<!--This is where input-specific config data is set.-->
<InputConfig>
<!--This sets the provider for the weather data provided by this encoder. Only one can be set.-->
<WeatherInput>
<!--
This sets the type of input this is.
Values:
- openmeteo
-->
<Type>openmeteo</Type>
<!--The location name as shown on the forecasts.-->
<LocationName>New York</LocationName>
<!--
This sets the value of the type (ex: api url, path to file, etc).
Examples:
- openmeteo:
- https://api.open-meteo.com (if non-commercial)
- https://customer-api.open-meteo.com (if commercial)
-->
<Value>https://api.open-meteo.com</Value>
<!--Sets where to get weather data for.-->
<Latitude>40.7143</Latitude>
<Longitude>-74.006</Longitude>
<!--If set to true, the supplied API key is sent to the provider (DEPENDS ON TYPE)-->
<KeyEnabled>false</KeyEnabled>
<!--This sets the API key, and will be sent if KeyEnabled is set to true. (DEPENDS ON TYPE)-->
<Key>INSERT_KEY_HERE</Key>
</WeatherInput>
<!--This sets the provider(s) for the listing data provided by this encoder. Multiple can be set.-->
<ListingInputs>
<ListingInput>
<!--
This sets the type of input this is.
Values:
- mist_v1
- xmltv
-->
<Type>mist_v1</Type>
<!--
This sets the value of the type (ex: api url, path to file, etc).
Examples:
- mist_v1:
- https://api.mistweather.com/api/public-channels
- xmltv:
- ./xmltv.xml
-->
<Value>https://api.mistweather.com/api/public-channels</Value>
<!--If set to true, the supplied API key is sent to the provider (DEPENDS ON TYPE)-->
<KeyEnabled>false</KeyEnabled>
<!--This sets the API key, and will be sent if KeyEnabled is set to true. (DEPENDS ON TYPE)-->
<Key>INSERT_KEY_HERE</Key>
</ListingInput>
</ListingInputs>
</InputConfig>
<!--This is where timing-specific config data is set.-->
<TimingConfig>
<ListingInterval>300000</ListingInterval>
<WeatherInterval>3600000</WeatherInterval>
<!--This defines the interval between each time Encode2It generates listings in milliseconds.-->
<!--This defines the interval between each time Encode2It generates weather data in milliseconds.-->
</TimingConfig>
<!--This is where log-specific config data is set.-->
<LogConfig>
<LogLevel>1</LogLevel>
<!--This sets the log level. 0 for Debug, 1 for Info, 2 for Warning, 3 for Error.-->
</LogConfig>
</Encode2ItConfig>
This config is set to grab weather data from Open-Meteo from coordinates 40.7143,-74.006, and encodes it with the name "New York". It is also set to grab from Mist Streaming.