Overview of our heat pump - notice when I accidentally turned DHW off! ;)
Other stuff like temperatures, etc. even easier - can anyone spot when we actually moved in? ;)
If anyone is interested, shout out and I'll try and tidy the code and put it in GitHub or something.
Cheers,
interesting indeed. Please do go ahead, clean up your sources and publish.
It might be great together with on-line InfluxDB feeder https://github.com/dusanmsk/loxone-grafana pushing all made by MSK from Czech loxone forum Vodníci.
On topic with graphs, I hope it won't be taken as hijacking your thread, I wanted to mention also https://github.com/eik3/loxgraph (live demo here).
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/1f16fef7-9229-4bff-9f20-dbade16aea7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How do I track usage of the digital outputs like when is DO activated, and how long?
Also, how do I get the data from Loxone into my InfluxDB? I noticed a dockerfile and some Perl scripts.
Just run the loxone_stats_influx_import.pl once for the initial import and then start the docker container?
Robin meant Virtual State, not Virtual Output (I also tend to mix these up) - that's generic output which supports statistics.
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/e359fe7b-174c-45ab-a9c3-bdb9c07bdf5f%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/5a1ec4f5-1249-4610-9ee0-d3f60cc446e3%40googlegroups.com.
On Nov 22, 2018, at 12:33 AM, 'Jan De Bock' via Loxone English <loxone-...@googlegroups.com> wrote:I am interested to move to postgress time series database as well
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/A9EB9DF4-468A-4734-A5BA-020BFEDEA27E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/6840ae2a-eea6-4a58-bab2-c4629e426bad%40googlegroups.com.
sudo apt-get install libfile-slurp-perl -y
sudo apt-get install libfile-touch-perl -y
sudo apt-get install libjson-perl -y
sudo apt-get install libhttp-tiny-perl -y
From: Andy Hummel
Sent: 26 December 2018 00:22
To: Loxone English
Subject: Re: Loxone + InfluxDB + Grafana is nice :)
Hey Jan,
Sorry to bother you, but I tried your python script, but currently I get an error message if I´d like to run the script.
root@RaspberryHummel:/opt# sudo python UDP.py
Traceback (most recent call last):
File "UDP.py", line 5, in <module>
from influxdb import InfluxDBClient
ImportError: No module named influxdb
Sorry, but since I'm new to try this it is maybe a stupid question.
Any Ideas
Thanx
Andy
Am Donnerstag, 22. November 2018 09:33:51 UTC+1 schrieb Jan De Bock:
Thanks all for sharing the info here.
Let me further document how I work with Loxone, Influx and grafana (and python)
1) I have setup influx (very easy to do, just follow instructions of influx db)
2) created a python script which (see in attach)
a) listens to an UDP port
b) decompose the message into structured fields (timestamp, data point, attributes)
c) insert the data into influx DB (the config parameters need to match the ones you used in setup:port, ip address, db name, user, password)
3) created a Logger in Loxone which is very simple as per below, you can use a local address, as you ran the python script locally. The ip address needs to be the one frmom the system where you run the python script, the port number shold be the one you listen on in your python script.
4) for each field you want to monitor in Loxone you add now the UDP logger as per below
You need to name the fields carefully: first word will become the category in infux, all the rest of the field name will become the "room" in influx
Important: the logger is taking the description as name in case it is present, otherwise it takes the field name. So if you want to keep you current field names, you can use the description to change the name according to the logic attribute room.
The time interval is somethign you need to play with. The higher you take it the less impact on your system performance, but the less accurate data in influx. I have not seen any issues with performance till now.
5) play with grafana to visualize your statistics. Is a relatively easy tool to use. Some examples below:
Visualizing sunboiler, buffer, outside temperature and a few others, together with weather condition, outdoor lux of sunlight, solar power (coming from wunderground) and gas consumption.
For a given room, visualize actual temp, target temp, outside temp and if heating is on or off.
or a partial overview of our house:
or the daily consumption of gas as Andras was looking for, and water and electricity
Hope this helps.
I am interested to move to postgress time series database as well, because it give me a few more possibiities, but for now, influx is doing already many good things. I stopped all stats on loxone, so reducing risk of SD card issues, as it is barely used now.
On Saturday, March 24, 2018 at 8:51:52 PM UTC+1, Rob_in wrote:
Hi all,
Just wanted to thank Andrew for bringing up Grafana in the DIY 1-Wire stuff (CO2, UDP interface) thread.
Had a quick play around with it this arvo and very quickly one can get some really nice graphs. FWIW, I wrote a Perl script to read the raw Loxone stats files (which I archive off every hour) and pump into an InfluxDB instance. It's impressively fast - around 30 stats for the last 3 months imported in under 10 seconds on my 6 year old laptop! From there, connecting Grafana is super easy. If one had a dedicated PC lying around (I did this on a laptop so can't do this right now) it might be best to get a load of Virtual Outputs from Loxone speaking directly to InfluxDB and turn of Loxone stats altogether. Well... depending on your point of view ;) One advantage of course would be if you can update InfluxDB quickly a nice 'real time' Dashboard could be created.
I already like Grafana a lot. For example, easy to create this stacked graph of daily power consumption with outside temperature overlaid (big impact on heating of course):
Overview of our heat pump - notice when I accidentally turned DHW off! ;)
Other stuff like temperatures, etc. even easier - can anyone spot when we actually moved in? ;)
If anyone is interested, shout out and I'll try and tidy the code and put it in GitHub or something.
Cheers,
Robin
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/8f84c9bb-8052-4599-99c2-b6788d6dee74%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/b6d9f90e-d516-4ae8-884f-a53ba85cb178%40googlegroups.com.
.loxone_stats_influx
in your home dir and link/copy into the config
folder for the Node.js app.loxone_stats_influx_import.pl - how ? locally on Windows machine or Linux?
2.2 Setup loxone-ws-influx
Node.js app and run continuously. - do i need some docker to run it?
3. Im no familiar with this so maybe a silly question - does this solution have something to do with NodeRed or its completely out of picture?
4. Does it work in a way that "manual" copy stats from Loxone wont be needed and it will log stats locally on Loxone and into InfluxDB / Grafana as well?
Thanks
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/010fe3cf-5de1-4468-a076-d30039c6b4f5%40googlegroups.com.
Am I right so far? Ive got as far as this but not sure where to go from here, any pointers would be helpful.
2019-01-17T07:30:07.480Z INFO : Loxone authorized
On Sunday, 8 April 2018 23:21:03 UTC+2, Maxim Van Gelder wrote:How do I track usage of the digital outputs like when is DO activated, and how long?Just turn on statistics. There's no 'average over 5 minutes' or anything like that for digital stats. It just writes 1s and 0s. You can graph these to see when your stuff is active or not. If there is no 'statistics' option on the object you want to graph connect it to a Virtual Output and generate stats for that.Also, how do I get the data from Loxone into my InfluxDB? I noticed a dockerfile and some Perl scripts.Just run the loxone_stats_influx_import.pl once for the initial import and then start the docker container?I updated the https://github.com/raintonr/loxone-stats-influx readme file. Should be a little clearer now.Cheers,Robin
[Unit]Description=Loxone logAfter=network.target
[Service]ExecStartPre=/home/pi/loxone-stats-influx/loxone-ws-influx/ExecStart=/home/pi/n/bin npm start#Restart=alwaysUser=rootGroup=root
[Install]#WantedBy=multi-user.target
pi@raspberrypi:~ $ sudo systemctl daemon-reloadpi@raspberrypi:~ $ sudo systemctl start loxone_logpi@raspberrypi:~ $ sudo systemctl status loxone_log● loxone_log.service - Loxone log Loaded: loaded (/etc/systemd/system/loxone_log.service; static; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2019-01-22 13:32:04 GMT; 2s ago Process: 4406 ExecStart=/home/pi/n/bin npm start (code=exited, status=203/EXEC) Main PID: 4406 (code=exited, status=203/EXEC)
Jan 22 13:32:04 raspberrypi systemd[1]: Started Loxone log.Jan 22 13:32:04 raspberrypi systemd[1]: loxone_log.service: Main process exited, code=exited, status=203/EXECJan 22 13:32:04 raspberrypi systemd[1]: loxone_log.service: Unit entered failed state.Jan 22 13:32:04 raspberrypi systemd[1]: loxone_log.service: Failed with result 'exit-code'.
pi@raspberrypi:~/loxone-stats-influx/loxone-ws-influx $ npm start
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/6435b304-83db-48ac-9470-20c90387a07c%40googlegroups.com.
Thanks all for sharing the info here.Let me further document how I work with Loxone, Influx and grafana (and python)1) I have setup influx (very easy to do, just follow instructions of influx db)2) created a python script which (see in attach)a) listens to an UDP portb) decompose the message into structured fields (timestamp, data point, attributes)c) insert the data into influx DB (the config parameters need to match the ones you used in setup:port, ip address, db name, user, password)3) created a Logger in Loxone which is very simple as per below, you can use a local address, as you ran the python script locally. The ip address needs to be the one frmom the system where you run the python script, the port number shold be the one you listen on in your python script.
4) for each field you want to monitor in Loxone you add now the UDP logger as per belowYou need to name the fields carefully: first word will become the category in infux, all the rest of the field name will become the "room" in influxImportant: the logger is taking the description as name in case it is present, otherwise it takes the field name. So if you want to keep you current field names, you can use the description to change the name according to the logic attribute room.The time interval is somethign you need to play with. The higher you take it the less impact on your system performance, but the less accurate data in influx. I have not seen any issues with performance till now.
5) play with grafana to visualize your statistics. Is a relatively easy tool to use. Some examples below:Visualizing sunboiler, buffer, outside temperature and a few others, together with weather condition, outdoor lux of sunlight, solar power (coming from wunderground) and gas consumption.
For a given room, visualize actual temp, target temp, outside temp and if heating is on or off.
or a partial overview of our house:
or the daily consumption of gas as Andras was looking for, and water and electricity
Hope this helps.I am interested to move to postgress time series database as well, because it give me a few more possibiities, but for now, influx is doing already many good things. I stopped all stats on loxone, so reducing risk of SD card issues, as it is barely used now.On Saturday, March 24, 2018 at 8:51:52 PM UTC+1, Rob_in wrote:
Hi all,Just wanted to thank Andrew for bringing up Grafana in the DIY 1-Wire stuff (CO2, UDP interface) thread.Had a quick play around with it this arvo and very quickly one can get some really nice graphs. FWIW, I wrote a Perl script to read the raw Loxone stats files (which I archive off every hour) and pump into an InfluxDB instance. It's impressively fast - around 30 stats for the last 3 months imported in under 10 seconds on my 6 year old laptop! From there, connecting Grafana is super easy. If one had a dedicated PC lying around (I did this on a laptop so can't do this right now) it might be best to get a load of Virtual Outputs from Loxone speaking directly to InfluxDB and turn of Loxone stats altogether. Well... depending on your point of view ;) One advantage of course would be if you can update InfluxDB quickly a nice 'real time' Dashboard could be created.I already like Grafana a lot. For example, easy to create this stacked graph of daily power consumption with outside temperature overlaid (big impact on heating of course):
Overview of our heat pump - notice when I accidentally turned DHW off! ;)
Other stuff like temperatures, etc. even easier - can anyone spot when we actually moved in? ;)
[Unit]
Description=Loxone log
After=network.target
[Service]
WorkingDirectory=/home/pi/loxone-stats-influx/loxone-ws-influx
ExecStart=/home/pi/n/bin/node loxone-ws-influx.js
Restart=always
Environment=NODE_ENV=production
User=pi
Group=pi
[Install]
#WantedBy=multi-user.target
You mean TimescaleDB (an extension to PostgreSQL)? I really like it, and have over a year’s worth of data in it now. Being built upon PostgreSQL brings quite a few nice bonuses as there are a lot of tools, and SQL is very powerful. Thus far I have encountered no issues with timescale, unlike my troublesome encounter with InfluxDB (which was over a year ago, so I imagine it has improved by leaps and bounds). The Grafana support for Timescale has come along quite well too. I write into Timescale from my C++ application and haven’t done any investigation into how one could insert directly from the Loxone (it is likely to be possible, I just haven’t given it a moment’s thought).
I had used the term “time series DB” in the generic sense, trying to be inclusive of all technologies available.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/9d70398b-a198-4c5a-80c3-3827440eade4%40googlegroups.com.
did anyone use this with mysql database instead of influx
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/ijOUU8FHMKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/42d56754-2ad4-4b0c-9be6-0a0e4c814b86n%40googlegroups.com.