Code: Select all
S
SSE
SE
SSW
E
ENE
ESE
N
NNW
NNE
W
WNW
WSW
Code: Select all
S
SSE
SE
SSW
E
ENE
ESE
N
NNW
NNE
W
WNW
WSW
Code: Select all
eg.TriggerEvent(
'Type: Viking 02811 id: 41216',
payload = ' temperature: +10.1 deg C signal: 7 battery: 9',
prefix = 'RFXtrx'
)
Code: Select all
11:48:55 (u'2015-04-30 11:47:07', 1430387227, u'Loftet', 0.0, u'', 10.0, 10.0, 0.0)
11:48:55 (u'2015-04-30 11:48:02', 1430387283, u'Loftet', 0.0, u'', 10.0, 10.0, 0.0)
11:48:55 (u'2015-04-30 11:48:46', 1430387326, u'Loftet', 0.0, u'', 10.0, 10.0, 0.0)Code: Select all
import time
eg.event.payload_copy = eg.event.payload
my_data = eg.event.payload_copy.split(' ')
td = my_data[2] #temperature
timeStamp = str(
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
eg.globals.Loftet_time = timeStamp
eg.globals.Loftet_temp = td
eg.globals.Loftet_time_formatert = "%s:%s, %s.%s." % (eg.globals.Loftet_time[11:13], eg.globals.Loftet_time[14:16], eg.globals.Loftet_time[8:10], eg.globals.Loftet_time[5:7])Code: Select all
Loftet: +9.9 grader, klokka 11:48, 30.04.Code: Select all
22:45:08 Exception in thread Thread-1820:
22:45:08 Traceback (most recent call last):
22:45:08 File "threading.pyc", line 532, in __bootstrap_inner
22:45:08 File "threading.pyc", line 484, in run
22:45:08 File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\__init__.py", line 2392, in CreateReport
22:45:08 rprtHeading
22:45:08 File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\CreateComboHtml.py", line 406, in CreateComboHtml
22:45:08 logstr += MakeChart(rows_6, pos_6, 'Wind strenght', ' m/s')
22:45:08 File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\CreateComboHtml.py", line 25, in MakeChart
22:45:08 if len(drows[key]) != 0:
22:45:08 TypeError: object of type 'NoneType' has no len()
22:45:08 Code: Select all
eg.plugins.ClimateDataCalculation.CombinedReport(u'30-dagersrapport for stua', (u'Stua',), (), (), (), (), 30, 0, True, u'D:\\EventGhost\\Webserver for EventGhost', u'7', u'30-dagersrapport for stua')Bruce Wayne is that you? (quoted post)Mastiff wrote:I just tried now to do somethig completely different (turn off the fan in the batroom)
If you started to capture data for a new sensor (in this case wind) you have to restart EG once before the reporting will work. Reason is that the plugin dosen't know about that a new action was created. This is only checked and updated at start (remember that it took such a long time to edit earlier...)Exception in thread Thread-1820:
The code you received earlier can be extended in such a way that you provide a list of names instead of a single file name and then with a for loop, you upload them one-by-oneFTP upload code to upload all files in a directory?