invalid syntax plugin.py, line 1120
def getVal(self, key: str):
try
def getVal(self, key):
invalid syntax plugin.py, line 1120
def getVal(self, key: str):
try
def getVal(self, key):
Did my edits, make this work on VTI then?
no they don´t
there are python tools for converting py versions, for py2 to py3 futurize and for py3 to py2 pasteurize, does anyone know how to use (download) it
you dont really need specific tools nowadays. Just use AI. i.e deepseek. (less limits than chatgpt)
Upload the file and say, can you make this code python 2.7 and python 3.* compatible.
"OAWeatherDetailview " this page's no ability to adjust, made a simple style ....
1_0_1_DA0_7_1_4849004_0_0_0_20251201204948.jpg
# mod by lululla 20251209
# -fix Error updating config choices: weatherlocation
# -fixz Error syncing config: weatherlocation
2025-12-09 12:18:30,850 - OAWeather - INFO - OAWeather logging initialized
2025-12-09 12:18:30,851 - OAWeather - INFO - Writable path found: /etc/enigma2/oaweather_fav.json
2025-12-09 12:18:30,852 - OAWeather - INFO - Using favorite file: /etc/enigma2/oaweather_fav.json
2025-12-09 12:18:30,853 - OAWeather - INFO - Loaded 1 favorites from JSON
2025-12-09 12:18:30,853 - OAWeather - ERROR - Error updating config choices: weatherlocation
2025-12-09 12:18:30,854 - OAWeather - ERROR - Error syncing config: weatherlocation
2025-12-09 12:18:30,855 - OAWeather - ERROR - Error updating config choices: weatherlocation
2025-12-09 12:18:30,855 - OAWeather - INFO - Loaded 1 favorites from JSON
2025-12-09 12:18:30,856 - OAWeather - INFO - Updated config choices
2025-12-09 12:18:30,857 - OAWeather - INFO - Using WeatherHandler
2025-12-09 12:18:30,858 - OAWeather - INFO - Python 3 getValid
2025-12-09 12:18:30,858 - OAWeather - INFO - Python 3 getSkydirs
Display More
Hi
Why not link this plugin to the OpenATV source code? That way it will work stably.
Hi
Why not link this plugin to the OpenATV source code? That way it will work stably.
This is compatible (I think) with py2 and py3.
ATV doesn't accept many code fixes... at least not from me.
Except for epgimport...
This is compatible with OPenPLi.
Hello, is it normal that it only displays the wind speed and not its direction (north, south, or west)? Is it possible to display the wind direction?
i will test it with py2 now.
did not work:
syntax line plugin.py 1191
and line 1194
try this
What is the process for changing the language? Specifically, I would like everything to be translated into Serbian?
File "/usr/lib/enigma2/python/mytest.py", line 703, in <module>
runScreenTest()
File "/usr/lib/enigma2/python/mytest.py", line 534, in runScreenTest
session = Session(desktop = getDesktop(0), summary_desktop = getDesktop(1), navigation = nav)
File "/usr/lib/enigma2/python/mytest.py", line 226, in __init__
p(reason=0, session=self)
File "/usr/lib/enigma2/python/Plugins/Extensions/OAWeather/plugin.py", line 1057, in sessionstart
from Components.Sources.OAWeather import OAWeather
File "/usr/lib/enigma2/python/Components/Sources/OAWeather.py", line 220
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/enigma2/python/Components/Sources/OAWeather.py on line 220, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
(exit code 5)
Display More
missinig encoded utf - 8
No screen and error after closing
it´s to different to VTI and py 2, many other errors would be shown
i correct this
RE: [E² Plugin] OAWeather for PLi
no have ideas on vti..
My wind display is missing the wind direction, as described in post 250. I have "enigma2-plugin-extensions-oaweather_4.1_all.ipk" installed. Version 2.6 includes wind direction. I found this solution through searching:
In the "OAWeather.py" file located in "/usr/lib/enigma2/python/Components/Sources", change this section:
"def getWindDirName(self):" as follows:
"if len(skydirection) > 1:
return self.skydirs.get(skydirection[1],skydirection[1])
"if len(skydirection) > 0:
return self.skydirs.get(skydirection[0], skydirection[0])"
This works for me.
Hello, thank you, I will try it as well. Thank you again for this.
Don’t have an account yet? Register yourself now and be a part of our community!