adamlaurie / sjcam Goto Github PK
View Code? Open in Web Editor NEWA python CLI tool for controlling SJCAM WiFi Sports Cameras
A python CLI tool for controlling SJCAM WiFi Sports Cameras
First hurdle encountered after initially running: sudo python ./setup.py install
output:
[...]
Installed /usr/local/lib/python2.7/dist-packages/sjcam-1.0-py2.7.egg
Processing dependencies for sjcam==1.0
Searching for lxml
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 4.2.5
Downloading https://files.pythonhosted.org/packages/4b/20/ddf5eb3bd5c57582d2b4652b4bbcf8da301bdfe5d805cb94e805f4d7464d/lxml-4.2.5.tar.gz#sha256=36720698c29e7a9626a0dc802ef8885f8f0239bfd1689628ecd459a061f2807f
Processing lxml-4.2.5.tar.gz
Writing /tmp/easy_install-cACsIA/lxml-4.2.5/setup.cfg
Running lxml-4.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cACsIA/lxml-4.2.5/egg-dist-tmp-yVehX0
Building lxml version 4.2.5.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
In file included from src/lxml/etree.c:662:0:
src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
/tmp/easy_install-cACsIA/lxml-4.2.5/temp/xmlXPathInitHw2meW.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
The following installation solved this issue:
sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev
However, after the setup script is done setting up, I tried running some of the commands to test the API functionality but get the following errors:
(venv) peter@boop-Latitude-E6420:~/Documents/Programming/sjcam$ sjcam config
/home/peter/.local/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.23) or chardet (2.3.0) doesn't match a supported version!
RequestsDependencyWarning)
/home/peter/.local/lib/python2.7/site-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
Camera config:
Failed! Couldn't read config!
I tried deactivating the virtual environment but still got the same error messages.
Hey, I'm working on API documentation and I have some commands that you haven't got yet, but I'm not too sure if those are specific to the 5000x elite or also for the 4000. Take a look :)
I'm not sure if someone tried to change network address so you can monitorize several camera streams with a single computer (without changing from one wifi to another).
I'd like to see this implemented.
Hi !
I need to control automatically my sjcam and i was really glad to find this repo.
As this script is made for python2 and is no longer maintained, i would like to know if you could switch it under a more permissive license, so i can fork it for use in my projects (I would understand if you don't want to though).
Hey, how you doing?
A few days ago I bought a BOLD3 Black edition sports camera from Ultra Technology, similar to the jscam, both in firmware interface design and in the case.
I found your code because I have integration plans with arduino, and I'm using a nodeMcu, but I can't make the commands work.
On the other hand, the ip assigned to me is 192.168.25.101, and if I log in to 192.168.25.1, I can configure the camera's wifi.
Did you make any particular configuration? there's no documentation on my camera.
Thank you in advance, if I can get it to work on my camera, I can help you complete what you're missing from the list.
Hi Adam,
Just FYI, I packaged your sjcam tool
https://github.com/AdamLaurie/sjcam
on AUR (Arch linux User Repositories)
https://aur.archlinux.org/packages/sjcam-git/
I couldn't find the license so I choose GPL (let me know if that's
wrong to change it) related with #5
Thanks for coding sjcam, is nice to operate a camera without get it
out of the case.
I use a sjcam M20 and works perfectly!
If I found time I would like to connect to camera without loose the
internet connection (but that's related with network manager). In any
case, if I found how to do it will open a PR on your repo.
Cheers,
Alberto
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.