Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mqtt_for_digitalstrom [29.01.2018 10:07] – [what I want to add] Pascal Suter | mqtt_for_digitalstrom [29.01.2018 10:08] (current) – [the script] Pascal Suter | ||
---|---|---|---|
Line 26: | Line 26: | ||
The upside, that makes it all worth doing: | The upside, that makes it all worth doing: | ||
- | * NO LAG! | + | * NO LAG! which leads to a high WAF (Wife Approval Factor) of the installation :) |
===== Current Stats of this project ===== | ===== Current Stats of this project ===== | ||
Line 161: | Line 161: | ||
JSONaction=` | JSONaction=` | ||
{ | { | ||
- | 'message':'${type}', | + | "message":"${type}", |
- | 'id':'${id}', | + | "id":"${id}", |
- | 'value':100, | + | "value":100, |
- | 'tag':'${tag}', | + | "tag":"${tag}", |
}` | }` | ||
client.write(JSONaction); | client.write(JSONaction); | ||
Line 181: | Line 181: | ||
JSONaction=` | JSONaction=` | ||
{ | { | ||
- | 'message':'${type}', | + | "message":"${type}", |
- | 'id':'${id}', | + | "id":"${id}", |
- | 'value': | + | "value": |
- | 'tag':'${tag}', | + | "tag":"${tag}", |
}` | }` | ||
client.write(JSONaction); | client.write(JSONaction); |