ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

html-page not rendered properly #38

Closed meeja closed 10 years ago

meeja commented 10 years ago

I just installed the heimcontrol on my raspberryPi and after hours of building I tried to start the application in Browser. In my case: http://192.168.0.111:8080

But all I see is the following Error: Error: /etc/init.d/heimcontrol.js/views/layout.jade:5 3| head 4| title heimcontrol.js | #{title} > 5| link(rel='stylesheet', href='#{theme}') 6| link(rel='stylesheet', href='/css/bootstrap-responsive.min.css') 7| link(rel='stylesheet', href='/css/font-awesome.min.css') 8| link(rel='stylesheet', href='/css/heimcontrol.css') unexpected text at Object.Lexer.fail (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:783:11) at Object.Lexer.next (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:841:15) at Object.Lexer.lookahead (/etc/init.d/heimcontrol.js/node_modules/jade/lib/lexer.js:111:46) at Parser.lookahead (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:109:23) at Parser.peek (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:86:17) at Parser.tag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:692:22) at Parser.parseTag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:678:17) at Parser.parseExpr (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:197:21) at Parser.block (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:644:25) at Parser.tag (/etc/init.d/heimcontrol.js/node_modules/jade/lib/parser.js:763:26)

Can you give me a hint what is going wrong there?

ni-c commented 10 years ago

There is an issue with the new version 1.0.0 of the jade module. I have changed the version in the package.json to 0.35.0. If you checkout the changes, delete the node_modules directory and run npm install again it should work.

meeja commented 10 years ago

that fixes the issue, but only after restarting the rasp. Thanks a lot