problem: Sitemap 'demo' could not be found

831 views
Skip to first unread message

Scott K

unread,
May 20, 2014, 12:49:04 AM5/20/14
to ope...@googlegroups.com
Hello,
I'm now to OpenHab.  I'm trying to get the demo to run on a Raspberry Pi.  After copying the demo files into the run time folder and running it, I get this error:

http://192.168.1.33:8080/openhab.app?sitemap=demo

"Sitemap 'demo' could not be found

org.openhab.ui.webapp.render.RenderException: Sitemap 'demo' could not be found"

I've made sure that there is a "demo.sitemap" in the </configurations/sitemaps> folder.  I've also made sure there is a "openhab.cfg" in the </configurations> folder.  File names seem correct.

Any ideas on what else might be causing this error?

Scott K

unread,
May 20, 2014, 1:30:08 AM5/20/14
to ope...@googlegroups.com
Ok, after some more troubleshooting on a windows machine, I've narrowed the problem down to my sitemap file.  I added this to the sitemap:


sitemap demo label="Main Menu"
{
    Frame {
        List item="itm_garage_temp" label="Garage Temperaturee" icon="temperature"
        List item="itm_garage_door_status" label="Garage Door Status" icon="rollershutter-20"
    }


    Frame {
        Group [item="<itemname>"] [label="<labelname>"] [icon="<iconname>"]
        Group item=gFF label="First Floor" icon="firstfloor"
        Group item=gGF label="Ground Floor" icon="groundfloor"
        Group item=gC label="Cellar" icon="cellar"   
        Group item=Outdoor icon="garden"
    }


 The two items are accounted for in the "demo.items" file in </configurations/items>...


Number itm_garage_temp "Garage Temperature [%.1f F]" <temperature> {mqtt="<[mymosquitto:tpc_garage_temp:state:default"}

Contact itm_garage_door_status "Garage Door [MAP(en.map):%s]" {mqtt="<[mymosquitto:tpc_garage_door_status:state:ON]"}


And in the openhab.cfg file, I added items for the MQTT broker:

mqtt:mymosquitto.url=tcp://localhost:1883
mqtt:mymosquitto.user=administrator
mqtt:mymosquitto.pwd=mysecret
mqtt:mymosquitto.qos=0
mqtt:mymosquitto.retain=false
mqtt:mymosquitto.async=true
 

I didn't think anything I did would've made the demo.sitemap issue.  But I'm pretty ignorant of OpenHab, so any ideas would be appreciated.

Reply all
Reply to author
Forward
0 new messages