Menu

PyDPF not working due to Google disabling API!

BigRon
2012-11-03
2012-11-03
  • BigRon

    BigRon - 2012-11-03

    Hi there...

    Finally now after nearly 2 days of trying out , installing things, many compiling errors and so on I got the Firmwares compiled from " http://dpf-ax.svn.sourceforge.net/ " ...

    God I was raging many times til now! ^^

    I flashed then the PearlDisplay (AX206) Landscape Mode while in Bootloader Mode and now there are many eyes looking at me! ^So the Flashing was successfull...

    Now I also compiled lcd4linux and it is working and also installed tightvnc to get the PyDpf.py with my MPD Server working.

    I am startig tightvnc with folowing command:
    vncserver :2 -geometry 320x240 -depth 24

    And after executing PyDPF.py I am getting following error:
    [code]

    root@soprano:/home/lcd4linuxstuff/pydpf/pydpf# python PyDPF.py
    Found AX206 DPF
    Got LCD dimensions: 320x240
    Traceback (most recent call last):
    File "PyDPF.py", line 627, in <module>
    main()
    File "PyDPF.py", line 616, in main
    handler = RemoteEventHandler()
    File "PyDPF.py", line 476, in init
    self._mpdHandler = MPDHandler(self._DPF,dpfrender.MPDrender(self._DPF),config.MPD_REFRESH,self)
    File "PyDPF.py", line 269, in init
    super(MPDHandler,self).init (DPF,render,timeout,parentThread)
    File "PyDPF.py", line 215, in init
    self._weather.update(config.WEATHER_CITY)
    File "/home/lcd4linuxstuff/pydpf/pydpf/utils/weather.py", line 59, in update
    self._wt = pywapi.get_weather_from_google(city)
    File "/home/lcd4linuxstuff/pydpf/pydpf/utils/pywapi.py", line 115, in get_weather_from_google
    handler = urllib.urlopen(url)
    File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
    File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
    File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
    File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(args)
    File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(
    args)
    File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    urllib2.HTTPError: HTTP Error 403: Forbidden

    [/code]

    I think it has to do with google disabling the Weather API. But I disabled as shown in the pydpf Config file the Weather feature and the Picture-Show Feature but it still gives me this error.
    Is there a different easier way to show the VNC Screen on the DPF?
    Can someone help me with this... I am near to completion...

    And What I also wanted to ask:

    I wanted to get the Display right into VNC Mode after bootup displaying MPD Informations or the XSession. How to do this with

    Is there also a way to change the view-mode of PyDPF while running? So e.g. when MPD is Playing it shows the MPD Informations and when MPD is not playing any Music the Display will show Time and weather or something else like disabling itself?

    Thank you in advance. Man. This was a real PITA to the state I got this working now. Only the PyDPF errors arent resolved now... I am really happy about any help!

    Thank you!

    Greetings Ron!

     

    Related

    code: code


    Last edit: BigRon 2012-11-03
    • irimi

      irimi - 2012-11-03

      You can try to disable "weather" feature :
      In config.py set
      WEATHER_CITY=""

      Actually there is no feature to define which screen shall be started at first and it depends on the code/order in PyDPF.py lines 475...490.

      Hence you can set USE_MPD=False and VNC is started first but MPD-client is disabled or change initialsation order order in above mentioned code for your needs.

      Hope that helps !?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.