Hi,
I’m trying to spin up openhab app on the raspberry 2, and have some troubles reaching port 4304 for connecting to owfs server with my 1-wire devices on it.
Here is what I’m getting from telnet
[quote]pi@raspberrypi:~ $ telnet 127.0.0.1 4304
Trying 127.0.0.1…
telnet: Unable to connect to remote host: Connection refused
[/quote]
Here is my config file
[quote]pi@raspberrypi:~ $ cat /etc/owfs.conf
! server: server = 127.0.0.1:4304
######################### OWFS ##########################
mountpoint = /mnt/1wire
allow_other
####################### OWHTTPD #########################
http: port = 2121
####################### OWFTPD ##########################
ftp: port = 2120
####################### OWSERVER ########################
server: port = 127.0.0.1:4304
[/quote]
Here is openhab starting output
[quote]pi@raspberrypi:/opt/openhab $ sudo ./start.sh
Launching the openHAB runtime…
osgi> 2016-05-30 14:28:13.177 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.1).
2016-05-30 14:28:41.345 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-05-30 14:28:43.079 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-05-30 14:28:47.651 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'db4o.persist’
2016-05-30 14:28:53.265 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'exec.persist’
2016-05-30 14:28:53.425 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'logging.persist’
2016-05-30 14:28:53.746 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist’
2016-05-30 14:28:54.636 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.items’
2016-05-30 14:29:18.871 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap’
2016-05-30 14:29:26.595 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.script’
2016-05-30 14:29:49.421 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-05-30 14:29:55.708 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
2016-05-30 14:30:05.548 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2016-05-30 14:30:06.656 [INFO ] [.p.rrd4j.internal.RRD4jService] - Removing invalid defintion component = null heartbeat = 0 min/max = 0.0/0.0 step = 0 0 archives(s) = [] 0 items(s) = []
2016-05-30 14:30:07.492 [ERROR] [o.o.b.o.i.c.OneWireConnection ] - Couldn’t connect to owserver [IP ‘127.0.0.1’ Port ‘4304’]:
2016-05-30 14:30:07.524 [WARN ] [o.o.b.o.i.c.OneWireConnection ] - Inital connection to owserver failed![/quote]
And this is how I start owfs
[quote]sudo /opt/owfs/bin/owfs -c /etc/owfs.conf --i2c=ALL:ALL --allow_other /mnt/1wire
sudo /opt/owfs/bin/owhttpd -c /etc/owfs.conf --i2c=ALL:ALL --allow_other /mnt/1wire
sudo /opt/owfs/bin/owserver -c /etc/owfs.conf–i2c=ALL:ALL --allow_other /mnt/1wire[/quote]
However, port 2121 (used for owhttpd) works pretty well, so I’m able to see my devices through the browser.
Please advise. Thanks!