A few minutes ago, running without stokerlog also going:
[]http://hostname/stoker.json:[/]
{"stoker":{"sensors":[{"id":"260000125918C830","name":"Food3","al":0,"ta":300,"th":32,"tl":32,"tc":32.9,"blower":null},
{"id":"DD000012591D2830","name":"Food1","al":0,"ta":300,"th":32,"tl":32,"tc":33.4,"blower":null},
{"id":"38000012592A9930","name":"Fire","al":0,"ta":27.5,"th":32,"tl":32,"tc":34,"blower":"0E00000026A53605"}],
"blowers":[{"id":"0E00000026A53605","name":"Blower","on":0}]}}
(Meanwhile the IP address of the wireless adapter and stoker were swapped from yesterday, so I had to edit stokerweb.properties in both locations since I am not sure which one is actually being used.)
Now when I look at catalina.out I see hundreds of lines of output since reloading stokerweb at 16:53 today. The output starts on line 201977 and continues to line 203752. Much of the early part of that contains messages about thread that are left open that could lead to severe leaks. Did I read something in this BBS thread about that being part of the design so you can dynamically detach and attach the stoker. Those messages continue until line 202352.
The next set of messages have to do with config'ing the servlet. log4j was unable to open the logfile because I forgot to chown the file to tomcat7.
Then a lot of noise because I thought the stoker was at one IP while it had swapped with the wireless adapter (I thought wireless to enet adapters were supposed to give up their IP to the connected equipment. Is that called bridge mode?).
Line 203220 it tries to connect to the correct IP and gives more promising output. It successfully gets the probe and fan IDs. Then it gets to line 203267 and logs:
16:55:09,466 ERROR StokerWebConfiguration:303 - Stokerweb config file [/usr/local/share/stokerweb/CookerConfig.json] was not found
java.io.FileNotFoundException: /usr/local/share/stokerweb/CookerConfig.json (No such file or directory)
Do I need to create that file? Or just make /usr/local/share/stokerlog owned by tomcat7
Next I get log output of the connection to yahoo for weather. It runs from line 203323-203441 with what look like a lot of successful messages passed back and forth with yahoo. Then it throws a couple of 404's:
<< "<div id="ygma"><a href="http://us.rd.yahoo.com/404/*http://www.yahoo.com"><img src=http://l.yimg.com/a/i/yahoo.gif width=147 height=31 border=0 alt="Yahoo!"></a><div><a href="http://us.rd.yahoo.com/404/*http://www.yahoo.com">Yahoo!</a> - <a href="http://us.rd.yahoo.com/404/*http://help.yahoo.com">Help</a></div></div><div id="bd"><p>The requested URL was not found on this server.</p>[\n]"
16:55:10,168 DEBUG wire:63 - << "<p>Please check the URL for proper spelling and capitalization. If[\n]"
16:55:10,168 DEBUG wire:63 - << "you're having trouble locating a destination on Yahoo!, try visiting the[\n]"
16:55:10,168 DEBUG wire:63 - << "<strong><a[\n]"
16:55:10,168 DEBUG wire:63 - << "href="http://us.rd.yahoo.com/404/*http://www.yahoo.com">Yahoo! home[\n]"
16:55:10,169 DEBUG wire:63 - << "page</a></strong> or look through a list of <strong><a[\n]"
16:55:10,169 DEBUG wire:63 - << "href="http://us.rd.yahoo.com/404/*http://docs.yahoo.com/docs/family/more/">Yahoo!'s[\n]"
16:55:10,169 DEBUG wire:63 - << "online services</a></strong>. Also, you may find what you're looking for[\n]"
16:55:10,169 DEBUG wire:63 - << "if you try searching below.</p>[\n]"
then a reported failure to fetch weather. Then repeat most of the whole weather thing.
I never do get a display of anything except the logo and some of the buttons, including [sign-in] which has seemed to work from the 1st time I got the logo to display.
As I am coming to know what to look for, I found tini login and probe reporting in yesterday's log too. After I finished most of the above message I closed and then reopened catalina.out and found reports of the fan waking up stokerweb just a few minutes ago. So it looks like stoker and stokerweb may actually be talking but no output of graphs or gauges is getting to the firefox screen. Could I be missing some sort of required plugin?
EDIT:
I just did a chown tomcat7:tomcat7 to /usr/local/share/stokerweb and touched /usr/local/share/stokerweb/CookerConfig.json and also did a chown to it. Now I get a different error in catalina.out:
18:07:50,394 ERROR StokerWebConfiguration:317 - IO Exception reading stokerweb config file [/usr/local/share/stokerweb/CookerConfig.json]
java.io.EOFException: No content to map to Object due to end of input
at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775)
This is right after he tells me the IDs of all the probes and the format of the data.
Still no output to [pre]http://localhost:8080/stokerweb[/pre] except logo page.
What is the proper way to mark a url so it does not show as a link?
Stew