Skip to content

Commit

Permalink
updated mqtt broker to lifo
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Sep 12, 2021
1 parent 665826f commit ba6c605
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion containers/zigbee2mqtt/data/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ homeassistant: true
permit_join: false
mqtt:
base_topic: lzig
server: 'mqtt://10.0.0.42'
server: 'mqtt://localhost'
serial:
port: /dev/ttyUSB1
advanced:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ services:
zigAssLifo:
image: carldebilly/zigbee2mqttassistant
environment:
- Z2MA_SETTINGS__MQTTSERVER=10.0.0.42
- Z2MA_SETTINGS__MQTTSERVER=10.0.0.31
- Z2MA_SETTINGS__BASETOPIC=lzig
- TZ=Europe/Berlin
ports:
Expand Down
2 changes: 1 addition & 1 deletion hosts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
10.0.0.42 mqtt_broquer
10.0.0.31 mqtt_broquer
10.0.0.5 cutain_sun.lifx
10.0.0.3 salon
10.0.0.13 strong.shelly
Expand Down
2 changes: 1 addition & 1 deletion js/camera_lapse/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"camera_client",
Expand Down
2 changes: 1 addition & 1 deletion js/graphql/resolvers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function defined(obj){
return (typeof(obj) != "undefined")
}

const client = connect('mqtt://10.0.0.42:1883', {
const client = connect('mqtt://mqtt_broquer:1883', {
reconnectPeriod: 1000
});

Expand Down
4 changes: 2 additions & 2 deletions js/lifx/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"lifx_client",
Expand All @@ -15,7 +15,7 @@
"sim":"lifx/sim_tiles",
"curtain sun":{
"mac": "D0:73:D5:40:98:88",
"ip": "10.0.0.5"
"ip": "cutain_sun.lifx"
}
},
"log":{
Expand Down
2 changes: 1 addition & 1 deletion js/telegraf/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"telegraf_bots_client",
Expand Down
4 changes: 2 additions & 2 deletions js/watch_bots/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"watch_bots",
Expand Down Expand Up @@ -64,7 +64,7 @@
"nrf":1
},
"log":{
"logfile":"/home/pi/share/watch_bots (date).log",
"logfile":"/home/pi/share/watch_bots(date).log",
"level":"info"
}
}
2 changes: 1 addition & 1 deletion js/watch_bots/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The idea is to configure as many sensors with as less declaration redunduncy as
```json
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"watch_bots",
Expand Down
2 changes: 1 addition & 1 deletion py/bathroom/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"localhost",
"port":1883,
"keepalive":60,
"client_id":"bath_client",
Expand Down
2 changes: 1 addition & 1 deletion py/heating/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"heat_client",
Expand Down
2 changes: 1 addition & 1 deletion py/heating/config_WassDell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"heat_client",
Expand Down
Empty file modified py/heating/heat.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion py/home_status/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"home_status_client",
Expand Down
Empty file modified py/home_status/home.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion py/hover/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"hover_control",
Expand Down
2 changes: 1 addition & 1 deletion py/hover/config_WassDell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"hover_control",
Expand Down
2 changes: 1 addition & 1 deletion py/hover/config_mano.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"hover_control",
Expand Down
4 changes: 2 additions & 2 deletions py/hue/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"bridges":{
"LivingRoom":"10.0.0.38",
"LivingRoom":"hue",
"username_config":"/home/pi/.python_hue"
},
"mqtt":{
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"hue_client",
Expand Down
4 changes: 2 additions & 2 deletions py/hue/config_WassDell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bridges":{
"LivingRoom":"10.0.0.38"
"LivingRoom":"hue"
},
"rules":{
"wakeup":{
Expand All @@ -10,7 +10,7 @@
}
},
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"hue_client",
Expand Down
2 changes: 1 addition & 1 deletion py/leds_panel/config_WassDell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"leds_panel",
Expand Down
2 changes: 1 addition & 1 deletion py/nrf_mesh/config_WassDell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"last_seen":true,
"retain":true,
"qos":1,
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"nrf_mesh",
Expand Down
2 changes: 1 addition & 1 deletion py/thread_tags/config_metal.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mqtt":{
"host":"10.0.0.42",
"host":"10.0.0.31",
"port":1883,
"keepalive":60,
"client_id":"thread_tags",
Expand Down
2 changes: 1 addition & 1 deletion web/bed_heating/src/mqtt_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var client,textBox;

var mqtt_host = "10.0.0.42";
var mqtt_host = "mqtt_broquer";
var mqtt_port = 1884;

var btn_on = document.getElementById("btn_on");
Expand Down
2 changes: 1 addition & 1 deletion web/heating/src/mqtt_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var client,textBox;

var mqtt_host = "10.0.0.42";
var mqtt_host = "mqtt_broquer";
var mqtt_port = 1884;

var btn_cosy = document.getElementById("btn_cosy");
Expand Down
2 changes: 1 addition & 1 deletion web/leds_panel/src/mqtt_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var client,textBox;

var mqtt_host = "10.0.0.42";
var mqtt_host = "mqtt_broquer";
var mqtt_port = 1884;
var durationEdit = document.getElementById("inDuration");
var colorPicker = document.getElementById("inColor");
Expand Down
2 changes: 1 addition & 1 deletion web/mesh_view/src/mqtt_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function onMqttSendRequest(e){

function init(){
// Create a client instance
client = new Paho.MQTT.Client("10.0.0.42", Number(mqtt_port), "clientId");
client = new Paho.MQTT.Client("10.0.0.31", Number(mqtt_port), "clientId");
// set callback handlers
client.onConnectionLost = onConnectionLost;
client.onMessageArrived = onMessageArrived;
Expand Down
2 changes: 1 addition & 1 deletion web/zigbee_graph_view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- ---------------------------- Control buttons --------------------------------------------- -->

<div class="btn-group" role="group" aria-label="Basic example" style="margin:10px" >
<input type="text" id="host_ip" value="10.0.0.42" placeholder="host...">
<input type="text" id="host_ip" value="10.0.0.31" placeholder="host...">
<input type="text" id="host_port" value="1884" placeholder="port...">
<button id="btn_engine_dot" class="btn btn-danger" type="button">dot</button>
<button id="btn_engine_circo" class="btn btn-danger" type="button">circo</button>
Expand Down
2 changes: 1 addition & 1 deletion zigbee/py_to_dot/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"subscribe" :false,
"publish" :true,
"base_topic" : "nrf",
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"nrf_mesh",
Expand Down
2 changes: 1 addition & 1 deletion zigbee/py_to_dot/config_WassDell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"subscribe" :true,
"publish" :true,
"base_topic" : "nrf",
"host":"10.0.0.42",
"host":"mqtt_broquer",
"port":1883,
"keepalive":60,
"client_id":"nrf_mesh",
Expand Down

0 comments on commit ba6c605

Please sign in to comment.