Search found 89 matches

by HTPCanwender
Wed Dec 18, 2019 5:31 pm
Forum: Plugin Support
Topic: Nmap
Replies: 107
Views: 53239

Re: Nmap

If I am right, kgschlosser has introduced the changes from the versions 1.0.2 and 1.0.3 in the version 1.0.1 he posted at last.
by HTPCanwender
Wed Dec 18, 2019 5:20 pm
Forum: Plugin Support
Topic: Nmap
Replies: 107
Views: 53239

Re: Nmap

Here is the last version 1.03 as I modified it in the past.
by HTPCanwender
Sun Dec 01, 2019 8:30 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Thank you for your script using a thread. I learned a lot from it. At the moment I solved my problem in a different and very simple way. I am only using a script like import threading def f(): print("Thread Sonoff-33 Start") # HERE IS THE PLOTTING CODE print("Thread Sonoff-33 Ende") thread1 = thread...
by HTPCanwender
Sun Dec 01, 2019 5:04 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Thank you for your very quick answer. There is one issue. The code def do(): global plt plt.close() del plt wx.CallAfter(do) freezes Eventghost. Everything goes well, if I wipe the picture with ax2.remove() ax1.remove() and keep the empty picture in memory without closing it. My second question refe...
by HTPCanwender
Sat Nov 30, 2019 11:41 am
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Now I have an other issue. My smart home computer is tiny, low power consuming and slow. After collecting data for more than one week the calculation time for one plot takes 4 sec. During this time the triangle in the status bar turns red. During this time EG seems to be blocked for other tasks. Now...
by HTPCanwender
Sat Nov 23, 2019 8:38 am
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

First the very good news. The way you suggested to close the plot is stable and works perfect. Here is the actual version of the script. Maybe it can be the blueprint for someone else. import matplotlib.pyplot as plt global plt import numpy as np import matplotlib.dates as mdates # Ein- und Ausgabep...
by HTPCanwender
Thu Nov 21, 2019 2:53 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Before I test it, one question please: try: _ = GeraetePfad Has the variable GeraetePfad to be unique in my EventGhost universe? I am using it as local variable also in other scripts. If I need a unique idintifyer, perhaps I should choose an other variable or define a special one for the script iden...
by HTPCanwender
Wed Nov 20, 2019 3:25 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

I have one issue left. What do you mean with "close the buffer"? Using plt.close() to close the figure generates the same error message as closing the plot window generated with plt.show() by clicking at the x (close) button. Figure 1 remains in memory all the time as an empty picture and is reused ...
by HTPCanwender
Tue Nov 19, 2019 10:32 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

I've found the solution. I think, I should be more patient before posting.
by HTPCanwender
Tue Nov 19, 2019 10:18 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Finally I found a way to convert the date since epoch stored in the numpy array to a datetime format in a list: x = dates.num2date(dates.epoch2num(xnp)) The plot shows now a readable time at the x-axis. 2019-11-18 23:35:36+00:00 Until now I did not find a way to format it like 18.11.2019, 23:35:36 A...
by HTPCanwender
Tue Nov 19, 2019 2:15 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

I am sorry, but I don't understand the data types for timestamps and how to deal with them while plotting. It's frustrating. I am only able to show at the x-axis the seconds from epoch as stored in the data file. And I am really not a stupid person. Every data conversion I tried lead to error messag...
by HTPCanwender
Sun Nov 17, 2019 9:17 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

I think, I have found a solution. The .subplots method creates a new window on every call and I did not find a way to close the open windows. So I decided to draw the plot in one figure and wipe it after saving the picture. It's like using an chalkboard at school. There is one issue left. As you sug...
by HTPCanwender
Sat Nov 16, 2019 2:43 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Unfortunately nothing helped yet. Here is the actual code. import matplotlib.pyplot as plt import numpy as np import json from datetime import datetime params = { 'legend.fontsize': 16, 'figure.figsize': (16, 10), 'axes.labelsize': 16, 'axes.titlesize': 16, 'xtick.labelsize': 16, 'ytick.labelsize': ...
by HTPCanwender
Fri Nov 15, 2019 5:54 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Upgrading to 0.5.0-rc6 changed nothing.
by HTPCanwender
Fri Nov 15, 2019 12:28 pm
Forum: Feature Requests
Topic: Drawing graphs in EG
Replies: 47
Views: 8640

Re: Drawing graphs in EG

Every run of the script creates a new figure and every clothing by hand creates an error like 13:25:39 Traceback (most recent call last) (WIP-2018.06.03-12.44.49): 13:25:39 File "C:\Python27\Lib\site-packages\matplotlib\backends\backend_wx.py", line 1243, in _onClose 13:25:39 Gcf.destroy(self.num) 1...