title: IndexError: tuple index out of range in python by using Raspberry pi
body: <p>Here is a code for calculating the radiation of the sun, but when I'm trying to run the code I get this error:</p>
  <pre><code>   Parsed config:  None
  Traceback (most recent call last):
    File &quot;/home/pi/SolarRadiationPlugin-master/run_plugin.py&quot;, line 13, in &lt;module&gt;
      print('Sunrise: {0}\r\nSunset: {1}'.format(solar_radiation.get_sunrise_sunset()))
  IndexError: tuple index out of range
  </code></pre>
  <p>I'm not sure why this error is showing,</p>
  <p>and here is the main code code :</p>
  <p><a href="https://github.com/UBayouski/SolarRadiationPlugin" rel="nofollow noreferrer">https://github.com/UBayouski/SolarRadiationPlugin</a></p>