Giter Site home page Giter Site logo

brucewinter / myhouse Goto Github PK

View Code? Open in Web Editor NEW
60.0 9.0 20.0 176 KB

Code I use to run my house

Home Page: http://misterhouse.brucewinter.net

License: GNU General Public License v2.0

Perl 28.51% Groovy 2.45% JavaScript 2.98% Shell 0.69% Python 38.30% C++ 26.42% CSS 0.22% HTML 0.42%

myhouse's Issues

ss_monitor error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.