Reacticz dashboard: no install, no hassle

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Saturday 14 January 2017 17:29

papoo wrote:a little bug
in local installation, script don't works in a subfolder, only at the root of the web server

Not a bug,
http://www.domoticz.com/forum/viewtopic.php?f=38&t=14941#p112140
Or read the instructions in the read.md on Github
https://github.com/t0mg/reacticz#running-building-testing
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz

ptitneo
Posts: 64
Joined: Tuesday 06 December 2016 23:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby ptitneo » Tuesday 17 January 2017 23:18

Hello everyone,

just a quick update to let you know that I've updated the colors to make the interface more readable. But I've also added theming capabilities, so if you want to return to the original colors you can do it too: there is a tiny theme selector in the Information page (last item on the right in the menu).

If you are feeling inspired, you can now add your own custom color schemes in the Themes.js file (if you do so, please make a pull request on the repository so that everyone can enjoy it).

In other news, "Blinds Inverted" and thermostats are now supported, and the layout is now free (no more vertical compacting) so you can create widget groups more easily.

Cheers,

NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Tuesday 17 January 2017 23:42

Thanks!!!
This user interface update is really a good addition.
It is a clean interface, extremely useful on a tablet, just try it out.
Only a MQTT broker running (I use Mosquitto) besides Domoticz, see first post
All 3 tablets in my house have now Reacticz onboard, each with its own designed interface.
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz

jkimmel
Posts: 163
Joined: Monday 25 November 2013 18:51
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby jkimmel » Friday 20 January 2017 13:04

My interface contains some devices others show up as "offline?"
What makes the diffference?
Rfxcom

ptitneo
Posts: 64
Joined: Tuesday 06 December 2016 23:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby ptitneo » Friday 20 January 2017 16:52

jkimmel wrote:My interface contains some devices others show up as "offline?"
What makes the diffference?

I don't know which devices show and which dont in your case, but if you see Scenes and Groups and not, say, Switches, then that's because Scenes and Groups don't use MQTT (because Domoticz's MQTT bridge doesn't support them so I had to fall back to the JSON API which does much more but lacks all the advantages of MQTT).

So it's probably an issue with your MQTT configuration. Start by double-checking that you have websockets enabled in your MQTT broker (hint: if the port is 1883 then you are not using websockets). If you are using Mosquitto, you can look at the links in Reacticz's readme on github, they explain how to enable websockets, or see for example NietGiftig's configuration in an older post.

jkimmel
Posts: 163
Joined: Monday 25 November 2013 18:51
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby jkimmel » Friday 20 January 2017 18:14

This is my mosquitto.conf

Code: Select all

autosave_interval 1800
persistence_location /tmp/
connection_messages true
include_dir /etc/mosquitto/conf.d
log_timestamp true
listener 1883
listener 2884
protocol websockets
listener 1884
protocol websockets


I'm not sure about the correct location, is it /etc/mosquitto or /etc/mosquitto/conf.d. I tried both.

I always got connected

Code: Select all

MQTT Broker URL: connected!
ws://192.168.1.xxx:1884

Domoticz server URL:
http://192.168.1.xxx:8080


All of my devices are listed.
Is this sufficient?
Rfxcom

ptitneo
Posts: 64
Joined: Tuesday 06 December 2016 23:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby ptitneo » Friday 20 January 2017 18:26

First off, can you confirm that the widgets that are not "Offline" are Scenes and Groups ?

Then I'm sorry I won't be able to help much, I'm really no a mosquitto expert. I just don't understand why you have 2 listeners for websockets, maybe try removing one?

My broker is running on a synology nas but for the Pi it should be as simple as following this tutorial which mentions that the config file can be located in /etc/mosquitto/mosquitto.conf, or in a new file (ex: /etc/mosquitto/conf.d/websocket.conf) - see http://blog.ithasu.org/2016/05/enabling ... mosquitto/

jkimmel
Posts: 163
Joined: Monday 25 November 2013 18:51
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby jkimmel » Friday 20 January 2017 18:43

ptitneo wrote:First off, can you confirm that the widgets that are not "Offline" are Scenes and Groups ?

Yes, I confirm.

I'm going to try with the new file.

Thanks for help!
Rfxcom

NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Friday 20 January 2017 18:54

jkimmel wrote:I'm not sure about the correct location, is it /etc/mosquitto or /etc/mosquitto/conf.d. I tried both.


In /etc/mosquitto/mosquitto.conf add

Code: Select all

include_dir /etc/mosquitto/conf.d

This redirects to all the conf files that are in that dir

In /etc/mosquitto/conf.d/ create a file with the name websockets.conf

Code: Select all

# Standard Listener
listener 1883
protocol mqtt
#allow_anonymous false
#password_file /etc/mosquitto/passwords.txt

# Websockets Listener
listener 1884
#http_dir
#Set the protocol to accept for this listener. Can be mqtt (the default), or websockets.
protocol websockets


I do not know why you have 2 listeners with websockets and no protocol listener mqtt
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz

Snowtiger
Posts: 67
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi
Domoticz version: 3.6708
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby Snowtiger » Friday 20 January 2017 20:59

NietGiftig wrote:I do not know why you have 2 listeners with websockets and no protocol listener mqtt
The 2 listeners with websockets is not a problem, they use different ports - a listener without a protocol defaults to mqtt so he has one running

jkimmel
Posts: 163
Joined: Monday 25 November 2013 18:51
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby jkimmel » Saturday 21 January 2017 16:21

Now I'm using websockets. conf of "nietggiftig" but I don't get further. Possibly I'm missing some prerequisites? Nodejs? Node-Red?
Rfxcom

NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Saturday 21 January 2017 16:35

jkimmel wrote:Possibly I'm missing some prerequisites? Nodejs? Node-Red?

Not necessary.
But you are still a little vague about what is wrong.

Tell precisely step by step what you have done, what you see on the screen and then what you expect to see, or what you miss.
Maybe a screen-shot.?
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz

MikeF
Posts: 110
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi
Domoticz version: V3.5877
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby MikeF » Monday 23 January 2017 1:25

ptitneo wrote:... or you can download the pre-built files from the gh-pages branch of the github repo). Then simply move these files somewhere you can access them. You can serve them with your node.js server as you suggested, but the www folder in domoticz should also work just fine.

I'm clearly missing something :? - I've downloaded these to a subfolder 'reacticz' within domoticz/www, but when I enter

Code: Select all

http://192.168.0.63:8080/reacticz

I just get "Domoticz Offline'.

(I've been running happily for a while now from the public server.)

ptitneo
Posts: 64
Joined: Tuesday 06 December 2016 23:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby ptitneo » Monday 23 January 2017 1:36

Not sure what you're doing wrong here maybe someone who's done the same can help you ?

Also, I realize that I gave you a bad advice with the gh-pages branch thing. You'll need a different build because you won't be running Reacticz from the root of your server, as explained in the note on the readme, sorry about that.

NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Monday 23 January 2017 1:54

MikeF wrote:
ptitneo wrote:.
I'm clearly missing something :? - I've downloaded these to a subfolder 'reacticz' within domoticz/www, but when I enter

Code: Select all

http://192.168.0.63:8080/reacticz

I just get "Domoticz Offline'.

You can only run Reacticz from your domoticz www folder if you have build Reacticz yourself and placed the build dir in the www dir of Domoticz.
see http://www.domoticz.com/forum/viewtopic.php?f=38&t=14941&sid=bd0bd89a08a0f25d554b0fc156d21554#p112140
See for installation notes the git and the beginning of this topic.
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz

jkimmel
Posts: 163
Joined: Monday 25 November 2013 18:51
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

[Solved] Re: Reacticz dashboard: no install, no hassle

Postby jkimmel » Monday 23 January 2017 4:46

NietGiftig wrote:
jkimmel wrote:Possibly I'm missing some prerequisites? Nodejs? Node-Red?

Not necessary.
But you are still a little vague about what is wrong.

Tell precisely step by step what you have done, what you see on the screen and then what you expect to see, or what you miss.
Maybe a screen-shot.?


Used websocket port instead of broker port (Domoticz MQTT config)
Rfxcom

MikeF
Posts: 110
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi
Domoticz version: V3.5877
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby MikeF » Monday 23 January 2017 13:03

ptitneo wrote:Not sure what you're doing wrong here maybe someone who's done the same can help you ?

Also, I realize that I gave you a bad advice with the gh-pages branch thing. You'll need a different build because you won't be running Reacticz from the root of your server, as explained in the note on the readme, sorry about that.

OK, got this running locally by installing nginx on another RPi and copying contents of gh-pages to /var/www/html - easy! :)

ptitneo
Posts: 64
Joined: Tuesday 06 December 2016 23:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby ptitneo » Monday 23 January 2017 14:49

MikeF wrote:OK, got this running locally by installing nginx on another RPi and copying contents of gh-pages to /var/www/html - easy! :)


Easy if you have an extra Pi lying around... The idea with Reacticz was to provide a public server to avoid all this and get updates automatically (especially in the early stages of the project where a lot of things change quickly).

But it seems that a lot of users still want to host it for various reasons so maybe it would be more convenient to also provide a pre-built version for localhost:8080/reacticz.

Snowtiger
Posts: 67
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi
Domoticz version: 3.6708
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby Snowtiger » Monday 23 January 2017 15:10

My Domoticz install has user/password required - Reactiz can not connect to it because of this - how do I specify this on reactiz.t0m.fr?

NietGiftig
Posts: 139
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Postby NietGiftig » Monday 23 January 2017 15:14

ptitneo wrote:But it seems that a lot of users still want to host it for various reasons so maybe it would be more convenient to also provide a pre-built version for localhost:8080/reacticz.

+1 for that.
(But i will keep my fork :D )
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz


Return to “Show your projects”

Who is online

Users browsing this forum: No registered users and 1 guest