forked from filipsPL/autowx2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautowx2.py
executable file
·31 lines (24 loc) · 1.04 KB
/
autowx2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# autowx2 - The program for scheduling recordings and processing of the
# satellite and ground radio transmissions (like capturing of the weather
# APT images from NOAA satellites, voice messages from ISS, fixed time
# recordings of WeatherFaxes etc.)
# https://github.com/filipsPL/autowx2/
#
# from autowx2_conf import * # configuration
from autowx2_functions import * # all functions and magic hidden here
# ------------------------------------------------------------------------------------------------------ #
if __name__ == "__main__":
log("⚡ Program start")
saveToFile("%s/start.tmp" % (wwwDir), str(time.time())) # saves program start date to file
if cleanupRtl:
log("Killing all remaining rtl_* processes...")
justRun(["bin/kill_rtl.sh"], loggingDir)
while True:
t1 = Thread(target = mainLoop)
t1.setDaemon(True)
t1.start()
# app.run(debug=True, port=webInterfacePort)
socketio.run(app, port=webInterfacePort, debug=False)