coretechr / zerobot Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi Zero FPV Robot
Home Page: https://hackaday.io/project/25092-zerobot-raspberry-pi-zero-fpv-robot
License: GNU General Public License v3.0
Raspberry Pi Zero FPV Robot
Home Page: https://hackaday.io/project/25092-zerobot-raspberry-pi-zero-fpv-robot
License: GNU General Public License v3.0
The web UI works on a computer but does not do anything on a mobile or tablet or even touchscreen computer. I guess this is due to document.createTouch
being deprecated and removed from most browsers.
Changing condition on line 215 to touchable = 'ontouchstart' in window,
fixes the issue partially for Android phones, however 2in1 devices still don't react to touches. Commenting out the whole if (touchable) { … } else {…}
, leaving both branches in place seems to be working properly for me.
Since the IP address of the camera feed is hardcoded in the Touch.html file, it does not work if accessed from an external network. The IP should change dynamically to reflect the server's IP regardless from where it is accessed.
I have been able to solve this by replacing this line:
<img src="http://192.168.1.10:9000/?action=stream" />
with this short script:
<p id="demo"></p>
<script>
host = window.location.hostname;
img = '<img src="http://' + host + ':9000/?action=stream" />';
document.getElementById("demo").innerHTML = img;
</script>
as i wrote in title, i would like to see an option to control the bot with a ps4 control (or generic joystick).
I realize there hasnt been a commit on this in two years but I had a thought of integrating this into home assistant/frigate/deepstack.
Putting an RTMP stream into frigate would can the camera for targeted objects, or, if a targeted object is found at another location, send the bot to that location while recording to frigate.
I was thinking rather than using a GPS module which would make it a lot more complex, savings "paths" or routines into a script in home assistant that can be sent to the bot via restful api if a camera in another room detected something. Or just program a "patrol" of the house and save the video to home assistant gallery for viewing.
I'm waiting on the rest of my parts to arrive, and while I'm not a crack programmer I think this is something worth looking into. Once I get going can I make a PR?
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.