#########################
## JAVA OPTIONS
## Additional options for the JAVA_OPTS environment variable.
## These will be appended to the execution of the openHAB Java runtime in front$
##
## A couple of independent examples:
## EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0"
## EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/tt$
## EXTRA_JAVA_OPTS="-Djna.library.path=/lib/arm-linux-gnueabihf/ -Duser.timez$
EXTRA_JAVA_OPTS="-Xbootclasspath/a:/etc/openhab2/automation/jython/jython-stand$
EXTRA_JAVA_OPTS="-Xms250m -Xmx350m"
#########################
Looks like that got truncated a bit⊠paste the first line into a post (put 4 spaces in front of it). Also, I do not believe you can have multiple EXTRA_JAVA_OPTS lines, so the second may be wiping out the first. Try putting them all in one, like thisâŠ
Except for this. I forgot⊠a problem has been identified in the order of script loading, and I plan to fix in the OH-core. As a work around, save the OWM script again so that the Items get created, or rename /automation/jsr223/core to /automation/jsr223/000_core, so that these scripts load first. Iâll update the repo so that this stops affecting people, but all the docs will need to be updated too .
This looks like you may not have the Thing created and configured. Iâll add a check to make sure the Thing exists, and then log and break if it is not there. Do you have a âLocal Forecast and Weatherâ Thing?
2019-02-04 19:48:30.367 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'weather.things'
==> /var/log/openhab2/events.log <==
2019-02-04 19:48:30.445 [hingStatusInfoChangedEvent] - 'openweathermap:weather-and-forecast:api:local' changed from ONLINE to UNKNOWN
==> /var/log/openhab2/openhab.log <==
2019-02-04 19:48:30.491 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.thingUpdated()' on 'org.eclipse.smarthome.binding.openweathermap.internal.handler.OpenWeatherMapWeatherAndForecastHandler@36f5bac7': Duplicate channels openweathermap:weather-and-forecast:api:local:forecastHours03#time-stamp
java.lang.IllegalArgumentException: Duplicate channels openweathermap:weather-and-forecast:api:local:forecastHours03#time-stamp
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:159) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:151) ~[?:?]
at org.eclipse.smarthome.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:147) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.builder.ThingBuilder.withChannel(ThingBuilder.java:74) ~[?:?]
at org.eclipse.smarthome.binding.openweathermap.internal.handler.OpenWeatherMapWeatherAndForecastHandler.initialize(OpenWeatherMapWeatherAndForecastHandler.java:153) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.thingUpdated(BaseThingHandler.java:208) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
==> /var/log/openhab2/events.log <==
2019-02-04 19:48:30.520 [me.event.ThingUpdatedEvent] - Thing 'openweathermap:weather-and-forecast:api:local' has been updated.
==> /var/log/openhab2/openhab.log <==
2019-02-04 19:48:44.603 [WARN ] [mon.registry.AbstractManagedProvider] - Could not update element with key openweathermap:weather-and-forecast:api:local in ManagedThingProvider, because it does not exists.
Iâm not sure what youâre saying . The error is ugly⊠what change did you make to the Thing file? Maybe a bug with unmanaged Things? Remove the file and create it Paper UI?
Without the forecastDays set to 0, the free API key will not work. Without forecastHours set to 120, the script wonât work.
now this. just need to get them on mi sitemap. and the scale :
I removed the thing on paperui and recreated it.
I also changed the the days to 0 and hours to 120
2019-02-04 19:55:53.780 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '117.5 °' of item localCurrentWindDirection with format 'SCALE(windDirection.scale):%s [%.0f %unit%': Format specifier '%.0f'```
This Item did not come from the script. But the name looks familiar⊠like SimpleMode was enabled and the name was pulled from the binding, but that wouldnât have added the transform part and the incorrect formatting. Did you create this one?
For sitemap, you can quickly just addâŠ
Group item=gOpenWeatherMap
Not sure what you mean by scale. You should have copied the windDirection.scale file to your transform directory. The script will install the Scale transformation service for you, if needed,
They all come in at the same time, so something is likely not right yet. Someone reported an issue in GH with basically the same problem. I think it is that there were setup issues, but the removeOwmItems function wasnât used to remove the Items so that the Links could be created. If you look at the Thing in Paper UI, click Show More, then scroll all the way to the bottom. Do you see Links for all the Channels?
Hearing that makes it all worth it! You are very welcome!
Just remove the comment from the beginning of the line and save the file. When the Items are removed, there will be a lot of debug messages, and then more as they are added back in. When it is done, put the comment back and save.
I want to have a item that states the total mm of rain for the day. week and also for the month. and then one for the total for the year.
the day one has to reset every 24 hrs.
the month one every end of the month.
and the year one every 12 month (yearly)