Global chache Map file?

Hi all

Im a very new to this openhab2 just installed the system all good. installed some bindings.

Now im working og the global chache and need to make a map file with some ir codes
but I really dont know where to find the file/put the file. in the terminal ssh can someone guide me please ?

:grinning:

-Allan

welcome !

You want to use the Map transformation service?

http://docs.openhab.org/addons/transformations/map/readme.html

If yes, you should store your *.map file in the $OPENHAB_CONF/transform folder
In a Linux apt-get based installation: /etc/openhab2/transform

More on folder locations here: http://docs.openhab.org/installation/linux.html#file-locations

Thank you Dim

I now have a file called itach.map in this directory made with the vi command.

the transform binding is also added.

i have set the map file in the global cache binding setting to “itach.map” get error 404 not found.

What are you doing that causes the 404 not found? Do you see any errors in the openhab.log file? Can you share the contents of your map file?

If you installed the globalcache binding using PaperUI or addons.cfg, the map transform service should’ve been loaded automatically.

Well the error was there before I even found and made the file I just thought it was because it was missing.

I did use the paper ui but the transform in the transformations was not installed I just did a restart but still the error where do I find the log file ?

See here. It explains where the files are located and how to display their contents.

It also might help if you post the relevant sections of your items, sitemap, and map files.

the log is already pretty big tried to upload the file but the .txt format or the rft is not supported :confused:.

and paste I could not to many links and paste was to big.

thanks for your patience :grinning:

got this from the file:

2017-07-22 09:34:33.378 [INFO ] [ulation.internal.HueEmulationServlet] - Started Hue Emulation service at /api
2017-07-22 09:34:33.669 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-07-22 09:34:34.983 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-07-22 09:34:35.116 [INFO ] [imperihome.internal.ImperiHomeConfig] - Configuration updated
2017-07-22 09:34:35.263 [INFO ] [rihome.internal.ImperiHomeApiServlet] - Started ImperiHome integration service at /imperihome/iss
2017-07-22 09:34:35.983 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map’: Error restarting bundles
2017-07-22 09:57:06.563 [INFO ] [GlobalCacheHandler$ConnectionManager] - Got a connection to command port for thing itachIR:000C1E022861 at 192.168.2.147
2017-07-22 09:59:23.820 [ERROR] [obalcache.handler.GlobalCacheHandler] - Failed to transform fdhfdghfdh for thing itachIR:000C1E022861 using map file ‘Itach’, exception=An error occurred while opening file.
2017-07-22 09:59:29.231 [ERROR] [obalcache.handler.GlobalCacheHandler] - Failed to transform 0000 006B 0000 0026 0156 00AA 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 05E7 0156 0055 0015 0E38 0156 0055 0015 0303 for thing itachIR:000C1E022861 using map file ‘Itach’, exception=An error occurred while opening file.

content form the map file:

“# Samsung HL-S Series DLP TV
Power_on_speaker = 0000 006B 0000 0026 0156 00AA 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0015 0016 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 0040 0015 0040 0015 0040 0016 05E7 0156 0055 0015 0E38 0156 0055 0015 0303”

using map file 'Itach', 

Does the name of the file in the globalcache thing configuration match the name of the file in the transform directory? If the file is named itach.map, that’s what you should enter in the config.

yes thank you I have done this tried both thought that It maybe knew the .map but now it is typed as it is “itach.map”

I found out this now:

my itach have 3 channels 1 & 2 it is showing error 404 when I hit the link button but 3. there is no error it says linked and unlinked. and I could fire the code and turned on the speaker now the 1 and 2 seems something wrong ?

Do you see anything in the log file when you send a command to channel 1 or 2?

Not Really because they seem to work now I can fire the commas and the channel led on the global cache is turn on while sending command.

And this error I keep getting is on every thing device every time I open an item/device setup.
so maybe I just have to ignore this.