brucewinter / myhouse Goto Github PK
View Code? Open in Web Editor NEWCode I use to run my house
Home Page: http://misterhouse.brucewinter.net
License: GNU General Public License v2.0
Code I use to run my house
Home Page: http://misterhouse.brucewinter.net
License: GNU General Public License v2.0
I have been attempting to use your ss_monitor along with od_server in order to watch a folder for camera images and trigger an alert when an object of interest is present. I managed to get the od_server updated and running with Python 3.8 and TensorFlow 2.3 but ss_monitor is giving me a lot of issues. Currently when ever I sees a new file it will send it to od_server as the following:
127.0.0.1 - - [18/Oct/2020 02:31:50] "�[31m�[1mGET /?file_dir=C:/Users/char/Desktop/MyHouse/image%5Clivingroom-hdt.20201018_023146261.jpg HTTP/1.1�[0m" 400 -
But the ss_monitor instantly returns the following error and stops responding:
C:\Users\char\Desktop\MyHouse>python ss_monitor.py Sun Oct 18 02:31:21 2020 Starting Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\observers\api.py", line 203, in run self.dispatch_events(self.event_queue, self.timeout) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\observers\api.py", line 376, in dispatch_events handler.dispatch(event) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\events.py", line 330, in dispatch self.on_any_event(event) File "ss_monitor.py", line 93, in on_any_event rj = r.json() File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads return _default_decoder.decode(s) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have been attempting to fix the directory path it sends as well, replacing the %5c with a / as it should be but I have not had any luck. I do not know if the two are related.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.