jvital2013 / roadapplepi Goto Github PK
View Code? Open in Web Editor NEWAn elegent "Black Box" solution that can be retrofitted into any car with an OBD(II) port for minimal cost.
License: GNU General Public License v3.0
An elegent "Black Box" solution that can be retrofitted into any car with an OBD(II) port for minimal cost.
License: GNU General Public License v3.0
Hello,
I get following error during compilation (the same on Rpi Zero W and Pi 4B):
"gcc -o database1 chapter5_1.c -I/usr/include/mysql
gcc: error: chapter5_1.c: No such file or directory
gcc: fatal error: no input files
compilation terminated."
Any ideas how to get over this, please?
If not is this in the roadmap/plans?
I can view videos no issue from webapp and they cache. Then where can I find the files on the pi?
I've tried this on a Pi 3, Pi Zero W, and a Pi 2 with USB Wifi adapter and none of them work in Access Point mode. I cannot discover the device from my phone or laptop once I've enabled it. I also tried reimaging the SD card with Raspbian Stretch Lite a few different times and running the script all from scratch (once on each of my Pi's)
Hey Folks!
Great Project...
I got issues with the connection of the ELM327 on a Rapsberry Pi3B+....
Tried a lot of things an visited other threads about connecting a Bluetooth OBD adapter to the pi...
checked with bluetoothctl: device is paired an trusted....
but on the LED´s of it i can see that there is no connection....
It´s paired but i´m getting no connection to it. Because of that i always get the " finfishing gauge sync" message.....
I used new Raspbian Buster install script, WIFI DHCP is working .... was a lot of work, but for now im stuck... it really kick´s my.... :(
Perhaps somebody can tell how the adapter is bind in as serial device....
I don´t have the experience to see how u implemented the data to be visible....
I only found out that the raprec service is listening on rfcomm0.... so stopping the service makes me able to use command "sudo rfcomm bind rfcomm0 " just to listen to it by the screen programm....
Help would be appreciated....
Thanks and greeting from Germany
Awesome Project!
I can’t get the RoadApplePi.ino to upload to the Sleepy Pi 2. I’ve tried everything I could possibly think of. The Arduino IDE always throws any error when trying to include file located in the sys directory (sys/time.h), says no such file or directory. Does anyone have any ideas?
Does RoadapplePi record directly off the CSI connection without modifying the software? I saw you used an USB webcam in development and did not see information about the CSI connection.
Also, is there plans to add GPS data? I would be interested in potentially funding both of those options.
Hi there!
I tried to install it following the guide in the readme file, but no luck. Every time it gets stuck on:
"Step 4. Building and installing RoadApplePi
gcc raprec.c -o raprec -Wall -lmysqlclient -lm
raprec.c:34:10: fatal error: mysql/mysql.h: No such file or directory
#include <mysql/mysql.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:3: raprec] Error 1
cp raprec /usr/bin
cp: cannot stat 'raprec': No such file or directory
make: *** [Makefile:8: install] Error 1
rm: cannot remove '/var/www/html/index.html': No such file or directory
chown: cannot access '/var/www/html': No such file or directory
chmod: cannot access '/var/www/html': No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/raprec.service → /lib/systemd/system/raprec.service.
mkdir: cannot create directory ‘/var/www/html/vids’: No such file or directory
chown: cannot access '/var/www/html': No such file or directory
sudo: mysql: command not found
Done! Please reboot your Raspberry Pi now
"
Any idea what am I missing? Thanks!
I'm a truck driver and really like your project.
Recently I bought a retroflag rpi case it uses the gpio pins to power on, reset and launches a script for safe shutdown shouldn't that be possible with this. I honestly have no idea I'm a hardware guy that dabbles in code.
Step 4. Building and installing RoadApplePi
gcc raprec.c -o raprec -Wall -lmysqlclient -lm
raprec.c:34:10: fatal error: mysql/mysql.h: No such file or directory
#include <mysql/mysql.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:3: raprec] Error 1
cp raprec /usr/bin
cp: cannot stat 'raprec': No such file or directory
make: *** [Makefile:8: install] Error 1
rm: cannot remove '/var/www/html/index.html': No such file or directory
chown: cannot access '/var/www/html': No such file or directory
chmod: cannot access '/var/www/html': No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/raprec.service → /lib/systemd/system/raprec.service.
mkdir: cannot create directory ‘/var/www/html/vids’: No such file or directory
chown: cannot access '/var/www/html': No such file or directory
sudo: mysql: command not found
Done! Please reboot your Raspberry Pi now
The first run of the setup script terminated here.
Running it again shows, that there are a lot of packages missing:
RoadApplePi Setup v0.1-4-g34ee10a
Welcome to RoadApplePi setup. RoadApplePi is "Black Box" software that
can be retrofitted into any car with an OBD port. This software is meant
to be installed on a Raspberry Pi running unmodified Raspbian Stretch,
but it may work on other OSs or along side other programs and modifications.
Use with anything other then out-of-the-box Vanilla Raspbain Stretch is not
supported.
This script will download, compile, and install the necessary dependencies
before finishing installing RoadApplePi itself. Depending on your model of
Raspberry Pi, this may take several hours.
Would you like to continue? (y/N) y
Step 1. Updating system
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Step 2. Install pre-built dependencies from Apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Note, selecting 'libmariadb-dev-compat' instead of 'libmariadbclient-dev-compat'
E: Unable to locate package php7.0-mysql
E: Couldn't find any package by glob 'php7.0-mysql'
E: Couldn't find any package by regex 'php7.0-mysql'
E: Unable to locate package php7.0-bcmath
E: Couldn't find any package by glob 'php7.0-bcmath'
E: Couldn't find any package by regex 'php7.0-bcmath'
Failed to disable unit: Unit file hostapd.service does not exist.
Step 3. Build ffmpeg (this may take a while)
FFMpeg already found at /usr/local/bin/ffmpeg! Using installed version.
Step 4. Building and installing RoadApplePi
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
cp: cannot stat 'html': No such file or directory
rm: cannot remove '/var/www/html/index.html': No such file or directory
chown: cannot access '/var/www/html': No such file or directory
chmod: cannot access '/var/www/html': No such file or directory
cp: cannot stat 'raprec.service': No such file or directory
cp: cannot stat 'hostapd-rap.conf': No such file or directory
cp: cannot stat 'dnsmasq.conf': No such file or directory
mkdir: cannot create directory ‘/var/www/html/vids’: No such file or directory
chown: cannot access '/var/www/html': No such file or directory
cp: cannot stat 'roadapplepi.sql': No such file or directory
sudo: mysql: command not found
Done! Please reboot your Raspberry Pi now
using pi 3b+ fresh install of everything & this is what it shows when going to the hostname
Need troubleshooting docs.
Such as logs save to
/var/logs/syslog
Code: Select all
Step 4. Building and installing RoadApplePi
gcc raprec.c -o raprec -Wall -lmysqlclient -lm
raprec.c:34:10: fatal error: mysql/mysql.h: No such file or directory
#include <mysql/mysql.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:3: raprec] Error 1
cp raprec /usr/bin
cp: cannot stat 'raprec': No such file or directory
make: *** [Makefile:8: install] Error 1
rm: cannot remove '/var/www/html/index.html': No such file or directory
sudo: mysql: command not found
Done! Please reboot your Raspberry Pi now
pi@DashCamPi:/RoadApplePi $
Would GPIO triggers be able to be added. Example is if GPIO pin 6 can be enabled with trigger offroad lights. And if it sees a positive voltage it displays as on along with odb gauges.
The web interface works, it just won't record any footage.
The webcam itself won't activate either, the led's on it won't light up.
I can get the webcam to work by using VLC, so i know the webcam itself works. Both VLC and RoadApplePi are setup to use /dev/video0, so that in itself is correct.
I also can't seem to find any error logging, even though it mentions setting up syslog in raprec.c.
I did use matt2005's version, at that seems to be updated to work with raspbian buster.
If i run raprec.c using the terminal, i am getting some errors from v4l2, such as:
invalid v4l2 control type encountered
Unknown v4l2 mpeg control id
Altough that might be because the software itself is already running at this point.
I did try a different webcam, that didn't change anything.
Anyone else with the same problem?
Hello. Can this be modified to record via the pi camera module?
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.