No data populated in my sitemap

Hi!

I’m running on Mac (El Capitan 10.11.1), Java build 1.8.0_45-b14, maven 3.1.1 and is quite new to Openhab so please bare with me :smile:

I’ve started out with downloading prebuilt openhab1.8 and successfully managed to create a sitemap that displays
values from my Netatmo weather station.

I then decided to try to compile Openhab using the Eclipse tutorial, I copied the netatmo.items from my original installation to:
/Users/jangu/git/openhab/distribution/openhabhome/configurations/items (master) (3 entries, 0 hidden)
$ ll
total 40
-rw-r–r-- 1 jangu staff 220 13 Dec 17:52 README
-rw-r–r-- 1 jangu staff 6334 13 Dec 17:52 demo.items
-rw-r–r-- 1 jangu staff 6137 18 Dec 20:31 netatmo.items

and also the gg.sitemap to:
$ cd sitemaps/
/Users/jangu/git/openhab/distribution/openhabhome/configurations/sitemaps (master) (3 entries, 0 hidden)
$ ll
total 24
-rw-r–r-- 1 jangu staff 233 13 Dec 17:52 README
-rw-r–r-- 1 jangu staff 2737 13 Dec 17:52 demo.sitemap
-rw-r–r-- 1 jangu staff 3233 18 Dec 20:31 gg.sitemap

I’ve also copied the openhab.cfg to:
/Users/jangu/git/openhab/distribution/openhabhome/configurations (master) (12 entries, 0 hidden)
$ ll
total 352
drwxr-xr-x 5 jangu staff 170 18 Dec 20:31 items
lrwxr-xr-x 1 jangu staff 17 19 Dec 11:09 logback.xml -> logback_debug.xml
-rw-r–r-- 1 jangu staff 2311 13 Dec 17:52 logback.xml.orig
-rw-r–r-- 1 jangu staff 2583 13 Dec 17:52 logback_debug.xml
-rw-r–r-- 1 jangu staff 79665 13 Dec 17:52 old
-rw-r–r-- 1 jangu staff 79778 18 Dec 20:44 openhab.cfg
drwxr-xr-x 7 jangu staff 238 13 Dec 17:52 persistence
drwxr-xr-x 4 jangu staff 136 13 Dec 17:52 rules
drwxr-xr-x 5 jangu staff 170 13 Dec 17:52 scripts
drwxr-xr-x 5 jangu staff 170 19 Dec 12:36 sitemaps
drwxr-xr-x 15 jangu staff 510 13 Dec 17:52 transform
-rw-r–r-- 1 jangu staff 24 13 Dec 17:52 users.cfg

When I start the OpenHab runtime from Eclipse I see that it successully fetches data from my Netatmo weather station:

17:06:10.155 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Min_CO2_Date state updated to 2015-12-19T06:58:20
17:06:10.156 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Min_Noise state updated to 35
17:06:10.156 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Humidity state updated to 68
17:06:10.157 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_wifi state updated to 0
17:06:10.157 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Temperature state updated to 11.1
17:06:10.158 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Min_CO2 state updated to 429
17:06:10.159 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_Max_CO2 state updated to 589
17:06:10.159 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_altitude state updated to 150
17:06:10.160 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_longitude state updated to 12.474487
17:06:10.160 [INFO ] [runtime.busevents :26 ] - Netatmo_Outdoor_Temperature state updated to 8.8
17:06:10.161 [INFO ] [runtime.busevents :26 ] - Netatmo_Indoor_latitude state updated to 59.525513
17:06:10.161 [INFO ] [runtime.busevents :26 ] - Netatmo_Outdoor_Max_Hum_Date state updated to 2015-12-19T16:32:24

However, opening my sitemap using http://localhost:8080/openhab.app?sitemap=gg#_Home shows my sitemap but no populated values. The demo sitemap has populated values.

If I start a debug configuration from Eclipse and se a breakpoint in execute method in the NetatmoBinding class I see that the debugger stops here once after start of server, but then never more. Shouldn’t execute be called periodically?

What might be the root cause of my sitemap not showing any values?

I would love to be able to run Openhab from the debugger to learn more on how an addon as Netatmo is implemented and maybe later on help out in adding more functionality.

BR,

/Janne

Hi!

After some try and error, data is now visible in my sitemap. :smile:

BR,

/Janne

Can you share what you changed to get it working? I am also seeing no data populated…