ni-c / heimcontrol.js

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

Newbie question.. #35

Closed ewidance closed 10 years ago

ewidance commented 10 years ago

Hi,

I just installed heimcontrol. However i can't get it to work. i started the app and when i point my browser to my raspberry:8080, i got a brunch of errors regarding Jade.

Error: /home/pi/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')

It seems the #{theme} is not properly interpreted. I there somethig to configure in config/development.json regarding mongodb? An other config to do?

Mongo proprely connects : pi@raspberrypi ~/heimcontrol.js $ opt/mongo/bin/mongo MongoDB shell version: 2.1.1 connecting to: test

Thaks for pointing me the right direction... JPC

JorisM commented 10 years ago

I think the newest version of jade is very strict about whitespace and there is a problem with doctype 5 in layout.jade that needs to be fixed for the newest version of jade. For a quickfix, I just changed the jade version in packages.json to "jade": "= 0.28.1", (without the >) and ran npm install. There might be newer versions that 0.28.1 compatible with heimcontroljs, but I haven't tried it out yet.