Page 4 of 7

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:03 am
by matt (support)
kpfriedberg wrote:
WebServer enabled browser access to plugin path "plugins/usageReporter/usageReporter/css"
WebServer enabled browser access to plugin path "plugins/usageReporter/usageReporter/images"
WebServer enabled browser access to plugin path "plugins/usageReporter/usageReporter/js"

Move the contents of the folder usageReporter up a level. You have the folder nested one too deep inside a folder with the same name.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:11 am
by kpfriedberg
ok, i'll give that a shot. That said, i was somewhat confused because when you download the file, it creates the userreporting folder, then within that, the readme file and another userreporting folder. the instructions said to just copy in the userreporting folder but didn't specify which one. sorry for being a nob.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:19 am
by kpfriedberg
now i just get undefined page request and this on the log

WebServer undefined page requested "http://xxxxxxxxx.homeip.net:8176/usagereporter" from 63.71.3.45

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:36 am
by matt (support)
Did you stop and restart the Indigo Server and moving the folder? If so, copy/paste what is shown in the Event Log as the Indigo Server starts up.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:37 am
by jay (support)
I just changed the parent folder's name in the archive to avoid that confusion in the future.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:43 am
by berkinet
Indigo enhancement request (post 5.0):

How about a small application whose sole purpose is to place plugins, extensions and whatever in their proper place in the IndigoServer file system. Extensions, plugins etc. could just be dropped on the app and magically the components would be copied to their proper locations - a plist type file could contain instructions for "installation." There would probably need to be some checking to avoid squashing existing folders & files (Do you really want to replace foo?). But, this would fall far short of a real installer, really just a scriptable copy engine.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:48 am
by jay (support)
Very timely request - Matt and I were just brainstorming yesterday how to have the plugin mechanism help with this exact problem. Look for some coolness around this idea in 5.0... ;)

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 10:50 am
by kpfriedberg
Stopped and started server again. Still get undefined page request after logging in...

Starting Indigo Server version 4.1.7
Loading attachments
"battery dead notify attachment.scpt" script loaded
"device target attachment.scpt" script loaded
"group target attachment.scpt" script loaded
"growl attachment.scpt" script loaded
"iTunes attachment.scpt" script loaded
"scenes attachment.scpt" script loaded
"time stamp attachment.scpt" script loaded
Bonjour registered "Indigo - 3 Twin Knolls"
Indigo Cocoa client authenticated
SQLite client authenticated
WebServer client authenticated
SQLite client connected to Indigo Server
SQLite client connected to sqlite_db
SQLite logging all device state changes
SQLite logging all variable value changes
WebServer started on port 8176 -- digest authentication enabled
WebServer loaded plugin "Device Usage Report"
WebServer enabled browser access to plugin path "plugins/usageReporter/css"
WebServer enabled browser access to plugin path "plugins/usageReporter/images"
WebServer enabled browser access to plugin path "plugins/usageReporter/js"
SQLite client authenticated
WebServer client authenticated
SQLite client connected to Indigo Server
SQLite client connected to sqlite_db
SQLite logging all device state changes
SQLite logging all variable value changes
WebServer started on port 8176 -- digest authentication enabled
WebServer loaded plugin "Device Usage Report"
WebServer enabled browser access to plugin path "plugins/usageReporter/css"
WebServer enabled browser access to plugin path "plugins/usageReporter/images"
WebServer enabled browser access to plugin path "plugins/usageReporter/js"

Mar 18, 2010 12:46:32 PM
Trigger Action iTunesSync
Trigger Action NOAA Weather Sync
Weather NOAA Weather NOAA Script Launched
iTunes Sync iTunes Sync Script Launched
Connected to SmartHome PowerLinc USB E
PowerLinc address 0E.14.03, firmware version 2.13
PowerLinc standalone operation disabled
Indigo directly controlling automation logic

Mar 18, 2010 12:46:55 PM
Received INSTEON "Motion Sensor - Kitchen" off (button 1)

Mar 18, 2010 12:47:14 PM
WebServer undefined page requested "http://xxxxxxxxx.homeip.net:8176/usagereporter" from 63.71.3.45

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 11:14 am
by jay (support)
So, try this:

0) Stop the Indigo Server
1) Open a new terminal window (and keep it open - at the end I'd like you to paste the contents in to a reply here)
2) paste in the following command (no quotes):

"cd /Library/Application\ Support/Perceptive\ Automation/Indigo\ 4/IndigoWebServer/plugins/usageReporter"

3) paste in the following command: "ls -la"
4) paste in the following: "rm *.pyc"
5) paste in the following command: "ls -la"
6) Start up the Indigo Server
7) paste in the following command: "ls -la"

Paste in the entire contents of the terminal window here.

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 11:20 am
by kpfriedberg
Last login: Wed Mar 17 06:31:08 on console
Study-iMac:~ Karen$ cd /Library/Application\ Support/Perceptive\ Automation/Indigo\ 4/IndigoWebServer/plugins/usageReporter
Study-iMac:usageReporter Karen$ ls -la
total 72
drwxr-xr-x@ 11 Karen Karen 374 Mar 18 12:17 .
drwxrwxr-x 5 root admin 170 Mar 18 12:15 ..
-rw-r--r--@ 1 Karen Karen 6148 Mar 18 12:15 .DS_Store
-rw-r--r--@ 1 Karen Karen 22 Mar 2 2006 __init__.py
-rw-r--r-- 1 Karen Karen 228 Mar 18 12:17 __init__.pyc
drwxr-xr-x@ 5 Karen Karen 170 Mar 18 10:57 css
drwxr-xr-x@ 15 Karen Karen 510 Mar 18 10:57 images
drwxr-xr-x@ 3 Karen Karen 102 Mar 6 14:02 js
-rw-r--r--@ 1 Karen Karen 6791 Mar 9 14:12 reqhandler.py
-rw-r--r-- 1 Karen Karen 6620 Mar 18 12:17 reqhandler.pyc
drwxr-xr-x@ 4 Karen Karen 136 Mar 18 10:57 templates
Study-iMac:usageReporter Karen$ rm *pyc
Study-iMac:usageReporter Karen$ rm *.pyc
rm: *.pyc: No such file or directory
Study-iMac:usageReporter Karen$ ls -la
total 48
drwxr-xr-x@ 9 Karen Karen 306 Mar 18 13:18 .
drwxrwxr-x 5 root admin 170 Mar 18 12:15 ..
-rw-r--r--@ 1 Karen Karen 6148 Mar 18 12:15 .DS_Store
-rw-r--r--@ 1 Karen Karen 22 Mar 2 2006 __init__.py
drwxr-xr-x@ 5 Karen Karen 170 Mar 18 10:57 css
drwxr-xr-x@ 15 Karen Karen 510 Mar 18 10:57 images
drwxr-xr-x@ 3 Karen Karen 102 Mar 6 14:02 js
-rw-r--r--@ 1 Karen Karen 6791 Mar 9 14:12 reqhandler.py
drwxr-xr-x@ 4 Karen Karen 136 Mar 18 10:57 templates
Study-iMac:usageReporter Karen$ ls -la
total 72
drwxr-xr-x@ 11 Karen Karen 374 Mar 18 13:18 .
drwxrwxr-x 5 root admin 170 Mar 18 12:15 ..
-rw-r--r--@ 1 Karen Karen 6148 Mar 18 12:15 .DS_Store
-rw-r--r--@ 1 Karen Karen 22 Mar 2 2006 __init__.py
-rw-r--r-- 1 Karen Karen 228 Mar 18 13:18 __init__.pyc
drwxr-xr-x@ 5 Karen Karen 170 Mar 18 10:57 css
drwxr-xr-x@ 15 Karen Karen 510 Mar 18 10:57 images
drwxr-xr-x@ 3 Karen Karen 102 Mar 6 14:02 js
-rw-r--r--@ 1 Karen Karen 6791 Mar 9 14:12 reqhandler.py
-rw-r--r-- 1 Karen Karen 6620 Mar 18 13:18 reqhandler.pyc
drwxr-xr-x@ 4 Karen Karen 136 Mar 18 10:57 templates
Study-iMac:usageReporter Karen$

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 11:45 am
by jay (support)
I assume you're getting the same error? Everything appears to be loading correctly...

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 11:47 am
by jay (support)
Doh - just noticed your URL:

Mar 18, 2010 12:47:14 PM
WebServer undefined page requested "http://xxxxxxxxx.homeip.net:8176/usagereporter" from 63.71.3.45

It should be:

http://xxxxxxxxx.homeip.net:8176/usageReporter

Note the uppercase R...

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 11:52 am
by kpfriedberg
wow! Case sensitive...who knew...works...thanks.

although the report is blank...

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 12:03 pm
by jay (support)
That probably means you didn't turn on sql logging until today...

Re: Device Usage Report IWS Plugin

PostPosted: Thu Mar 18, 2010 12:21 pm
by kpfriedberg
jay wrote:
That probably means you didn't turn on sql logging until today...


true, but how often does it update? it doesn't poll hourly or something?