from django.conf.urls import patterns, url

from roomsensor import views

urlpatterns = patterns('',
    url(r'^$', views.index, name='roomsensor'),

    # ex: /roomsensor/name/
    url(r'^(?P<roomsensor_name>\w+)/$', views.display, name='roomsensor_display'),
    url(r'^(?P<roomsensor_name>\w+)/read/$', views.read, name='roomsensor_read'),

    # JSON data for graph creation
    url(r'^(?P<roomsensor_name>\w+)/rawdata/(?P<datapoints>\d+)/(?P<compression_factor>\d+)/$', views.rawdata, name='roomsensor_rawdata'),
)
[((105, 146), 'django.conf.urls.url', 'url', (['"""^$"""', 'views.index'], {'name': '"""roomsensor"""'}), "('^$', views.index, name='roomsensor')\n", (108, 146), False, 'from django.conf.urls import patterns, url\n'), ((182, 259), 'django.conf.urls.url', 'url', (['"""^(?P<roomsensor_name>\\\\w+)/$"""', 'views.display'], {'name': '"""roomsensor_display"""'}), "('^(?P<roomsensor_name>\\\\w+)/$', views.display, name='roomsensor_display')\n", (185, 259), False, 'from django.conf.urls import patterns, url\n'), ((265, 341), 'django.conf.urls.url', 'url', (['"""^(?P<roomsensor_name>\\\\w+)/read/$"""', 'views.read'], {'name': '"""roomsensor_read"""'}), "('^(?P<roomsensor_name>\\\\w+)/read/$', views.read, name='roomsensor_read')\n", (268, 341), False, 'from django.conf.urls import patterns, url\n'), ((383, 523), 'django.conf.urls.url', 'url', (['"""^(?P<roomsensor_name>\\\\w+)/rawdata/(?P<datapoints>\\\\d+)/(?P<compression_factor>\\\\d+)/$"""', 'views.rawdata'], {'name': '"""roomsensor_rawdata"""'}), "('^(?P<roomsensor_name>\\\\w+)/rawdata/(?P<datapoints>\\\\d+)/(?P<compression_factor>\\\\d+)/$'\n    , views.rawdata, name='roomsensor_rawdata')\n", (386, 523), False, 'from django.conf.urls import patterns, url\n')]