Hi
Both MAKO and Cherrypy seems good choices to me. I have been programming PHP for some years now, so it's really just a question of learning a new language and new frameworks. Lets stick to these until there is a reason to switch
Maybe I'll have a go at moving the page handlers to pellmonwebb.py if I find the time. There are some concepts that I have a hard time understanding. Not really sure if it's Python or Cherrypy
Anyhow, I broke something:
Kode: Vælg alt
pi@raspberrypi ~/PellMon $ ./pellmonwebb.py start
Traceback (most recent call last):
File "./pellmonwebb.py", line 234, in <module>
pelletService = bus.get_object('org.pellmon.int', '/org/pellmon/int')
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.pellmon.int was not provided by any .service files
I'm running the latest version from GitHub, and I didn't change anything on my system. Any idea what's going on?