Foreca Weather Plugin problem
Re: Foreca Weather Plugin problem #21
Re: Foreca Weather Plugin problem #22
Re: Foreca Weather Plugin problem #23
Posted 10 October 2012 - 18:14
???
Re: Foreca Weather Plugin problem #24
Posted 10 October 2012 - 18:32
Edited by JuSt611, 10 October 2012 - 18:33.
Re: Foreca Weather Plugin problem #25
Posted 10 October 2012 - 18:33
This must works for you and for us too:
LANGUAGE = language.getLanguage()[:2] try: locale.setlocale(locale.LC_COLLATE, language.getLanguage()) except: pass
Edited by ims, 10 October 2012 - 18:46.
Re: Foreca Weather Plugin problem #26
Re: Foreca Weather Plugin problem #27
Re: Foreca Weather Plugin problem #28
Posted 10 October 2012 - 19:10
locale.LC_ALL
Combination of all locale settings. If this flag is used when the locale is changed, setting the locale for all categories is attempted. If that fails for any category, no category is changed at all.
So unfortunately we cannot use LC_ALL.
But, if you really need LC_COLLATE, you need to provide a ~1.5MB LC_COLLATE file in each of the locales...
That's a lot of overhead for an embedded device.
Edited by pieterg, 10 October 2012 - 19:11.
Re: Foreca Weather Plugin problem #29
Posted 11 October 2012 - 05:46
BTW, I've added my planned improvements to changelog in plugin. Anyone here interested in co-operation?
Greetz
JuSt
Re: Foreca Weather Plugin problem #30
Re: Foreca Weather Plugin problem #31
Re: Foreca Weather Plugin problem #32
Re: Foreca Weather Plugin problem #33
Posted 4 March 2013 - 23:07
How do I choose a different start page?
I cannot find the option in the menu. Neither can I find startpagina.cfg in in /etc/enigma2/Foreca. Am I supposed to create it myself? What is the format of the data inside the file?
ET9000, OpenPLi 4.0, 13E, 19E
HD51, OpenPLi 6.2, 75E - 30W
Re: Foreca Weather Plugin problem #34
Posted 5 March 2013 - 00:02
open the city list with [ok] button, browse to your preferred location and set it as a start page with [blue]How do I choose a different start page?
(you can also choose 2 more cities, as favourite 1 and 2 with [green] and [yellow])
it's startservice.cfg, fav1.cfg and fav2.cfg, they should be created as soon as you choose other than default cities...Neither can I find startpagina.cfg in in /etc/enigma2/Foreca. Am I supposed to create it myself? What is the format of the data inside the file?
//tip: you can add any missing city to City.cfg, provided that it's present on foreca.com;
format is Country/City_Name (and names have to be spelled exactly as on foreca)
Re: Foreca Weather Plugin problem #35
Re: Foreca Weather Plugin problem #36
Posted 20 March 2013 - 18:51
[SKIN] Parsing embedded skin <embedded-in-'ForecaPreviewCache'> [Foreca Ver. 3.0.7] getPage... [Foreca Ver. 3.0.7] Url: http://www.foreca.cz/United_Kingdom/London?lang=cs&details=20130320&units=metrickmh&tf=24h [Foreca Ver. 3.0.7] Error: [Failure instance: Traceback: <type 'exceptions.IndexError'>: list index out of range /usr/lib/python2.7/site-packages/twisted/internet/tcp.py:277:connectionLost /usr/lib/python2.7/site-packages/twisted/web/client.py:191:connectionLost /usr/lib/python2.7/site-packages/twisted/internet/defer.py:368:callback /usr/lib/python2.7/site-packages/twisted/internet/defer.py:464:_startRunCallbacks --- <exception caught here> --- /usr/lib/python2.7/site-packages/twisted/internet/defer.py:551:_runCallbacks /usr/lib/enigma2/python/Plugins/Extensions/Foreca/plugin.py:777:getForecaPage ] action -> ForecaActions red Traceback (most recent call last): File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action File "/usr/lib/enigma2/python/Plugins/Extensions/Foreca/plugin.py", line 746, in red self.url=_("http://www.foreca.com") + "/meteogram.php?loc_id=" + self.loc_id + "&mglang=" + LANGUAGE + "&units=" + config.plugins.foreca.units.value + "&tf=" + config.plugins.foreca.time.value + "/meteogram.png" AttributeError: 'ForecaPreview' object has no attribute 'loc_id' (PyObject_CallObject(<bound method HelpableActionMap.action of <Components.ActionMap.HelpableActionMap instance at 0x1921288>>,('ForecaActions', 'red')) failed) getResolvedKey config.plugins.crashlogautosubmit.sendAnonCrashlog failed !! (Typo??) getResolvedKey config.plugins.crashlogautosubmit.addNetwork failed !! (Typo??) getResolvedKey config.plugins.crashlogautosubmit.addWlan failed !! (Typo??)
Edited by ims, 20 March 2013 - 19:38.
Re: Foreca Weather Plugin problem #37
Re: Foreca Weather Plugin problem #38
Posted 23 March 2013 - 23:27
changing just this line in plugin.py:
def getForecaPage(self,html): #new Ajax.Request('/lv?id=102772400', { - fulltext = re.compile(r"new Ajax.Request.+?lv.+?id=(.+?)'", re.DOTALL) + fulltext = re.compile(r"id: '(.*?)'", re.DOTALL) id = fulltext.findall(html) if DEBUG: print pluginPrintname, "fulltext=", fulltext, "id=", id self.loc_id = str(id[0])seems to do the job... (a readymade plugin.py attached)
//but to be honest, I'm not so sure if I should to feel happy to know a weather forecast again. in current circumstances (it's a spring already, rrright? )
Attached Files
Re: Foreca Weather Plugin problem #39
Re: Foreca Weather Plugin problem #40
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users