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.

Moderator: leecollings

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

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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 ... 41#p112140
Or read the instructions in the read.md on Github
https://github.com/t0mg/reacticz#runnin ... ng-testing
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

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: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by jkimmel »

My interface contains some devices others show up as "offline?"
What makes the diffference?
Rfxcom
Raspi 4
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

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: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by jkimmel »

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
Raspi 4
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

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: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by jkimmel »

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
Raspi 4
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by Snowtiger »

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: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by jkimmel »

Now I'm using websockets. conf of "nietggiftig" but I don't get further. Possibly I'm missing some prerequisites? Nodejs? Node-Red?
Rfxcom
Raspi 4
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by MikeF »

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: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

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: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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 ... 54#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: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

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

Post by jkimmel »

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
Raspi 4
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by MikeF »

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: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

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: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by Snowtiger »

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: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by NietGiftig »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest